From 7da86fc8f1533d3d23c18ac0073cf101533d395e Mon Sep 17 00:00:00 2001 From: lijingjia Date: Fri, 6 Sep 2024 08:55:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=81=E7=A8=8B=E6=A8=A1=E7=89=88=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/UserSelection/src/UserPicker.vue | 8 ++++++-- src/views/baseinfo/clientflowtemplate/api.ts | 3 ++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/UserSelection/src/UserPicker.vue b/src/components/UserSelection/src/UserPicker.vue index 5499825d..f8ee6da9 100644 --- a/src/components/UserSelection/src/UserPicker.vue +++ b/src/components/UserSelection/src/UserPicker.vue @@ -90,8 +90,11 @@ const open = () => { dialogVisible.value = true } - const onOpen = () => { - getList().then((res) => { + const changeHandle = (v, b) => { + onOpen(b) + } + const onOpen = (v) => { + getList({ queryKey: v }).then((res) => { if (res.succeeded) { userOrgOptions.value = res.data.map((e) => { return { @@ -164,6 +167,7 @@ :style="{ width: '100%' }" suffix-icon="search" clearable + @keyup="changeHandle($event, queryForm.name)" > diff --git a/src/views/baseinfo/clientflowtemplate/api.ts b/src/views/baseinfo/clientflowtemplate/api.ts index 2516c157..4864ba1f 100644 --- a/src/views/baseinfo/clientflowtemplate/api.ts +++ b/src/views/baseinfo/clientflowtemplate/api.ts @@ -83,10 +83,11 @@ export function rolegetList() { }) } // 获取用户 -export function getList() { +export function getList(params) { return request({ url: Api.getList, method: 'get', + params }) } // 详情