|
@@ -384,8 +384,8 @@ export default {
|
|
listDept().then((response) => {
|
|
listDept().then((response) => {
|
|
this.deptOptions = this.handleTree(response.data, "deptId");
|
|
this.deptOptions = this.handleTree(response.data, "deptId");
|
|
this.form.parentId = response.data[0].deptId;
|
|
this.form.parentId = response.data[0].deptId;
|
|
- // parentId == 100为创建公司
|
|
|
|
- this.isERP = response.data[0].parentId == 100;
|
|
|
|
|
|
+ // deptId == 100为创建公司
|
|
|
|
+ this.isERP = response.data[0].deptId == 100;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
/** 展开/折叠操作 */
|
|
/** 展开/折叠操作 */
|
|
@@ -401,6 +401,7 @@ export default {
|
|
this.reset();
|
|
this.reset();
|
|
getDept(row.deptId).then((response) => {
|
|
getDept(row.deptId).then((response) => {
|
|
this.form = response.data;
|
|
this.form = response.data;
|
|
|
|
+ this.isERP = response.data.parentId == 100;
|
|
this.open = true;
|
|
this.open = true;
|
|
this.title = "修改部门";
|
|
this.title = "修改部门";
|
|
listDeptExcludeChild(row.deptId).then((response) => {
|
|
listDeptExcludeChild(row.deptId).then((response) => {
|
|
@@ -461,7 +462,7 @@ export default {
|
|
return process.env.VUE_APP_BASE_API + src;
|
|
return process.env.VUE_APP_BASE_API + src;
|
|
},
|
|
},
|
|
treeSelectChange(value) {
|
|
treeSelectChange(value) {
|
|
- this.isERP = value.parentId == 100;
|
|
|
|
|
|
+ this.isERP = value.deptId == 100;
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
};
|