提交 cbcf5e8a 编写于 作者: alex.zhang's avatar alex.zhang

专区-活动管理-报名审核列表

上级 8033ed7e
...@@ -294,3 +294,23 @@ export const postCircleTree = (params) => { ...@@ -294,3 +294,23 @@ export const postCircleTree = (params) => {
description: '保存区域', description: '保存区域',
}) })
}; };
export const auditList = (params) => {
return fetch({
headers,
url: getBaseUrl(`circle/sso/activity/doctor/audit/list?doctorName=${params.doctorName}&titleManager=${params.titleManager}&auditStatus=${params.auditStatus}&pageNo=${params.pageNo}&pageSize=${params.pageSize}`),
method: 'get',
data: params,
description: '医生审核列表',
})
};
export const auditOperation = (params) => {
return fetch({
headers,
url: getBaseUrl('circle/sso/activity/doctor/audit'),
method: 'post',
data: params,
description: '医生审核',
})
};
\ No newline at end of file
...@@ -5,14 +5,14 @@ ...@@ -5,14 +5,14 @@
<el-form ref="searchForm" :model="searchForm" label-width="75px" label-suffix=":" :inline="true"> <el-form ref="searchForm" :model="searchForm" label-width="75px" label-suffix=":" :inline="true">
<el-row :gutter="30" type="flex" style="margin-top: 10px"> <el-row :gutter="30" type="flex" style="margin-top: 10px">
<el-col :span="8"> <el-col :span="8">
<el-input v-model="searchForm.name" size="small" placeholder="请输入申请人姓名"></el-input> <el-input v-model="searchForm.doctorName" size="small" placeholder="请输入报名人姓名"></el-input>
</el-col> </el-col>
<el-col :span="9"> <el-col :span="9">
<el-input v-model="searchForm.circleName" size="small" placeholder="请输入圈子名称"></el-input> <el-input v-model="searchForm.titleManager" size="small" placeholder="请输入活动后台标题"></el-input>
</el-col> </el-col>
<el-col :span="9"> <el-col :span="9">
<el-select <el-select
v-model="searchForm.status" v-model="searchForm.auditStatus"
placeholder="全部审核状态" placeholder="全部审核状态"
size="small"> size="small">
<el-option <el-option
...@@ -32,24 +32,24 @@ ...@@ -32,24 +32,24 @@
</el-row> </el-row>
</el-form> </el-form>
<el-table :data="tableData" class="item-table" style="width: 100%;margin-top: 10px;"> <el-table :data="tableData" class="item-table" style="width: 100%;margin-top: 10px;">
<el-table-column prop="name" label="申请人" min-width="100" align="center"></el-table-column> <el-table-column prop="doctorName" label="报名人" min-width="100" align="center"></el-table-column>
<el-table-column prop="circleName" label="申请加入圈子" min-width="100" align="center"></el-table-column> <el-table-column prop="activityName" label="报名参加活动" min-width="150" align="center"></el-table-column>
<el-table-column prop="department" label="所属科室" min-width="100" align="center"></el-table-column> <el-table-column prop="departmentName" label="所属科室" min-width="100" align="center"></el-table-column>
<el-table-column prop="hospital" label="所属医院" min-width="100" align="center"></el-table-column> <el-table-column prop="hospitalName" label="所属医院" min-width="100" align="center"></el-table-column>
<el-table-column prop="provinceName" label="所属省份" min-width="100" align="center"></el-table-column> <el-table-column prop="provinceName" label="所属省份" min-width="100" align="center"></el-table-column>
<el-table-column prop="cityName" label="所属城市" min-width="100" align="center"></el-table-column> <el-table-column prop="cityName" label="所属城市" min-width="100" align="center"></el-table-column>
<el-table-column prop="countyName" label="所属区县" min-width="100" align="center"></el-table-column> <el-table-column prop="countyName" label="所属区县" min-width="100" align="center"></el-table-column>
<el-table-column prop="townName" label="所属街道" min-width="100" align="center"></el-table-column> <el-table-column prop="townName" label="所属街道" min-width="100" align="center"></el-table-column>
<el-table-column prop="status" label="审核状态" min-width="100" align="center"> <el-table-column prop="auditStatus" label="审核状态" min-width="100" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.status | circleApplyStatus }}</span> <span>{{ scope.row.auditStatus | circleApplyStatus }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" min-width="370" align="center"> <el-table-column label="操作" min-width="200" align="center">
<template slot-scope="scope"> <template slot-scope="scope"> <!-- 1待审核 2已通过 3已拒绝 -->
<div v-if="scope.row.status != 50"> <div>
<el-button @click="approve(scope.row)" type="text" size="small" v-if="scope.row.status != 0 && scope.row.status != 2">通过</el-button> <el-button @click="approve(scope.row)" type="text" size="small" v-if="scope.row.auditStatus == 1">通过</el-button>
<el-button @click="reject(scope.row)" type="text" size="small" v-if="scope.row.status != 0 && scope.row.status != 2">拒绝</el-button> <el-button @click="reject(scope.row)" type="text" size="small" v-if="scope.row.auditStatus == 1">拒绝</el-button>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<script> <script>
import { openLoading, closeLoading } from "../../utils/utils"; import { openLoading, closeLoading } from "../../utils/utils";
import BreadCrumb from "@/components/breadcrumb.vue"; import BreadCrumb from "@/components/breadcrumb.vue";
import { applyList, applyUpdate} from "../../utils/yqrange/yqrangeApi"; import { auditList, auditOperation, applyList, applyUpdate} from "../../utils/yqrange/yqrangeApi";
export default { export default {
components: { components: {
BreadCrumb BreadCrumb
...@@ -85,10 +85,10 @@ ...@@ -85,10 +85,10 @@
showAllFlag: false, showAllFlag: false,
showNewFlag: false, showNewFlag: false,
searchForm: { searchForm: {
name: '', doctorName: '',
circleName: '', titleManager: '',
// endTime: '', // endTime: '',
status: -1, auditStatus: 1,
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
}, },
...@@ -100,14 +100,6 @@ ...@@ -100,14 +100,6 @@
settingData: [] settingData: []
}, },
statusList: [ statusList: [
{
value: -1,
label: "全部状态"
},
{
value: 0,
label: "已拒绝"
},
{ {
value: 1, value: 1,
label: "待审核" label: "待审核"
...@@ -116,12 +108,16 @@ ...@@ -116,12 +108,16 @@
value: 2, value: 2,
label: "已通过" label: "已通过"
}, },
{
value: 3,
label: "已拒绝"
},
], ],
dialogVisible: false dialogVisible: false
} }
}, },
created() { created() {
this.initPrivilege(); // this.initPrivilege();
this.search(1); this.search(1);
}, },
methods: { methods: {
...@@ -178,10 +174,11 @@ ...@@ -178,10 +174,11 @@
openLoading(this); openLoading(this);
} }
let params = this.searchForm; let params = this.searchForm;
applyList(params).then((res) => { console.log("searchList() : params = " + JSON.stringify(params))
auditList(params).then((res) => {
closeLoading(this); closeLoading(this);
if(res.code == "000000") { if(res.code == "000000") {
this.tableData = res.data.list; this.tableData = res.data.activityDoctorAuditModelList;
this.totalRows = res.data.total; this.totalRows = res.data.total;
} else { } else {
this.tableData = []; this.tableData = [];
...@@ -196,9 +193,9 @@ ...@@ -196,9 +193,9 @@
}, },
resetForm() { resetForm() {
this.searchForm.name = ""; this.searchForm.doctorName = "";
this.searchForm.circleName = ""; this.searchForm.titleManager = "";
this.searchForm.status = -1; this.searchForm.auditStatus = 1;
console.log('重置') console.log('重置')
this.search(); this.search();
}, },
...@@ -206,7 +203,8 @@ ...@@ -206,7 +203,8 @@
// 更新圈子状态(上线,下线) // 更新圈子状态(上线,下线)
updateStatus(params){ updateStatus(params){
applyUpdate(params).then((res) => { console.log("updateStatus() : params = " + JSON.stringify(params));
auditOperation(params).then((res) => {
closeLoading(this); closeLoading(this);
if(res.code == "000000") { if(res.code == "000000") {
this.$message.success("成功"); this.$message.success("成功");
...@@ -220,21 +218,14 @@ ...@@ -220,21 +218,14 @@
// type: 'error' // type: 'error'
// }); // });
this.$message.error("请重试"); this.$message.error("请重试");
}) })
}, },
// 0:拒绝,1:待审核;2.通过 // 1:待审核,2.通过,3:拒绝
approve(row){ approve(row){
let params = { let params = {
applyList: [{ "accept": true,
"circleId": row.circleId, "auditRecordId": row.auditRecordId,
"doctorId": row.doctorId,
"status": 2
}]
}; };
this.updateStatus(params); this.updateStatus(params);
...@@ -242,23 +233,18 @@ ...@@ -242,23 +233,18 @@
//拒绝 //拒绝
reject(row) { reject(row) {
let params = { let params = {
applyList: [{ "accept": true,
"circleId": row.circleId, "auditRecordId": row.auditRecordId,
"doctorId": row.doctorId,
"status": 0
}]
}; };
this.$confirm(`拒绝后"${row.name}"将无法访问"${row.circleName}"`, `确认拒绝`, { this.$confirm(`拒绝后"${row.doctorName}"将无法访问"${row.activityName}"`, `确认拒绝`, {
confirmButtonText: '拒绝', confirmButtonText: '拒绝',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning', type: 'warning',
customClass: 'range-make-box', customClass: 'range-make-box',
}).then(() => { }).then(() => {
this.updateStatus(params);
// confirm // confirm
this.updateStatus(params);
}).catch(() => { }).catch(() => {
// cancel // cancel
}); });
...@@ -279,8 +265,6 @@ ...@@ -279,8 +265,6 @@
this.searchForm.pageNo = val; this.searchForm.pageNo = val;
this.searchList(); this.searchList();
}, },
}, },
} }
</script> </script>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册