feat: 统一列表模糊搜索行为

- 统一管理端和用户中心搜索参数及多字段包含匹配

- 修复聊天搜索竞态并优化部门重名路径展示

- 补充部门展开、模型空白词和聊天查询回归测试
This commit is contained in:
2026-08-13 22:29:59 +08:00
parent 765006747a
commit 64a85c6a5b
83 changed files with 1134 additions and 208 deletions

View File

@@ -61,8 +61,7 @@ watchListRouteState(route, sysJobListRouteSchema, (state) => {
pageNumber: state.pageNumber,
pageSize: state.pageSize,
queryParams: {
isQueryOr: true,
jobName: state.keyword || undefined,
keyword: state.keyword || undefined,
},
});
});
@@ -88,8 +87,7 @@ function initDict() {
const handleSearch = (params: string) => {
searchKeyword.value = params;
pageDataRef.value.setQuery({
jobName: params || undefined,
isQueryOr: true,
keyword: params || undefined,
});
};
function reloadCurrentList() {
@@ -230,8 +228,7 @@ function handlePageStateChange(state: {
:page-size="initialListState.pageSize"
:initial-page-number="initialListState.pageNumber"
:initial-query-params="{
jobName: initialListState.keyword || undefined,
isQueryOr: true,
keyword: initialListState.keyword || undefined,
}"
@state-change="handlePageStateChange"
>