perf: 工作流支持关联任务列表自动移动

This commit is contained in:
kuaifan
2023-08-05 16:38:12 +08:00
parent fcecccc9b8
commit 7e5bbb4bb7
6 changed files with 187 additions and 39 deletions

View File

@@ -618,6 +618,9 @@ class ProjectTask extends AbstractModel
$data['assist'] = array_values(array_unique(array_diff($data['assist'], $data['owner'])));
}
}
if ($newFlowItem->columnid && ProjectColumn::whereProjectId($this->project_id)->whereId($newFlowItem->columnid)->exists()) {
$data['column_id'] = $newFlowItem->columnid;
}
$this->flow_item_id = $newFlowItem->id;
$this->flow_item_name = $newFlowItem->status . "|" . $newFlowItem->name;
$this->addLog("修改{任务}状态", [