luowei před 1 rokem
rodič
revize
88ee6e3024
2 změnil soubory, kde provedl 19 přidání a 18 odebrání
  1. 15 15
      src/views/system/bind/index.vue
  2. 4 3
      src/views/system/dept/extend.vue

+ 15 - 15
src/views/system/bind/index.vue

@@ -395,7 +395,7 @@ export default {
   },
 
   created() {
-   // this.getDeptTree();
+    this.getDeptTree();
   },
 
   methods: {
@@ -488,20 +488,20 @@ export default {
     },
 
     /** 查询部门下拉树结构 */
-    // getDeptTree() {
-    //   // deptTreeSelect().then(response => {
-    //   //   this.deptOptions = response.data;
-    //   //   this.defaultKeys.push(response.data[0].id);
-    //   //   this.queryParams.orgId = response.data[0].id;
-    //   //   this.handleQuery();
-    //   // });
-    //   businessTreeSelect().then((response) => {
-    //     this.deptOptions = response.data;
-    //     this.defaultKeys.push(response.data[0].id);
-    //     this.queryParams.orgId = response.data[0].id;
-    //     this.handleQuery();
-    //   });
-    // },
+    getDeptTree() {
+      // deptTreeSelect().then(response => {
+      //   this.deptOptions = response.data;
+      //   this.defaultKeys.push(response.data[0].id);
+      //   this.queryParams.orgId = response.data[0].id;
+      //   this.handleQuery();
+      // });
+      businessTreeSelect().then((response) => {
+        this.deptOptions = response.data;
+        this.defaultKeys.push(response.data[0].id);
+        this.queryParams.orgId = response.data[0].id;
+        this.handleQuery();
+      });
+    },
     tenantIdnormalizer(node, instanceId) {
       if (node.children && !node.children.length) {
         delete node.children;

+ 4 - 3
src/views/system/dept/extend.vue

@@ -511,6 +511,8 @@
   import {selectCityInfoVoList} from "@/api/core/weather";
   import TreeNodeDialogVue from "../../tool/build/TreeNodeDialog.vue";
 export default {
+  fillter: {},
+
   dicts: [
   "duty_options",
     "sys_org_type",
@@ -525,10 +527,9 @@ export default {
     "org_extend_detached_standard",
     "org_extend_is",
     "property_situation",
+  
   ],
 
-  fillter: {},
-
   components: {
     ImgsUpload,
     "el-image-viewer": () =>
@@ -1559,4 +1560,4 @@ export default {
   }
 
 
-</style>
+</style>