feat(data-process): 完善后台生成与失败重试
This commit is contained in:
@@ -23,9 +23,10 @@ assert.match(routerSource, /name:\s*['"]data-process-detail['"]/, '数据处理
|
||||
assert.match(routerSource, /DataProcessDetailView\.vue/, '数据处理详情路由未加载详情页面')
|
||||
assert.match(routerSource, /title:\s*['"]数据处理详情['"]/, '数据处理详情路由标题不正确')
|
||||
assert.match(routerSource, /path:\s*['"]data-process\/:id\/regenerate['"][\s\S]*?name:\s*['"]data-process-regenerate['"][\s\S]*?DataProcessCreateView\.vue/, '重新生成路由未复用创建向导')
|
||||
assert.match(routerSource, /path:\s*['"]data-process\/:id\/workflow['"][\s\S]*?name:\s*['"]data-process-workflow['"][\s\S]*?DataProcessCreateView\.vue/, '未确认任务缺少工作流恢复路由')
|
||||
|
||||
assert.match(listSource, /name:\s*['"]data-process-detail['"]/, '列表详情按钮未使用详情命名路由')
|
||||
assert.match(listSource, /params:\s*\{\s*id:\s*taskId\s*\}/, '列表详情按钮未传递任务 ID')
|
||||
assert.match(listSource, /'data-process-detail'[\s\S]*?'data-process-workflow'/, '列表详情按钮未按确认状态分流')
|
||||
assert.match(listSource, /params:\s*\{\s*id:\s*task\.id\s*\}/, '列表详情按钮未传递任务 ID')
|
||||
assert.doesNotMatch(listSource, /查看详情功能开发中/, '详情按钮仍保留开发中提示')
|
||||
|
||||
for (const requiredCopy of [
|
||||
@@ -42,7 +43,15 @@ for (const requiredCopy of [
|
||||
}
|
||||
|
||||
assert.match(typesSource, /export type DataProcessStatus = 'pending' \| 'running' \| 'completed' \| 'failed' \| 'stopped'/, '任务状态契约不完整')
|
||||
assert.match(typesSource, /workflow_step\?: DataProcessWorkflowStep/, '任务详情契约缺少向导恢复步骤')
|
||||
assert.match(typesSource, /results_confirmed\?: boolean/, '任务详情契约缺少第六步确认标记')
|
||||
assert.match(detailSource, /getDataProcessTask\(taskId\.value\)/, '详情页没有通过真实 API 加载任务')
|
||||
assert.match(detailSource, /task\.status !== 'completed' \|\| task\.results_confirmed === false[\s\S]*?name: 'data-process-workflow'/, '未确认任务可绕过第六步直接进入最终详情')
|
||||
assert.match(
|
||||
detailSource,
|
||||
/if \(task\.status !== 'completed' \|\| task\.results_confirmed === false\) \{[\s\S]*?router\.replace\(\{ name: 'data-process-workflow'[\s\S]*?return[\s\S]*?\}[\s\S]*?detail\.value = task/,
|
||||
'未完成第六步确认时必须在赋值正式详情前终止加载',
|
||||
)
|
||||
assert.match(detailSource, /getDataProcessResults\(taskId\.value,\s*\{[\s\S]*?page:[\s\S]*?page_size:[\s\S]*?keyword:[\s\S]*?status:/, '结果列表没有接入服务端分页、搜索和状态筛选')
|
||||
assert.match(detailSource, /getDataProcessProgress\(taskId\.value\)/, '运行中任务没有查询真实进度')
|
||||
assert.match(detailSource, /usePolling\(refreshRuntime,\s*3000/, '运行中任务没有启用进度轮询')
|
||||
|
||||
Reference in New Issue
Block a user