fix抄送节点历史插入数据错误
This commit is contained in:
1 parent
c0487eea1e
commit
ac2e0d753c
2 files changed
+6
-3
No files matched your search
+5
-2
@@ -102,6 +102,7 @@ class TaskService extends Service {
|
||||
}
|
||||
// 下一个节点是抄送节点
|
||||
if (nextNode.properties.type === "noticeTask") {
|
||||
|
||||
noticeInsertData.push({
|
||||
noticeId: await idGenerateUtil.uuid(),
|
||||
noticeName: "通知-审批-" + taskId,
|
||||
@@ -110,12 +111,14 @@ class TaskService extends Service {
|
||||
pushStatus: "success",
|
||||
pushAt: dayjs().format("YYYY-MM-DD HH:mm:ss")
|
||||
})
|
||||
|
||||
historyInsertData.push(await this.createTaskHistory({ taskData, taskStatus, type }))
|
||||
nextNode = await this.getNextNode(taskWorkflow, curNode)
|
||||
|
||||
taskData = {
|
||||
...taskData,
|
||||
taskConfigId: nextNode.id,
|
||||
// taskEditUserList: nextNode.properties.userIdList.join(','),
|
||||
taskEditUserList: nextNode.properties.userIdList.join(','),
|
||||
taskEditedUserList: null,
|
||||
taskComment: null,
|
||||
operationAt: dayjs().format("YYYY-MM-DD HH:mm:ss")
|
||||
@@ -200,7 +203,7 @@ class TaskService extends Service {
|
||||
taskExplain: type,
|
||||
taskHandleDesc: type,
|
||||
taskCostDuration,
|
||||
createHistoryBy: userId,
|
||||
createHistoryBy: taskEditUserList,
|
||||
createHistoryAt: dayjs().format('YYYY-MM-DD HH:mm:ss')
|
||||
}
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ Vue.component("workflow-editor-drawer", {
|
||||
},
|
||||
watch:{
|
||||
step(newVal, oldVal){
|
||||
console.log('step', newVal, oldVal);
|
||||
this.$refs.processFlow.doUiAction('closeEditNode')
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
||||
Reference in new issue
Block a user