From e7b0b54f01e489aaea0d1f4be55ebc47f8f47b2a Mon Sep 17 00:00:00 2001 From: Teo <2642673902@qq.com> Date: Fri, 18 Jul 2025 19:33:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E9=97=A8=E7=AE=A1=E7=90=86=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=8A=9F=E8=83=BD=E5=88=86=E5=8C=85=E5=8D=95=E4=BD=8D?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/dept/types.ts | 1 + src/views/system/dept/index.vue | 2 ++ 2 files changed, 3 insertions(+) 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) {