审核页面ID字段使用taskId、service方法调用优化

This commit is contained in:
Jam committed 2022-11-22 14:03:46 +08:00
1 parent 73cd3e4e2d
commit ab5ac4b4bc
3 files changed
+8 -5

No files matched your search

+1
View File
@@ -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) {
+6 -4
View File
@@ -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: [],
@@ -179,7 +180,8 @@ new Vue({
watch: {},
async created() {
const searchParams = new URLSearchParams(location.search.substring(1));
this.taskId = searchParams.get('id');
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}
}
}
})
+1 -1
View File
@@ -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}`;
}
}
})