feat(admin): 店铺数据记录卡片改一行4个;卡片任务号改为任务id(file_task.id,与桌面端推送/心跳/回传同一id)——taskId优先,taskNo/resultId兜底;删除确认同步;更新对齐测试
This commit is contained in:
@@ -9,8 +9,8 @@ test('align_shop_data_cards_per_task', () => {
|
||||
// 每任务一张卡:以 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/, '卡片含任务号')
|
||||
// 卡片结构:店铺名头 + 任务 id/状态 + 分组/最新/国家/文件 信息行 + 下载文件/删除。
|
||||
assert.match(page, /任务 {{ row\.taskId \|\| row\.taskNo \|\| row\.resultId }}/, '卡片含任务 id(桌面端 taskid)')
|
||||
assert.match(page, />分组</, '卡片含分组行')
|
||||
assert.match(page, />最新</, '卡片含最新行')
|
||||
assert.match(page, />国家</, '卡片含国家行')
|
||||
|
||||
@@ -2,13 +2,13 @@ import test from 'node:test'
|
||||
import assert from 'node:assert/strict'
|
||||
import { readSource } from './helpers.ts'
|
||||
|
||||
// 验收反馈:店铺数据记录卡片用宫格排(一行 3 个、一页 9 张卡片)+ 分页组件翻页。
|
||||
// 验收反馈:店铺数据记录卡片用宫格排(一行 4 个、一页 9 张卡片)+ 分页组件翻页。
|
||||
|
||||
const PAGE = 'src/pages/tasks/ShopDataTasksPage.vue'
|
||||
|
||||
test('align_shop_data_grid_normal_primary_path', () => {
|
||||
const src = readSource(PAGE)
|
||||
assert.match(src, /grid-template-columns:\s*repeat\(3,\s*1fr\)/, '卡片容器应为 3 列宫格')
|
||||
assert.match(src, /grid-template-columns:\s*repeat\(4,\s*1fr\)/, '卡片容器应为 4 列宫格')
|
||||
})
|
||||
|
||||
test('align_shop_data_grid_normal_variant_input', () => {
|
||||
|
||||
Reference in New Issue
Block a user