From 0e329d9ff44d7ef250528ac7186ac37c623e1bb9 Mon Sep 17 00:00:00 2001 From: Nixevol Date: Mon, 9 Nov 2026 18:12:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=87=87=E9=9B=86=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E6=94=B6=E5=A5=BD=E5=B7=B2=E9=80=89=E8=A1=A8=EF=BC=8C=E5=85=A8?= =?UTF-8?q?=E9=87=8F=E6=A3=80=E6=9F=A5=E5=8F=AA=E6=8F=90=E7=A4=BA=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E6=B1=87=E6=80=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/features/admin/PoolView.vue | 3 ++- web/src/features/admin/SourcesView.vue | 28 +++++++++++++++----------- web/src/styles.css | 11 ++++++---- 3 files changed, 25 insertions(+), 17 deletions(-) diff --git a/web/src/features/admin/PoolView.vue b/web/src/features/admin/PoolView.vue index 7dbe778..bd0682b 100644 --- a/web/src/features/admin/PoolView.vue +++ b/web/src/features/admin/PoolView.vue @@ -61,8 +61,9 @@ async function checkAll() { try { const result = await api<{ accounts: Account[] }>("/api/admin/pool/check", { method: "POST" }); accounts.value = result.accounts; + const total = result.accounts.length; const invalid = result.accounts.filter((item) => !item.credentialValid).length; - toast.success(invalid ? `${invalid} 个凭证已失效` : "全部凭证有效"); + toast.info(`共 ${total} 个,有效 ${total - invalid} 个,失效 ${invalid} 个`); } catch (error) { toast.error(error instanceof Error ? error.message : "检查失败"); } finally { diff --git a/web/src/features/admin/SourcesView.vue b/web/src/features/admin/SourcesView.vue index b4216b4..bb725a7 100644 --- a/web/src/features/admin/SourcesView.vue +++ b/web/src/features/admin/SourcesView.vue @@ -69,8 +69,8 @@ const tableOptions = computed(() => groups.value.map((group) => ({ children: group.tables.map((table) => ({ label: table.name, value: table.tablename })), }))); const picked = computed(() => chosen.value.map((item) => item.tablename)); -const pickedText = computed(() => chosen.value.length ? `已选 ${chosen.value.length}:${chosen.value.map((item) => item.name).join("、")}` : ""); -const renderTag: SelectRenderTag = () => h("span", { class: "picker-inline" }, pickedText.value || "请选择表"); +const pickedText = computed(() => chosen.value.map((item) => item.name).join("、")); +const renderTag: SelectRenderTag = () => h("span", { class: "picker-inline" }, pickedText.value); function scheduleText(source: Source) { const schedule = source.config.schedule; @@ -270,10 +270,7 @@ onMounted(load); :render-tag="renderTag" @update:value="setPicked" /> -
- 已选 {{ chosen.length }} - 选择详情 -
+ 已选 {{ chosen.length }}
@@ -291,7 +288,7 @@ onMounted(load); -
+