From ac2e0d753ceec6390e80ddc018b669cdfb5a8aae Mon Sep 17 00:00:00 2001 From: cxx Date: Wed, 8 May 2024 16:10:56 +0800 Subject: [PATCH] =?UTF-8?q?fix=E6=8A=84=E9=80=81=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E6=8F=92=E5=85=A5=E6=95=B0=E6=8D=AE=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/task.js | 7 +++++-- app/view/component/workflowEditorDrawer.html | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) 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: {