diff --git a/admin-frontend-vue/src/pages/tasks/DuplicateCheckPage.vue b/admin-frontend-vue/src/pages/tasks/DuplicateCheckPage.vue index 352771fb..f64e3b94 100644 --- a/admin-frontend-vue/src/pages/tasks/DuplicateCheckPage.vue +++ b/admin-frontend-vue/src/pages/tasks/DuplicateCheckPage.vue @@ -496,7 +496,7 @@ onMounted(() => {
{{ bar.asins.toLocaleString() }} 个 ASIN
- + @@ -574,7 +574,7 @@ onMounted(() => { 调整筛选条件或切换到其他分组查看 - +
撞款详情 同一 ASIN 在多家店铺的上架时间明细
@@ -598,7 +598,7 @@ onMounted(() => {
当前范围下没有撞款ASIN
- +
{{ dupRows.length }} 条{{ scope === 'group' && selectedGroup ? `分组「${selectedGroup}」组内撞款ASIN` : '全店撞款ASIN' }}
diff --git a/admin-frontend-vue/tests/align-dup-console.test.ts b/admin-frontend-vue/tests/align-dup-console.test.ts index f0d43b38..3266d563 100644 --- a/admin-frontend-vue/tests/align-dup-console.test.ts +++ b/admin-frontend-vue/tests/align-dup-console.test.ts @@ -48,12 +48,15 @@ test('align_dup_console_drawer_template', () => { }) test('align_dup_console_pagination_all_lists', () => { - // 全站统一收官:撞款页四处列表(分布/矩阵/撞款详情卡片/抽屉明细)均挂共享 OldPagination。 + // 全站统一收官:撞款页四处列表(分布/矩阵/撞款详情卡片/抽屉明细)均挂共享 OldPagination, + // 且分布/矩阵/详情常显(不足一页也显示分页器,反馈:数据少时看不到分页)。 const page = readSource('src/pages/tasks/DuplicateCheckPage.vue') - assert.match(page, /:total="distCount"/, '店铺上架分布有分页器') - assert.match(page, /:total="dupRows\.length"/, '撞款覆盖矩阵有分页器') + assert.match(page, /:total="distCount"/, '店铺上架分布有分页器(常显)') + assert.match(page, /:total="dupRows\.length"/, '撞款覆盖矩阵有分页器(常显)') assert.match(page, /v-for="item in dupCardRows"/, '撞款详情卡片绑定分页切片') - assert.match(page, /v-if="dupRows\.length > dupCardPageSize"/, '撞款详情卡片有分页器') + assert.match(page, /:total="dupRows\.length"[\s\S]*dupCardPageSize/, '撞款详情卡片有分页器(常显)') + assert.match(page, /]*:total="distCount"/, '分布分页器无 v-if 条件') + assert.match(page, /]*:total="dupRows\.length"/, '矩阵/详情分页器无 v-if 条件') assert.match(page, /v-for="group in pagedGroupStats"/, '分组说明抽屉表绑定分页切片') assert.match(page, /:total="groupStats\.length"/, '分组说明抽屉表有分页器') })