From e560f396c5df192a850653d34f540a794581fd68 Mon Sep 17 00:00:00 2001 From: Ocetars Date: Wed, 3 Dec 2025 15:45:12 +0800 Subject: [PATCH] =?UTF-8?q?refactor(command):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=8C=87=E4=BB=A4=E9=A1=B5=E9=9D=A2=E5=B8=83=E5=B1=80=E5=B9=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=86=B2=E7=AA=81=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 【布局优化】重新组织指令管理页面布局,将筛选器移至顶部独立行 - 【信息展示】将搜索栏与总指令数、已禁用指令数合并显示,提升页面空间利用率 - 【视觉更新】更新指令冲突警告样式 --- .../i18n/locales/en-US/features/command.json | 3 +- .../i18n/locales/zh-CN/features/command.json | 3 +- dashboard/src/views/CommandPage.vue | 82 ++++++++----------- 3 files changed, 38 insertions(+), 50 deletions(-) diff --git a/dashboard/src/i18n/locales/en-US/features/command.json b/dashboard/src/i18n/locales/en-US/features/command.json index b20044e3c..aee2d9c45 100644 --- a/dashboard/src/i18n/locales/en-US/features/command.json +++ b/dashboard/src/i18n/locales/en-US/features/command.json @@ -74,6 +74,7 @@ "disabled": "Disabled", "conflict": "Conflict", "byPlugin": "Filter by plugin", - "byPermission": "Filter by permission" + "byPermission": "Filter by permission", + "byStatus": "Filter by status" } } diff --git a/dashboard/src/i18n/locales/zh-CN/features/command.json b/dashboard/src/i18n/locales/zh-CN/features/command.json index da7fc259f..a2fad4203 100644 --- a/dashboard/src/i18n/locales/zh-CN/features/command.json +++ b/dashboard/src/i18n/locales/zh-CN/features/command.json @@ -74,6 +74,7 @@ "disabled": "已禁用", "conflict": "有冲突", "byPlugin": "按插件筛选", - "byPermission": "按权限筛选" + "byPermission": "按权限筛选", + "byStatus": "按状态筛选" } } diff --git a/dashboard/src/views/CommandPage.vue b/dashboard/src/views/CommandPage.vue index 1bd9c23c3..09ec8f25e 100644 --- a/dashboard/src/views/CommandPage.vue +++ b/dashboard/src/views/CommandPage.vue @@ -265,52 +265,8 @@ onMounted(async () => { - - - - - -
{{ summary.total }}
-
{{ tm('summary.total') }}
-
-
-
- - - -
{{ summary.disabled }}
-
{{ tm('summary.disabled') }}
-
-
-
- - - -
{{ summary.conflicts }}
-
{{ tm('summary.conflicts') }}
-
-
-
-
- - -
-
- -
-
- - - + + { { title: tm('filters.disabled'), value: 'disabled' }, { title: tm('filters.conflict'), value: 'conflict' } ]" + :label="tm('filters.byStatus')" density="compact" variant="outlined" hide-details @@ -352,11 +309,40 @@ onMounted(async () => { + +
+
+ +
+
+
+ mdi-console-line + {{ tm('summary.total') }}: + {{ summary.total }} +
+ +
+ mdi-close-circle-outline + {{ tm('summary.disabled') }}: + {{ summary.disabled }} +
+
+
+