部门模块功能开发

This commit is contained in:
lizhenhua 2026-01-05 14:18:56 +08:00
parent 29dc9ec73f
commit bc78b84627
1 changed files with 6 additions and 2 deletions

View File

@ -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);
});
},
//