|
|
@@ -615,20 +615,15 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
mounted() {
|
|
|
- console.log("this.dict.type.sys_org_type", this.dict.type.sys_org_type);
|
|
|
- let from = Array.from(this.dict.type.sys_org_typ);
|
|
|
- console.log("from", from)
|
|
|
- //循环 this.dict.type.sys_org_type 拿到每个项的value等于3的数据,放到this.filterOrtTypeOptions中
|
|
|
- let newArr = [];
|
|
|
- from.map(element => {
|
|
|
- newArr.push(element);
|
|
|
- });
|
|
|
-
|
|
|
- console.log("newArr", newArr);
|
|
|
- this.filterOrtTypeOptions =newArr.filter(element => element.value > 3);
|
|
|
-
|
|
|
|
|
|
- console.log("this.filterOrtTypeOptions", this.filterOrtTypeOptions)
|
|
|
+ },
|
|
|
+ updated(){
|
|
|
+ this.filterOrtTypeOptions=JSON.parse(JSON.stringify(this.dict.type.sys_org_type)).filter(element => {
|
|
|
+ if(element.value > 3){
|
|
|
+ return JSON.parse(JSON.stringify(element))
|
|
|
+ }
|
|
|
+ });
|
|
|
+ console.log('this.filterOrtTypeOptions',this.filterOrtTypeOptions);
|
|
|
}
|
|
|
};
|
|
|
</script>
|