diff --git a/app/service/task.js b/app/service/task.js index e010c1d..a6abddb 100644 --- a/app/service/task.js +++ b/app/service/task.js @@ -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') } } diff --git a/app/view/component/workflowEditorDrawer.html b/app/view/component/workflowEditorDrawer.html index 2cb2d4b..c63fe04 100644 --- a/app/view/component/workflowEditorDrawer.html +++ b/app/view/component/workflowEditorDrawer.html @@ -127,7 +127,7 @@ Vue.component("workflow-editor-drawer", { }, watch:{ step(newVal, oldVal){ - console.log('step', newVal, oldVal); + this.$refs.processFlow.doUiAction('closeEditNode') } }, computed: {