提交
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user