部门管理修改功能分包单位bug

This commit is contained in:
Teo
2025-07-18 19:33:04 +08:00
parent 5d76471571
commit e7b0b54f01
2 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,7 @@ export interface DeptVO extends BaseEntity {
parentId: number | string;
children: DeptVO[];
deptId: number | string;
contractorList: any[];
projectId: number | string;
projectList: any[];
deptName: string;

View File

@ -316,9 +316,11 @@ const handleUpdate = async (row: DeptVO) => {
form.value.rowProjectId = row?.projectId;
//查询当前部门所有用户
getDeptAllUser(row.deptId);
const res = await getDept(row.deptId);
form.value = res.data;
projectList.value = res.data.projectList;
contractorList.value = res.data.contractorList;
const response = await listDeptExcludeChild(row.deptId);
const data = proxy?.handleTree<DeptOptionsType>(response.data, 'deptId');
if (data) {