修正
This commit is contained in:
1 parent
3c3dcfb478
commit
b2df7f1fb6
1 file changed
+35
-2
@@ -63,10 +63,14 @@
|
||||
<v-icon size="16" class="success--text">mdi-text-box-outline</v-icon>
|
||||
查看
|
||||
</span>
|
||||
<span v-if="item.taskStatus == '审核中'" role="button" class="error--text jh-font-size-3 ml-2" @click="doUiAction('revokeTask', item)">
|
||||
<span v-if="item.taskStatus == '审核中'" role="button" class="error--text jh-font-size-3 ml-4" @click="doUiAction('revokeTask', item)">
|
||||
<v-icon size="16" class="error--text">mdi-arrow-u-left-top</v-icon>
|
||||
撤回
|
||||
</span>
|
||||
<span v-if="item.taskStatus == '审核中'" role="button" class="warning--text jh-font-size-3 ml-4" @click="doUiAction('amendTask', item)">
|
||||
<v-icon size="16" class="warning--text">mdi-wrench-cog-outline</v-icon>
|
||||
修正
|
||||
</span>
|
||||
</div>
|
||||
</template>
|
||||
<!--没有数据-->
|
||||
@@ -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 >>>>>>>>>>>> --------
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in new issue
Block a user