From 6c44354f2b078dc74e0f97e77fdc31976699d709 Mon Sep 17 00:00:00 2001 From: XuqmGroup Date: Sat, 25 Apr 2026 16:41:55 +0800 Subject: [PATCH] feat(im): fuzzy member search with chip tags in create-group dialog - ImManagementView: replace textarea with debounced search input + closable el-tag chips - im.ts: add searchUsers(keyword) API call to im-service admin search endpoint Co-Authored-By: Claude Sonnet 4.6 --- tenant-platform/src/api/im.ts | 7 + .../src/views/im/ImManagementView.vue | 127 ++++++++++++++++-- 2 files changed, 126 insertions(+), 8 deletions(-) diff --git a/tenant-platform/src/api/im.ts b/tenant-platform/src/api/im.ts index 00219bc..1633615 100644 --- a/tenant-platform/src/api/im.ts +++ b/tenant-platform/src/api/im.ts @@ -73,4 +73,11 @@ export const imAdminApi = { { params: { appId } }, ) }, + + searchUsers(appId: string, keyword: string, size = 20) { + return imClient.get<{ data: ImUser[] }>( + '/api/im/admin/users/search', + { params: { appId, keyword, size } }, + ) + }, } diff --git a/tenant-platform/src/views/im/ImManagementView.vue b/tenant-platform/src/views/im/ImManagementView.vue index e7cab7b..ff40ed3 100644 --- a/tenant-platform/src/views/im/ImManagementView.vue +++ b/tenant-platform/src/views/im/ImManagementView.vue @@ -97,13 +97,47 @@ - + - - + + + +
+
+ {{ user.nickname || user.userId }} + {{ user.userId }} +
+
+ +
+ +
+ + {{ m.nickname || m.userId }} + + 暂未选择成员 +