diff --git a/app/view/component/createTaskDrawer.html b/app/view/component/createTaskDrawer.html index 4a15b25..c367b0d 100644 --- a/app/view/component/createTaskDrawer.html +++ b/app/view/component/createTaskDrawer.html @@ -251,7 +251,7 @@ Vue.component("create-task-drawer", { const {rows} = (await window.jianghuAxios({ data: { appData: { - pageId: 'createTaskDrawer', + pageId: 'taskApply', actionId: 'selectUserList', actionData: {}, where: {}, @@ -287,7 +287,7 @@ Vue.component("create-task-drawer", { const {rows} = (await window.jianghuAxios({ data: { appData: { - pageId: 'createTaskDrawer', + pageId: 'taskApply', actionId: 'selectGroupList', actionData: {}, where: {}, diff --git a/app/view/component/workflowBasicInfo.html b/app/view/component/workflowBasicInfo.html index 0a6ee37..f63f44d 100644 --- a/app/view/component/workflowBasicInfo.html +++ b/app/view/component/workflowBasicInfo.html @@ -45,9 +45,9 @@
-
任务列表 +
我的申请 mdi-help-circle-outline帮助 @@ -177,11 +177,12 @@ isTableLoading: true, tableData: [], headers: [ - { text: "审批项", value: "taskTitle", width: 350 }, - { text: "审核状态", value: "taskStatus" }, - { text: "操作者", value: "operationByUser", width: 120 }, - { text: "操作时间", value: "operationAt", width: 250 }, - {text: '操作', value: 'action', align: 'center', sortable: false, width: 80, class: 'fixed', cellClass: 'fixed'}, + { text: "申请ID", value: "taskId", width: 100 }, + { text: "申请名称", value: "taskTitle", width: 350 }, + { text: "申请状态", value: "taskStatus" }, + { text: "申请时间", value: "taskCreateAt", width: 300 }, + { text: "结束时间", value: "taskFinishAt", width: 300 }, + { text: '操作', value: 'action', align: 'center', sortable: false, width: 80, class: 'fixed', cellClass: 'fixed' }, ], isViewDrawerShown: false, @@ -220,9 +221,10 @@ const result = await window.jianghuAxios({ data: { appData: { - pageId: 'taskHistory', + pageId: 'taskManagement', actionId: 'selectItemList', actionData: {}, + where:{taskInitUser: this.userId}, orderBy: [{ column: 'operationAt', order: 'desc' }] } } @@ -235,7 +237,8 @@ }; rows.forEach(row => { row.taskFormInput = JSON.parse(row.taskFormInput); - row.operationAt = dayjs(row.operationAt).format('YYYY-MM-DD HH:mm:ss'); + row.taskCreateAt = row.taskCreateAt && dayjs(row.taskCreateAt).format('YYYY-MM-DD HH:mm:ss'); + row.taskFinishAt = row.taskFinishAt && dayjs(row.taskFinishAt).format('YYYY-MM-DD HH:mm:ss'); row.taskStatus = statusMap[row.taskStatus]; }); this.tableData = rows;