修改bug

prod
wangwei 2 years ago
parent 449a5457bb
commit 166a7a29ea

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

Loading…
Cancel
Save