fixbug
This commit is contained in:
1 parent
aad16f5806
commit
f04164dfe1
1 file changed
+2
-2
+2
-2
@@ -380,7 +380,7 @@ class TaskService extends Service {
|
|||||||
delete history.taskEditedUserList;
|
delete history.taskEditedUserList;
|
||||||
await trx('task_history', this.ctx).insert(history);
|
await trx('task_history', this.ctx).insert(history);
|
||||||
|
|
||||||
return history;
|
return {taskHistory, history};
|
||||||
}
|
}
|
||||||
|
|
||||||
async saveWorkFlowExecHistory(trx, taskInfo, currentNode, endNode, line, nextLineList, taskEditUserList, history) {
|
async saveWorkFlowExecHistory(trx, taskInfo, currentNode, endNode, line, nextLineList, taskEditUserList, history) {
|
||||||
@@ -432,7 +432,7 @@ class TaskService extends Service {
|
|||||||
const currentNode = nodeList.find(e => e.id === taskInfo.taskConfigId);
|
const currentNode = nodeList.find(e => e.id === taskInfo.taskConfigId);
|
||||||
taskFormInput = taskFormInput || taskInfo.taskFormInput;
|
taskFormInput = taskFormInput || taskInfo.taskFormInput;
|
||||||
|
|
||||||
const history = await this.saveCurrentNodeExecHistory(trx, taskInfo, currentNode, taskFormInput, taskComment, lines, type);
|
const {taskHistory, history} = await this.saveCurrentNodeExecHistory(trx, taskInfo, currentNode, taskFormInput, taskComment, lines, type);
|
||||||
|
|
||||||
// 未配置连线时,默认添加拒绝连线到end节点
|
// 未配置连线时,默认添加拒绝连线到end节点
|
||||||
if (endNode && !lines.length) {
|
if (endNode && !lines.length) {
|
||||||
|
|||||||
Reference in new issue
Block a user