From ea23305544e8142c236410b44279da5850f85f95 Mon Sep 17 00:00:00 2001 From: GAOANG <1140589958@qq.com> Date: Wed, 14 May 2025 19:25:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=80=89=E4=BA=BA=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=EF=BC=8C=E5=8F=AF=E9=80=89=E9=A1=B9=20=E7=BB=84=E7=BB=87?= =?UTF-8?q?=E6=A0=91=E6=90=9C=E7=B4=A2=E6=98=AF=E5=90=A6=E5=8A=A0=E5=85=A5?= =?UTF-8?q?=E4=B8=8B=E7=BA=A7=E9=83=A8=E9=97=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Form/src/components/SelectUserV2.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/Form/src/components/SelectUserV2.vue b/src/components/Form/src/components/SelectUserV2.vue index ae4a65a..13fe820 100644 --- a/src/components/Form/src/components/SelectUserV2.vue +++ b/src/components/Form/src/components/SelectUserV2.vue @@ -117,6 +117,10 @@ justCompany: { type: Boolean, default: false + }, + isOnlyCurrentDepartment: { // 仅当前部门,无下级部门 + type: Boolean, + default: true } }); let timeoutId = null; @@ -205,14 +209,14 @@ limit: 1, size: 10000, departmentId: '', - departmentIds: defaultDepts.value + departmentIds: defaultDepts.value, + isOnlyCurrentDepartment: props.isOnlyCurrentDepartment, }); const searchDepartMemberTotal = ref(0); const searchDepartMemberList = ref([]); const searchAllMemberParams = ref({ limit: 1, size: 25, - isSearchAll: true, keyword: '', departmentIds: defaultDepts.value });