diff --git a/app/view/page/taskManagement.html b/app/view/page/taskManagement.html index 7e11504..9662b95 100644 --- a/app/view/page/taskManagement.html +++ b/app/view/page/taskManagement.html @@ -63,10 +63,14 @@ mdi-text-box-outline 查看 - + mdi-arrow-u-left-top 撤回 + + mdi-wrench-cog-outline + 修正 + @@ -176,6 +180,9 @@ v => !!v || 'This is required', ], }, + constantObj: { + userGroupRoleList: [] + }, searchInput: null, isTableLoading: true, tableData: [], @@ -209,6 +216,7 @@ }, mounted() { this.doUiAction('getTableData'); + this.constantObj.userGroupRoleList = window.userInfo.userGroupRoleList.map(item=>item.groupId) }, methods: { async doUiAction(uiActionId, uiActionData) { @@ -225,6 +233,11 @@ await this.doRevokeTask(uiActionData); await this.getTableData(); break; + case 'amendTask': + await this.confirmAmendItemDialog(); + await this.doAmendTask(uiActionData); + await this.getTableData(); + break; default: console.error("[doUiAction] uiActionId not find", { uiActionId }); break; @@ -282,7 +295,7 @@ data: { appData: { pageId: 'taskManagement', - actionId: 'updateItem', + actionId: 'revokeItem', actionData: { taskStatus: 'revoke', taskLineType: null, @@ -297,6 +310,26 @@ await window.vtoast.success("修改数据成功"); }, // ---------- 撤回 uiAction >>>>>>>>>>>> -------- + // ---------- 修正 uiAction >>>>>>>>>>>> -------- + async confirmAmendItemDialog() { + if (await window.confirmDialog({title: "修正", content: "确定修正吗?"}) === false) { + throw new Error("[confirmDeleteItemDialog] 否"); + } + }, + async doAmendTask(item) { + await window.vtoast.loading("修改数据"); + await window.jianghuAxios({ + data: { + appData: { + pageId: 'taskManagement', + actionId: 'amendItem', + actionData: item + } + } + }) + await window.vtoast.success("修改数据成功"); + }, + // ---------- 修正 uiAction >>>>>>>>>>>> -------- } })