撤回链式接力: CANCELED后生成WIP子任务还给操作人+TreeCanvas CANCELED视为串行换行

This commit is contained in:
2026-08-06 12:53:23 +08:00
parent 616638a6c8
commit e5e2a395e7
2 changed files with 32 additions and 28 deletions

View File

@ -69,7 +69,7 @@ export default {
// 工业拓扑父WIP→并行(同Y)父COMPLETED→串行(换行)
// 后端保证 COMPLETED 后不可 spawn故 COMPLETED 的子任务必为转交产物
const parent = this.taskDataMap[t.parent_task_id];
const isSerial = !t.parent_task_id || (parent && parent.status === 'COMPLETED');
const isSerial = !t.parent_task_id || (parent && (parent.status === 'COMPLETED' || parent.status === 'CANCELED'));
const rowIdx = isSerial ? (parentRowIdx >= 0 ? parentRowIdx + 1 : rows.length) : parentRowIdx;
while (rows.length <= rowIdx) rows.push({ y: 0, tasks: [] });