|
@@ -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) {
|