task-273(验收反馈): 店铺数据卡片宫格排(一行3个/一页9张+卡片分页)

This commit is contained in:
2026-09-06 01:48:57 +08:00
parent 8add3ceaa4
commit 0315a3a93d
4 changed files with 65 additions and 6 deletions
@@ -6,8 +6,8 @@ import { readSource } from './helpers.ts'
test('align_shop_data_cards_per_task', () => {
const page = readSource('src/pages/tasks/ShopDataTasksPage.vue')
// 每任务一张卡:以 resultRow 迭代渲染卡片,不再按店铺聚合。
assert.match(page, /v-for="row in allResultRows"/, '逐任务卡片渲染')
// 每任务一张卡:以 resultRow 迭代渲染卡片(宫格分页后绑定 pagedResultRows,不再按店铺聚合。
assert.match(page, /v-for="row in pagedResultRows"/, '逐任务卡片渲染')
assert.doesNotMatch(page, /v-for="group in groups"/, '去掉按店铺聚合卡片')
// 卡片结构:店铺名头 + 任务号/状态 + 分组/最新/国家/文件 信息行 + 下载文件/删除。
assert.match(page, /任务 {{ row\.taskNo \|\| row\.resultId }}|任务 {{ row\.taskNo/, '卡片含任务号')