部门模块功能开发
This commit is contained in:
parent
29dc9ec73f
commit
bc78b84627
|
|
@ -229,6 +229,7 @@
|
|||
:options="orgDeptTree"
|
||||
placeholder="组织机构下辖部门"
|
||||
:normalizer="orgDeptNormalizer"
|
||||
:key="orgTreeKey"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
|
|
@ -378,6 +379,7 @@
|
|||
components: {Treeselect},
|
||||
data() {
|
||||
return {
|
||||
orgTreeKey: 0,
|
||||
orgDeptTree: [],
|
||||
// 1. 存储选中的部门ID(关键)
|
||||
selectedDeptId: undefined,
|
||||
|
|
@ -579,11 +581,13 @@
|
|||
},
|
||||
// 归属部门变化时,获取归属组织选项
|
||||
handleDeptChange(deptId) {
|
||||
|
||||
this.form.orgId = null;
|
||||
this.orgDeptTree = [];
|
||||
this.orgTreeKey++;
|
||||
if (!deptId) return;
|
||||
listDeptByOrgId(deptId).then(res => {
|
||||
this.orgDeptTree = res.rows || [];
|
||||
console.log(JSON.stringify( res.rows))
|
||||
console.log("所属组织部门树:", this.orgDeptTree);
|
||||
});
|
||||
},
|
||||
//用户审批状态修改
|
||||
|
|
|
|||
Loading…
Reference in New Issue