Просмотр исходного кода

解决web端 新增NFC 机构查询代码被注释的问题

zhulu 1 год назад
Родитель
Сommit
7879504b84
1 измененных файлов с 15 добавлено и 15 удалено
  1. 15 15
      src/views/system/bind/index.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;