From 3b0c7f0c72c40ef7a56e1dba27624e27610b930d Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Wed, 14 Oct 2026 16:08:47 +0800 Subject: [PATCH] feat: chat user filter --- ui/src/views/VIEW_README.md | 4 ++-- ui/src/views/application-detail/chat-user/index.vue | 2 +- ui/src/views/knowledge-detail/chat-user/index.vue | 2 +- ui/src/views/system/identity/users/index.vue | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/src/views/VIEW_README.md b/ui/src/views/VIEW_README.md index 71553eb8144..058b4d59034 100644 --- a/ui/src/views/VIEW_README.md +++ b/ui/src/views/VIEW_README.md @@ -1390,8 +1390,8 @@ API 地址、调用示例及 MCP 配置只读;后两个展示区参考工具 M 两页通过 `hideHeader: true` 隐藏详情标题栏,使用普通 Flex 双栏容器,不嵌套 `MkViewLayout`。 外层 `ResourceDetailLayout` 统一管理整体滚动;侧栏复用 `w-sidebar-expanded`、`MkSearchList` 的搜索、选中和空态。 “按用户组”列表通过插槽展示名称及自动授权状态;接口尚未返回组已授权人数,手动授权组显示“已授权 —”,不以当前页勾选数代替。 -右侧第一行展示组名和用户查询总数;下方工具栏左侧为默认按用户名查询的 `MkComplexSearch` 及自动授权开关,右侧为保存。 -顶部 `MkComplexSearch` 仅提供用户名、姓名;用户来源只在表头使用 `MkTableFilter mode="single"` 筛选,向接口传 `source`。 +右侧第一行展示组名和用户查询总数;下方工具栏左侧为默认按姓名查询的 `MkComplexSearch` 及自动授权开关,右侧为保存。 +顶部 `MkComplexSearch` 按姓名、用户名排列;用户来源只在表头使用 `MkTableFilter mode="single"` 筛选,向接口传 `source`。 用户名、姓名搜索与表头来源可组合查询,清空一处条件不影响另一处,不额外重置搜索组件。 筛选变更回到第一页,选择“全部”移除来源条件。保留 `MkTable` 分页及高度约束。 diff --git a/ui/src/views/application-detail/chat-user/index.vue b/ui/src/views/application-detail/chat-user/index.vue index 769b5116597..f215081c72e 100644 --- a/ui/src/views/application-detail/chat-user/index.vue +++ b/ui/src/views/application-detail/chat-user/index.vue @@ -55,8 +55,8 @@ const savedAuthorization = ref>({}) const chatUserSearchQuery = ref>() const paginationConfig = ref({ currentPage: 1, pageSize: 20, total: 0 }) const searchFields: OptionItem[] = [ - { label: '用户名', value: 'username' }, { label: '姓名', value: 'nick_name' }, + { label: '用户名', value: 'username' }, ] // 表头用户来源筛选 diff --git a/ui/src/views/knowledge-detail/chat-user/index.vue b/ui/src/views/knowledge-detail/chat-user/index.vue index aac983a655f..8f84278b067 100644 --- a/ui/src/views/knowledge-detail/chat-user/index.vue +++ b/ui/src/views/knowledge-detail/chat-user/index.vue @@ -55,8 +55,8 @@ const savedAuthorization = ref>({}) const chatUserSearchQuery = ref>() const paginationConfig = ref({ currentPage: 1, pageSize: 20, total: 0 }) const searchFields: OptionItem[] = [ - { label: '用户名', value: 'username' }, { label: '姓名', value: 'nick_name' }, + { label: '用户名', value: 'username' }, ] // 表头用户来源筛选 diff --git a/ui/src/views/system/identity/users/index.vue b/ui/src/views/system/identity/users/index.vue index e33ab0a7767..c412d47cf1c 100644 --- a/ui/src/views/system/identity/users/index.vue +++ b/ui/src/views/system/identity/users/index.vue @@ -221,7 +221,7 @@ onMounted(() => loadSystemUsers()) - +