From 80d6aad54b01f647952240cf581778a50ccb84fb Mon Sep 17 00:00:00 2001 From: r Date: Sun, 21 Jun 2026 11:29:27 +0800 Subject: [PATCH] =?UTF-8?q?style(servers):=20=E8=A1=8C=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E4=B8=8E=E6=89=B9=E9=87=8F=E6=A0=8F=E5=88=86=E7=BB=84=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E5=8C=96=20UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit outlined 按钮组 + 批量栏运维/Agent/其他分区展示。 Co-authored-by: Cursor --- .../2026-06-21-servers-row-actions-batch.md | 11 +- .../servers/ServerBatchActionBar.vue | 119 ++++++++++++++++-- .../servers/ServerTableRowActions.vue | 105 ++++++++-------- frontend/src/constants/serverTableHeaders.ts | 2 +- 4 files changed, 169 insertions(+), 68 deletions(-) diff --git a/docs/changelog/2026-06-21-servers-row-actions-batch.md b/docs/changelog/2026-06-21-servers-row-actions-batch.md index 4b4dfa7a..f9c86c88 100644 --- a/docs/changelog/2026-06-21-servers-row-actions-batch.md +++ b/docs/changelog/2026-06-21-servers-row-actions-batch.md @@ -27,6 +27,11 @@ ## 验证 -1. `#/servers` 行内见「一键登录」,无「检测路径/诊断」 -2. 勾选多台 → 批量栏可「检测路径」 -3. 单选 1 台 → 批量栏「诊断」弹出 Agent 诊断对话框 +1. `#/servers` 行内见分组 outlined 按钮(终端/登录、文件/编辑、删除图标) +2. 勾选多台 → 批量栏分组展示运维 / Agent / 其他 +3. 单选 1 台 → 批量栏「诊断」可用 + +## 2026-06-21 UI 迭代 + +- 行操作:`v-btn-group` outlined + 图标;宝塔入口显示「登录」+ tooltip +- 批量栏:浅底描边卡片,按运维/Agent/其他分组,tonal 按钮带图标 diff --git a/frontend/src/components/servers/ServerBatchActionBar.vue b/frontend/src/components/servers/ServerBatchActionBar.vue index 7bbd30f8..f49f8c73 100644 --- a/frontend/src/components/servers/ServerBatchActionBar.vue +++ b/frontend/src/components/servers/ServerBatchActionBar.vue @@ -1,17 +1,77 @@ @@ -34,3 +94,36 @@ defineEmits<{ clear: [] }>() + + diff --git a/frontend/src/components/servers/ServerTableRowActions.vue b/frontend/src/components/servers/ServerTableRowActions.vue index 5757d836..20462b84 100644 --- a/frontend/src/components/servers/ServerTableRowActions.vue +++ b/frontend/src/components/servers/ServerTableRowActions.vue @@ -1,55 +1,54 @@ @@ -68,12 +67,16 @@ defineEmits<{ diff --git a/frontend/src/constants/serverTableHeaders.ts b/frontend/src/constants/serverTableHeaders.ts index db1ec8c2..22cb310b 100644 --- a/frontend/src/constants/serverTableHeaders.ts +++ b/frontend/src/constants/serverTableHeaders.ts @@ -7,5 +7,5 @@ export const SERVER_DATA_TABLE_HEADERS = [ { title: '目标路径', key: 'target_path', width: 200 }, { title: 'Agent', key: 'agent_version', width: 100 }, { title: '心跳', key: 'last_heartbeat', width: 120 }, - { title: '操作', key: 'actions', width: 280, align: 'end' as const, sortable: false }, + { title: '操作', key: 'actions', width: 300, align: 'end' as const, sortable: false }, ]