From 34a7f5295229c69e70fc1c7ec67481010735d00d Mon Sep 17 00:00:00 2001 From: case <7795958+lipangpang251@user.noreply.gitee.com> Date: Thu, 7 Jul 2022 17:03:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/task.js | 7 ++++--- app/view/page/workflowManagement.html | 14 +++++++++----- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/app/service/task.js b/app/service/task.js index 26137bf..eb04b6b 100644 --- a/app/service/task.js +++ b/app/service/task.js @@ -245,13 +245,16 @@ class TaskService extends Service { } await jianghuKnex(tableEnum.task_history, this.ctx).insert(history); + const nextNode = nodeList.find(e => e.id === line.to); + let taskEditUserList = await this.getProcessUserList([nextNode]); // 修改任务步骤node 处理人\ const nextLineList = lineList.filter(e => e.from === line.to); if (line.to.includes('end-')) { + taskEditUserList = await this.getProcessUserList([currentNode]); const endHistory = { ...history, taskExplain: '结束', - taskConfigId: currentNode.id, + taskConfigId: nextNode.id, taskHandleDesc: '流程结束', taskLineFrom: line.from, taskLineTo: line.to, @@ -260,8 +263,6 @@ class TaskService extends Service { } await jianghuKnex(tableEnum.task_history, this.ctx).insert(endHistory); } - const taskEditUserList = await this.getProcessUserList([currentNode]); - const nextNode = nodeList.find(e => e.id === line.to); await jianghuKnex(tableEnum.task, this.ctx).where({taskId}).update({ taskFormInput, taskRemark, diff --git a/app/view/page/workflowManagement.html b/app/view/page/workflowManagement.html index f658e4e..9dc395f 100644 --- a/app/view/page/workflowManagement.html +++ b/app/view/page/workflowManagement.html @@ -17,9 +17,9 @@ - + - + - + @@ -313,7 +313,11 @@ new Vue({ async confirmCreateItemDialog() { return window.confirmDialog({title: '新增', content: '确定新增吗?'}) }, - + validate() { + if (!this.editItem.workflowId || !this.editItem.workflowId) { + + } + }, /** * 新增数据 */