撤回链式接力: CANCELED后生成WIP子任务还给操作人+TreeCanvas CANCELED视为串行换行
This commit is contained in:
@ -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: [] });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user