From 7442516c075345d5fcc2f1b47f8da557921574cb Mon Sep 17 00:00:00 2001 From: Chuck1sn Date: Thu, 19 Jun 2025 15:45:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=83=A8=E9=97=A8=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E5=8A=9F=E8=83=BD=E7=9A=84=E5=8F=82=E6=95=B0=E6=94=AF?= =?UTF-8?q?=E6=8C=81=EF=BC=8C=E5=8C=85=E6=8B=AC=E7=94=A8=E6=88=B7ID?= =?UTF-8?q?=E5=92=8C=E7=BB=91=E5=AE=9A=E7=8A=B6=E6=80=81=EF=BC=8C=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E5=8F=AF=E7=94=A8=E9=83=A8=E9=97=A8=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/composables/department/useDepartmentQuery.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/composables/department/useDepartmentQuery.ts b/frontend/src/composables/department/useDepartmentQuery.ts index 90a0ed7..3835af7 100644 --- a/frontend/src/composables/department/useDepartmentQuery.ts +++ b/frontend/src/composables/department/useDepartmentQuery.ts @@ -24,6 +24,8 @@ export function useDepartmentQuery() { const fetchDepartmentWith = async ( params: { name?: string; + userId?: number; + bindState?: "BIND" | "UNBIND" | "ALL"; } = {}, page = 1, pageSize = 10, @@ -36,9 +38,7 @@ export function useDepartmentQuery() { page, size: pageSize, }, - departmentQueryDto: { - name: params.name || "", - }, + departmentQueryDto: params, }, }, }); @@ -56,12 +56,12 @@ export function useDepartmentQuery() { }; // 获取可用部门列表(用于选择上级部门) - const fetchAvailableDepartments = async (excludeId?: number) => { + const fetchAvailableDepartments = async (id?: number) => { try { const response = await client.GET("/department/query-available", { params: { query: { - id: excludeId, + id, }, }, });