|
|
@@ -233,7 +233,7 @@
|
|
|
>
|
|
|
<treeselect
|
|
|
v-model="form.parentId"
|
|
|
- :options="deptOptions"
|
|
|
+ :options="deptOptions2"
|
|
|
:normalizer="normalizer"
|
|
|
placeholder="选择上级机构"
|
|
|
/>
|
|
|
@@ -379,6 +379,7 @@ export default {
|
|
|
total: 0,
|
|
|
// 机构树选项
|
|
|
deptOptions: [],
|
|
|
+ deptOptions2: [],
|
|
|
pId: 0,
|
|
|
// 弹出层标题
|
|
|
title: "",
|
|
|
@@ -520,8 +521,8 @@ export default {
|
|
|
cancel() {
|
|
|
this.open = false;
|
|
|
this.reset();
|
|
|
- this.getList();
|
|
|
- this.getDeptTree();
|
|
|
+ // this.getList();
|
|
|
+ // this.getDeptTree();
|
|
|
},
|
|
|
// 表单重置
|
|
|
reset() {
|
|
|
@@ -575,7 +576,7 @@ export default {
|
|
|
});
|
|
|
if (this.pId != -1) {
|
|
|
listDeptExcludeChild(row.id).then((response) => {
|
|
|
- this.deptOptions = this.handleTree(response.data, "id");
|
|
|
+ this.deptOptions2 = this.handleTree(response.data, "id");
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
@@ -583,11 +584,12 @@ export default {
|
|
|
changeSubmitForm() {
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
if (valid) {
|
|
|
+ console.log(this.form,"this.form")
|
|
|
updateDept(this.form).then((response) => {
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
this.open = false;
|
|
|
this.getList();
|
|
|
- this.getDeptTree();
|
|
|
+ // this.getDeptTree();
|
|
|
});
|
|
|
}
|
|
|
});
|