From b405f179c86598fe73559f47a69ee7b05568e819 Mon Sep 17 00:00:00 2001 From: xueyuan Date: Mon, 13 Feb 2023 21:09:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4ui=EF=BC=8C=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E7=94=A8=E6=88=B7=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/task.js | 2 +- app/service/workflow.js | 2 +- app/view/page/todo.html | 2 +- app/view/page/workflowManagement.html | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/service/task.js b/app/service/task.js index 2602180..c4d382f 100644 --- a/app/service/task.js +++ b/app/service/task.js @@ -72,7 +72,7 @@ class TaskService extends Service { let {mode = 'serial', nodeList = [], lineList = []} = workflowConfig; const nodeListOfUserTaskNode = (JSON.parse(workflowConfigCustom || '{}')).nodeListOfUserTaskNode || [] // 合并定制的审批人和workflow的审批人 - // nodeList = _.merge(_.keyBy(nodeList, 'id'), _.keyBy((JSON.parse(workflowConfigCustom || '{}')).nodeListOfUserTaskNode || [], 'id')) + nodeList = _.merge(_.keyBy(nodeList, 'id'), _.keyBy(nodeListOfUserTaskNode, 'id')) for (let i = 0; i < nodeList.length; i++) { const node = nodeList[i]; const tempNode = nodeListOfUserTaskNode.find(n => n.id === node.id); diff --git a/app/service/workflow.js b/app/service/workflow.js index 188a514..4439450 100644 --- a/app/service/workflow.js +++ b/app/service/workflow.js @@ -93,7 +93,7 @@ class WorkflowService extends Service { throw new BizError(errorInfoEnum.workflow_not_found); } - actionData.workflowConfigCustom = JSON.stringify(workflowConfigCustom); + actionData.workflowConfigCustom = workflowConfigCustom; actionData.workflowId = workflow.workflowId; actionData.taskTitle = workflow.workflowName; actionData.workflowForm = formItemList; diff --git a/app/view/page/todo.html b/app/view/page/todo.html index 7183a04..2ef9a27 100644 --- a/app/view/page/todo.html +++ b/app/view/page/todo.html @@ -143,7 +143,7 @@ 备注 - diff --git a/app/view/page/workflowManagement.html b/app/view/page/workflowManagement.html index 9959f97..a39403e 100644 --- a/app/view/page/workflowManagement.html +++ b/app/view/page/workflowManagement.html @@ -9,7 +9,7 @@
-
流程管理 +
流程管理/发起任务 mdi-help-circle-outline
@@ -181,7 +181,7 @@ disabled: true, }, { - text: '流程管理列表', + text: '流程管理列表、发起任务', disabled: true, } ],