heyang vor 5 Monaten
Ursprung
Commit
46b1f3000c

+ 8 - 17
src/views/chemicalManage/basicManagement/chemicalsCabinetManage/addPage.vue

@@ -338,7 +338,7 @@
     mounted(){
       let self=this;
       this.initialize();
-
+      this.deptSelect('')
 
     },
     methods:{
@@ -522,18 +522,14 @@
       },
       //学院查询
       deptSelect(query){
-        if (query !== '') {
-          let obj = {
-            level:'2',
-            deptType:'1',
-            deptName:query,
-          }
-          getDeptDropList(obj).then(response => {
-            this.$set(this, 'deptOptions', response.data)
-          });
-        } else {
-          this.deptOptions = [];
+        let obj = {
+          level:'2',
+          deptType:'1',
+          deptName:query,
         }
+        getDeptDropList(obj).then(response => {
+          this.$set(this, 'deptOptions', response.data)
+        });
       },
 
 
@@ -600,11 +596,6 @@
         laboratorySubRelInfoGetRelList(obj).then(response => {
           this.subOptions = response.data;
         });
-      /*   if (query !== '') {
-
-        } else {
-          this.subOptions = [];
-        } */
       },
       //人员选中触发
       userSelectClick(val,index){