审核页面ID字段使用taskId、service方法调用优化
This commit is contained in:
1 parent
73cd3e4e2d
commit
ab5ac4b4bc
3 files changed
+8
-5
No files matched your search
@@ -87,6 +87,7 @@ class TaskService extends Service {
|
|||||||
}
|
}
|
||||||
const [id] = await jianghuKnex(tableEnum.task, this.ctx).insert(startData);
|
const [id] = await jianghuKnex(tableEnum.task, this.ctx).insert(startData);
|
||||||
await this.buildNext({ type: '同意', id, taskTpl: {input: workflowFormData}, taskComment: '' })
|
await this.buildNext({ type: '同意', id, taskTpl: {input: workflowFormData}, taskComment: '' })
|
||||||
|
return startData;
|
||||||
}
|
}
|
||||||
|
|
||||||
async getGroupUserList(groupId) {
|
async getGroupUserList(groupId) {
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ new Vue({
|
|||||||
headers: [
|
headers: [
|
||||||
{text: "节点", value: "taskExplain", width: 120},
|
{text: "节点", value: "taskExplain", width: 120},
|
||||||
{text: "流转", value: "taskHandleDesc", width: 120},
|
{text: "流转", value: "taskHandleDesc", width: 120},
|
||||||
{text: "课程名称", value: "operationByUser", width: 120},
|
{text: "操作人", value: "operationByUser", width: 120},
|
||||||
{text: "备注", value: "taskComment", width: 120},
|
{text: "备注", value: "taskComment", width: 120},
|
||||||
{text: "处理时长/秒", value: "taskCostDuration", width: 120},
|
{text: "处理时长/秒", value: "taskCostDuration", width: 120},
|
||||||
{text: "表单明细", value: "action", width: 120},
|
{text: "表单明细", value: "action", width: 120},
|
||||||
@@ -167,6 +167,7 @@ new Vue({
|
|||||||
|
|
||||||
editItem: {},
|
editItem: {},
|
||||||
dialogSaveInfoAction: '',
|
dialogSaveInfoAction: '',
|
||||||
|
id: '',
|
||||||
taskId: '',
|
taskId: '',
|
||||||
isAccess: [],
|
isAccess: [],
|
||||||
nextLineList: [],
|
nextLineList: [],
|
||||||
@@ -179,7 +180,8 @@ new Vue({
|
|||||||
watch: {},
|
watch: {},
|
||||||
async created() {
|
async created() {
|
||||||
const searchParams = new URLSearchParams(location.search.substring(1));
|
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()
|
await this.getTaskHistoryList()
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -221,7 +223,7 @@ new Vue({
|
|||||||
appData: {
|
appData: {
|
||||||
pageId: 'taskHistoryManagement',
|
pageId: 'taskHistoryManagement',
|
||||||
actionId: 'getTaskHistoryInfo',
|
actionId: 'getTaskHistoryInfo',
|
||||||
actionData: {id: this.taskId},
|
actionData: {id: this.id},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -248,7 +250,7 @@ new Vue({
|
|||||||
appData: {
|
appData: {
|
||||||
pageId: 'taskHistoryManagement',
|
pageId: 'taskHistoryManagement',
|
||||||
actionId: 'submitNode',
|
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}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ new Vue({
|
|||||||
},
|
},
|
||||||
|
|
||||||
toTaskHistory({item}) {
|
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}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in new issue
Block a user