fix(web): 收敛控制台列表主按钮、报警可读性与焦点环

按 UI 评审闭环 UI-02~UI-07(查询降权、对象/处理人可读化、筛选分层、数据源名映射、焦点外环);概览与登录壳按约定暂缓。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
unknownandCursor committed 2026-11-19 19:04:54 +08:00
1 parent c7a23837f4
commit 9dffeae667
25 files changed
+1057 -94

No files matched your search

+18 -4
View File
@@ -62,9 +62,23 @@ const switchError = ref("");
async function loadOptions(): Promise<void> {
try {
// Option lists need a wide page; not the table page size.
const sources = await listDatasources({ page: 1, page_size: 100, sort_by: "name", sort_order: "asc" });
datasources.value = sources.items;
// Name map + filter options: page through the datasource API (max 100/page).
const all: Datasource[] = [];
let pageNo = 1;
for (;;) {
const sources = await listDatasources({
page: pageNo,
page_size: 100,
sort_by: "name",
sort_order: "asc",
});
all.push(...sources.items);
if (all.length >= sources.total || sources.items.length === 0 || pageNo > 50) {
break;
}
pageNo += 1;
}
datasources.value = all;
} catch {
datasources.value = [];
}
@@ -235,7 +249,7 @@ onMounted(async () => {
<ElOption :label="t('query.status.disabled')" value="disabled" />
</ElSelect>
</div>
<ElButton type="primary" data-testid="query-filter-search" @click="applyFilters">
<ElButton data-testid="query-filter-search" @click="applyFilters">
{{ t("query.list.filterSearch") }}
</ElButton>
<ElButton data-testid="query-filter-reset" @click="resetFilters">