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) { + + } + }, /** * 新增数据 */