This commit is contained in:
2024-09-01 10:17:10 +08:00
parent 7dfb86b033
commit 353367ea0b
2 changed files with 39 additions and 1 deletions
@@ -122,6 +122,10 @@ layout("/layouts/platform.html"){
v-if="[1020].includes(row.state_id)">
审核
</el-dropdown-item>
<el-dropdown-item :command="{type:'revoke',data:row}"
v-if="[1030].includes(row.state_id)">
撤回
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
@@ -287,6 +291,26 @@ layout("/layouts/platform.html"){
this.openView(data)
} else if (type == 'primary') {
this.openReview(data)
} else if (type == 'revoke') {
this.doRevoke(data)
}
},
async doRevoke(row) {
const confirm = await this.$confirm('确定要撤回吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
if (confirm === "confirm") {
const resp = await $.post("/platform/jf/activity_bx/accounting/doRevoke", {id: row.id})
if (resp.code === 0) {
this.doSearch()
this.$notify({
title: '成功',
message: resp.msg,
type: 'success'
});
}
}
},
blur() {