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") {
|
if (nextNode.properties.type === "noticeTask") {
|
||||||
|
|
||||||
noticeInsertData.push({
|
noticeInsertData.push({
|
||||||
noticeId: await idGenerateUtil.uuid(),
|
noticeId: await idGenerateUtil.uuid(),
|
||||||
noticeName: "通知-审批-" + taskId,
|
noticeName: "通知-审批-" + taskId,
|
||||||
@@ -110,12 +111,14 @@ class TaskService extends Service {
|
|||||||
pushStatus: "success",
|
pushStatus: "success",
|
||||||
pushAt: dayjs().format("YYYY-MM-DD HH:mm:ss")
|
pushAt: dayjs().format("YYYY-MM-DD HH:mm:ss")
|
||||||
})
|
})
|
||||||
|
|
||||||
historyInsertData.push(await this.createTaskHistory({ taskData, taskStatus, type }))
|
historyInsertData.push(await this.createTaskHistory({ taskData, taskStatus, type }))
|
||||||
nextNode = await this.getNextNode(taskWorkflow, curNode)
|
nextNode = await this.getNextNode(taskWorkflow, curNode)
|
||||||
|
|
||||||
taskData = {
|
taskData = {
|
||||||
...taskData,
|
...taskData,
|
||||||
taskConfigId: nextNode.id,
|
taskConfigId: nextNode.id,
|
||||||
// taskEditUserList: nextNode.properties.userIdList.join(','),
|
taskEditUserList: nextNode.properties.userIdList.join(','),
|
||||||
taskEditedUserList: null,
|
taskEditedUserList: null,
|
||||||
taskComment: null,
|
taskComment: null,
|
||||||
operationAt: dayjs().format("YYYY-MM-DD HH:mm:ss")
|
operationAt: dayjs().format("YYYY-MM-DD HH:mm:ss")
|
||||||
@@ -200,7 +203,7 @@ class TaskService extends Service {
|
|||||||
taskExplain: type,
|
taskExplain: type,
|
||||||
taskHandleDesc: type,
|
taskHandleDesc: type,
|
||||||
taskCostDuration,
|
taskCostDuration,
|
||||||
createHistoryBy: userId,
|
createHistoryBy: taskEditUserList,
|
||||||
createHistoryAt: dayjs().format('YYYY-MM-DD HH:mm:ss')
|
createHistoryAt: dayjs().format('YYYY-MM-DD HH:mm:ss')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ Vue.component("workflow-editor-drawer", {
|
|||||||
},
|
},
|
||||||
watch:{
|
watch:{
|
||||||
step(newVal, oldVal){
|
step(newVal, oldVal){
|
||||||
console.log('step', newVal, oldVal);
|
this.$refs.processFlow.doUiAction('closeEditNode')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
Reference in new issue
Block a user