diff --git a/src/api/system/dept/types.ts b/src/api/system/dept/types.ts index c917b96..63c7dc7 100644 --- a/src/api/system/dept/types.ts +++ b/src/api/system/dept/types.ts @@ -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; diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index e9b57ef..82bf50f 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -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(response.data, 'deptId'); if (data) {