|
|
@ -104,6 +104,7 @@
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-form-item label="上级部门:" label-width="100px" v-if="formData.pid != 0">
|
|
|
|
<el-form-item label="上级部门:" label-width="100px" v-if="formData.pid != 0">
|
|
|
|
<treeselect v-model="formData.pcode" :options="deptOptions" :normalizer="normalizer"
|
|
|
|
<treeselect v-model="formData.pcode" :options="deptOptions" :normalizer="normalizer"
|
|
|
|
|
|
|
|
:disabled="isShow"
|
|
|
|
style="width: 90%"
|
|
|
|
style="width: 90%"
|
|
|
|
placeholder="选择上级部门"/>
|
|
|
|
placeholder="选择上级部门"/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
@ -324,6 +325,7 @@ export default {
|
|
|
|
companyName: "",
|
|
|
|
companyName: "",
|
|
|
|
checkType: "",
|
|
|
|
checkType: "",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
isShow:null,
|
|
|
|
loading: false,
|
|
|
|
loading: false,
|
|
|
|
formVisible: false,
|
|
|
|
formVisible: false,
|
|
|
|
isExpandAll: false,
|
|
|
|
isExpandAll: false,
|
|
|
@ -490,6 +492,7 @@ export default {
|
|
|
|
subAddDeptDialog(row) {
|
|
|
|
subAddDeptDialog(row) {
|
|
|
|
this.formName = "add";
|
|
|
|
this.formName = "add";
|
|
|
|
this.formVisible = true;
|
|
|
|
this.formVisible = true;
|
|
|
|
|
|
|
|
this.isShow=false;
|
|
|
|
this.formData = {
|
|
|
|
this.formData = {
|
|
|
|
pid: row.id,
|
|
|
|
pid: row.id,
|
|
|
|
pcode: row.code,
|
|
|
|
pcode: row.code,
|
|
|
@ -514,6 +517,7 @@ export default {
|
|
|
|
this.resetForm();
|
|
|
|
this.resetForm();
|
|
|
|
this.formName = "edit";
|
|
|
|
this.formName = "edit";
|
|
|
|
this.formVisible = true;
|
|
|
|
this.formVisible = true;
|
|
|
|
|
|
|
|
this.isShow=true;
|
|
|
|
this.formData = row;
|
|
|
|
this.formData = row;
|
|
|
|
// const roleMenu = this.getDeptStatusMenuTreeselect(this.formData.id);
|
|
|
|
// const roleMenu = this.getDeptStatusMenuTreeselect(this.formData.id);
|
|
|
|
filterList().then(response => {
|
|
|
|
filterList().then(response => {
|
|
|
|