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, } ],