Browse Source

多余代码删减

wangtao 3 năm trước cách đây
mục cha
commit
e72489fcbb
1 tập tin đã thay đổi với 1 bổ sung8 xóa
  1. 1 8
      src/views/system/dept/index.vue

+ 1 - 8
src/views/system/dept/index.vue

@@ -142,7 +142,6 @@
 
 <script>
 import { listDept, getDept, delDept, addDept, updateDept, listDeptExcludeChild } from "@/api/system/dept";
-import { listChannel } from "@/api/system/product";
 import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 
@@ -171,9 +170,7 @@ export default {
         status: undefined
       },
       // 表单参数
-      form: {
-        // parentId:[]
-      },
+      form: {},
       // 表单校验
       rules: {
         parentId: [
@@ -216,10 +213,6 @@ export default {
         this.deptList = this.handleTree(response.data, "deptId");
         this.loading = false;
       });
-      //获取父级部门
-      // listChannel({current:1, size: 10}).then(Response =>{
-      //   this.form.parentId = this.Response.data.records
-      // })
     },
     /** 转换部门数据结构 */
     normalizer(node) {