Commit 1ebde5eb authored by liwenhong's avatar liwenhong

fix: 团长申请

parent 8a37c6bc
......@@ -37,7 +37,7 @@
<el-table-column label="操作" align="center" fixed="right" width="200">
<!-- <el-button type="primary" size="small">审核</el-button> -->
<template #default="scope">
<el-button type="primary" size="mini" @click="apply(scope.row)">审核</el-button>
<el-button type="primary" size="mini" @click="apply(scope.row)" v-if="scope.row.audit_status!=1">审核</el-button>
<el-button type="text" size="small" v-if="scope.row.audit_status==1">通过</el-button>
<el-button type="primary" size="small" @click="addPoint(scope.row.colonel_apply_id)">添加自提点</el-button>
<!-- v-if="scope.row.take_place_status==1" -->
......@@ -208,14 +208,19 @@ export default {
// this.applyPopTitle = `您确认通过(${name})的团长申请吗`
this.$confirm(`您确认${item.audit_status ==2?'通过': '驳回'}(${item.contact_name})的团长申请吗`, '团长审核', {
confirmButtonText: '确定',
cancelButtonText: '取消',
cancelButtonText: '拒绝',
center: true
}).then(async () => {
let res = await colonelAudit({colonel_apply_id: item.colonel_apply_id, audit_status: item.audit_status ==1?2:1})
let res = await colonelAudit({colonel_apply_id: item.colonel_apply_id, audit_status: 1})
await this.getColoneApplyList();
if (res.code !== 0) return this.$message.error(res.reason);
else this.$message.success('操作成功');
})
}).catch(async () => {
let res = await colonelAudit({colonel_apply_id: item.colonel_apply_id, audit_status: 2})
await this.getColoneApplyList();
if (res.code !== 0) return this.$message.error(res.reason);
else this.$message.success('操作成功');
});
},
async addPoint(id) {
let res = await colonelApplyPoint({colonel_apply_id: id});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment