From fc4eff2f01bb942de1fa36b6138e3b5640be692a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=84=E8=87=AA=E8=BE=BE?= <980324341@qq.com>
Date: Sun, 6 Sep 2026 21:41:26 +0800
Subject: [PATCH] =?UTF-8?q?align(shop/records/tasks):=20=E5=BA=97=E9=93=BA?=
=?UTF-8?q?=E7=AE=A1=E7=90=86/=E5=AF=86=E9=92=A5=E3=80=81=E7=94=9F?=
=?UTF-8?q?=E6=88=90=E8=AE=B0=E5=BD=95=E6=9F=A5=E7=9C=8B=E5=A4=A7=E5=9B=BE?=
=?UTF-8?q?=E3=80=81=E6=95=B0=E5=AD=97=E4=BA=BA=E7=89=88=E6=9C=AC=E6=93=8D?=
=?UTF-8?q?=E4=BD=9C=E7=9F=A9=E9=98=B5=E3=80=81=E8=A7=86=E9=A2=91=E4=BB=BB?=
=?UTF-8?q?=E5=8A=A1=E6=98=8E=E7=BB=86/=E4=B8=8B=E8=BD=BD=20=E4=B8=BB?=
=?UTF-8?q?=E6=93=8D=E4=BD=9C=E7=BB=9F=E4=B8=80=E5=AE=9E=E5=BF=83=20small(?=
=?UTF-8?q?=E5=AF=B9=E9=BD=90=20.btn-sm)=EF=BC=9B=E7=BA=AF=E5=A4=8D?=
=?UTF-8?q?=E5=88=B6=E9=93=BE=E6=8E=A5=E8=BE=85=E5=8A=A9=E4=BF=9D=E7=95=99?=
=?UTF-8?q?=20text?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../RecordsDigitalHumanVersionPage.vue | 8 +--
.../src/pages/records/RecordsHistoryPage.vue | 2 +-
.../src/pages/shop/ShopKeysPage.vue | 4 +-
.../src/pages/shop/ShopManagePage.vue | 6 +--
.../src/pages/tasks/ImageVideoTasksPage.vue | 3 +-
.../align-shop-records-row-buttons.test.ts | 49 +++++++++++++++++++
6 files changed, 60 insertions(+), 12 deletions(-)
create mode 100644 admin-frontend-vue/tests/align-shop-records-row-buttons.test.ts
diff --git a/admin-frontend-vue/src/pages/records/RecordsDigitalHumanVersionPage.vue b/admin-frontend-vue/src/pages/records/RecordsDigitalHumanVersionPage.vue
index 7536109c..dee09594 100644
--- a/admin-frontend-vue/src/pages/records/RecordsDigitalHumanVersionPage.vue
+++ b/admin-frontend-vue/src/pages/records/RecordsDigitalHumanVersionPage.vue
@@ -221,10 +221,10 @@ onMounted(load)
- 发布
- 设为最新
- 下载
- 删除
+ 发布
+ 设为最新
+ 下载
+ 删除
diff --git a/admin-frontend-vue/src/pages/records/RecordsHistoryPage.vue b/admin-frontend-vue/src/pages/records/RecordsHistoryPage.vue
index 145ce87a..6a7b58de 100644
--- a/admin-frontend-vue/src/pages/records/RecordsHistoryPage.vue
+++ b/admin-frontend-vue/src/pages/records/RecordsHistoryPage.vue
@@ -223,7 +223,7 @@ onMounted(() => {
- 查看大图
+ 查看大图
diff --git a/admin-frontend-vue/src/pages/shop/ShopKeysPage.vue b/admin-frontend-vue/src/pages/shop/ShopKeysPage.vue
index 7fbe39f9..4f7b2ee6 100644
--- a/admin-frontend-vue/src/pages/shop/ShopKeysPage.vue
+++ b/admin-frontend-vue/src/pages/shop/ShopKeysPage.vue
@@ -156,8 +156,8 @@ onMounted(load)
- 编辑
- 删除
+ 编辑
+ 删除
diff --git a/admin-frontend-vue/src/pages/shop/ShopManagePage.vue b/admin-frontend-vue/src/pages/shop/ShopManagePage.vue
index 37ea1431..0250a677 100644
--- a/admin-frontend-vue/src/pages/shop/ShopManagePage.vue
+++ b/admin-frontend-vue/src/pages/shop/ShopManagePage.vue
@@ -257,9 +257,9 @@ onMounted(() => {
- 编辑
- 凭证
- 删除
+ 编辑
+ 凭证
+ 删除
diff --git a/admin-frontend-vue/src/pages/tasks/ImageVideoTasksPage.vue b/admin-frontend-vue/src/pages/tasks/ImageVideoTasksPage.vue
index f23ad81b..5b92beba 100644
--- a/admin-frontend-vue/src/pages/tasks/ImageVideoTasksPage.vue
+++ b/admin-frontend-vue/src/pages/tasks/ImageVideoTasksPage.vue
@@ -277,7 +277,7 @@ onMounted(load)
任务 {{ task.taskId }}
{{ statusLabel(task.status) }}
- 明细
+ 明细
@@ -299,7 +299,6 @@ onMounted(load)
视频加载失败,可尝试下载
第 {{ index + 1 }} 个
]*size="small"[^>]*@click="${action}`), `${action} 为 size=small 实心按钮`)
+ assert.doesNotMatch(source, new RegExp(`]*link[^>]*@click="${action}`), `${action} 不再 link`)
+ assert.doesNotMatch(source, new RegExp(`]*text[^>]*@click="${action}`), `${action} 不再 text`)
+}
+
+test('align_shop_manage_row_buttons_solid', () => {
+ const s = readSource('src/pages/shop/ShopManagePage.vue')
+ assertRowButtonSolid(s, 'openEdit')
+ assertRowButtonSolid(s, 'showCredential')
+ assertRowButtonSolid(s, 'remove')
+})
+
+test('align_shop_keys_row_buttons_solid', () => {
+ const s = readSource('src/pages/shop/ShopKeysPage.vue')
+ assertRowButtonSolid(s, 'openEdit')
+ assertRowButtonSolid(s, 'remove')
+})
+
+test('align_records_history_preview_solid', () => {
+ const s = readSource('src/pages/records/RecordsHistoryPage.vue')
+ assertRowButtonSolid(s, 'openPreview')
+})
+
+test('align_digital_human_row_buttons_solid', () => {
+ const s = readSource('src/pages/records/RecordsDigitalHumanVersionPage.vue')
+ assertRowButtonSolid(s, 'release')
+ assertRowButtonSolid(s, 'setLatest')
+ assertRowButtonSolid(s, 'download')
+ assertRowButtonSolid(s, 'remove')
+})
+
+test('align_image_video_detail_and_download_solid', () => {
+ const s = readSource('src/pages/tasks/ImageVideoTasksPage.vue')
+ assertRowButtonSolid(s, 'openDetail')
+ assertRowButtonSolid(s, 'downloadVideo')
+})
+
+test('align_copy_link_aux_kept_text', () => {
+ // 辅助"复制链接"保留 text(非破坏主操作),避免被误伤。
+ const s = readSource('src/pages/tasks/ImageVideoTasksPage.vue')
+ assert.match(s, /]*text[^>]*@click="copyLink/, '复制链接保留 text')
+})