From ab5ac4b4bc2010d8eb09f710492cb8a84020ed08 Mon Sep 17 00:00:00 2001 From: Jam Date: Tue, 22 Nov 2022 14:03:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E9=A1=B5=E9=9D=A2ID=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E4=BD=BF=E7=94=A8taskId=E3=80=81service=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E8=B0=83=E7=94=A8=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/task.js | 1 + app/view/page/taskHistoryManagement.html | 12 +++++++----- app/view/page/taskICreateManagement.html | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/app/service/task.js b/app/service/task.js index a165599..c268cd7 100644 --- a/app/service/task.js +++ b/app/service/task.js @@ -87,6 +87,7 @@ class TaskService extends Service { } const [id] = await jianghuKnex(tableEnum.task, this.ctx).insert(startData); await this.buildNext({ type: '同意', id, taskTpl: {input: workflowFormData}, taskComment: '' }) + return startData; } async getGroupUserList(groupId) { diff --git a/app/view/page/taskHistoryManagement.html b/app/view/page/taskHistoryManagement.html index 6ae8773..c10bcfd 100644 --- a/app/view/page/taskHistoryManagement.html +++ b/app/view/page/taskHistoryManagement.html @@ -159,7 +159,7 @@ new Vue({ headers: [ {text: "节点", value: "taskExplain", width: 120}, {text: "流转", value: "taskHandleDesc", width: 120}, - {text: "课程名称", value: "operationByUser", width: 120}, + {text: "操作人", value: "operationByUser", width: 120}, {text: "备注", value: "taskComment", width: 120}, {text: "处理时长/秒", value: "taskCostDuration", width: 120}, {text: "表单明细", value: "action", width: 120}, @@ -167,6 +167,7 @@ new Vue({ editItem: {}, dialogSaveInfoAction: '', + id: '', taskId: '', isAccess: [], nextLineList: [], @@ -178,8 +179,9 @@ new Vue({ }), watch: {}, async created() { - const searchParams = new URLSearchParams(location.search.substring(1)); - this.taskId = searchParams.get('id'); + const searchParams = new URLSearchParams(location.search.substring(1)); + this.id = searchParams.get('id'); + this.taskId = searchParams.get('taskId'); await this.getTaskHistoryList() }, mounted() { @@ -221,7 +223,7 @@ new Vue({ appData: { pageId: 'taskHistoryManagement', actionId: 'getTaskHistoryInfo', - actionData: {id: this.taskId}, + actionData: {id: this.id}, } } }); @@ -248,7 +250,7 @@ new Vue({ appData: { pageId: 'taskHistoryManagement', actionId: 'submitNode', - actionData: {type, id: this.taskId, taskComment: this.editItem.taskComment, taskTpl: this.taskTpl} + actionData: {type, id: this.id, taskId: this.taskId, taskComment: this.editItem.taskComment, taskTpl: this.taskTpl} } } }) diff --git a/app/view/page/taskICreateManagement.html b/app/view/page/taskICreateManagement.html index 38d06a0..e3a1213 100644 --- a/app/view/page/taskICreateManagement.html +++ b/app/view/page/taskICreateManagement.html @@ -116,7 +116,7 @@ new Vue({ }, toTaskHistory({item}) { - location.href = `/${window.appInfo.appId}/page/taskHistoryManagement?id=${item.id}`; + location.href = `/${window.appInfo.appId}/page/taskHistoryManagement?id=${item.id}&taskId=${item.taskId}`; } } })