提交 0f53df6a 编写于 作者: bo.dang's avatar bo.dang

审核列表

上级 40404e4d
...@@ -483,6 +483,17 @@ const vueFilter = { ...@@ -483,6 +483,17 @@ const vueFilter = {
return '-' return '-'
} }
}, },
circleApplyStatus: (value) => {
if(value == 0){
return '拒绝'
}
else if(value == 1){
return '待审核'
}
else if(value == 2){
return '通过'
}
},
// 圈子状态 0:暂存 10:待发布(已保存) 20:已发布(已提交待审核、审核被拒绝) 30:已上架(审核通过)40:下架 50:解散 // 圈子状态 0:暂存 10:待发布(已保存) 20:已发布(已提交待审核、审核被拒绝) 30:已上架(审核通过)40:下架 50:解散
rangeStatus: (value) => { rangeStatus: (value) => {
if (value == 0) { if (value == 0) {
......
...@@ -642,6 +642,7 @@ ...@@ -642,6 +642,7 @@
pullFlag: false, // 是否显示拉流地址 pullFlag: false, // 是否显示拉流地址
dialogVisible: false, dialogVisible: false,
uploadProgress1: 0, uploadProgress1: 0,
searchList: [],
formData: { formData: {
circleId: "",// 圈子ID circleId: "",// 圈子ID
name: '',// 直播名称 name: '',// 直播名称
...@@ -746,8 +747,7 @@ ...@@ -746,8 +747,7 @@
// 一天是24*60*60*1000 = 86400000 = 8.64e7 // 一天是24*60*60*1000 = 86400000 = 8.64e7
// console.log('this.maxDate',this.maxDate) // console.log('this.maxDate',this.maxDate)
return time.getTime() < Date.now() - 8.64e7 return time.getTime() < Date.now() - 8.64e7
}, }
searchList: null
}, },
rules: { rules: {
name: [ name: [
......
...@@ -49,8 +49,8 @@ ...@@ -49,8 +49,8 @@
<el-table-column label="操作" min-width="370" align="center"> <el-table-column label="操作" min-width="370" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.status != 50"> <div v-if="scope.row.status != 50">
<el-button @click="approve(scope.row)" type="text" size="small" v-if="showAllFlag && scope.row.status != 0">通过</el-button> <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="reject(scope.row)" type="text" size="small" v-if="scope.row.status != 0">拒绝</el-button> <el-button @click="reject(scope.row)" type="text" size="small" v-if="scope.row.status != 0 && scope.row.status != 2">拒绝</el-button>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,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 { getRangeList,updateRangeStatus, getCircleSettingList, saveCircleSetting, applyList, applyUpdate} from "../../utils/yqrange/yqrangeApi"; import { applyList, applyUpdate} from "../../utils/yqrange/yqrangeApi";
export default { export default {
components: { components: {
BreadCrumb BreadCrumb
...@@ -198,71 +198,66 @@ ...@@ -198,71 +198,66 @@
resetForm() { resetForm() {
this.searchForm.name = ""; this.searchForm.name = "";
this.searchForm.circleName = ""; this.searchForm.circleName = "";
this.searchForm.status = ""; this.searchForm.status = -1;
console.log('重置') console.log('重置')
this.search(); this.search();
}, },
// 更新圈子状态(上线,下线) // 更新圈子状态(上线,下线)
updateStatus(id, status){ updateStatus(params){
let params = {"doctorId": id, circleId: this.circleId, "status": status}; applyUpdate(params).then((res) => {
updateRangeStatus(params).then((res) => {
closeLoading(this); closeLoading(this);
if(res.code == "000000") { if(res.code == "000000") {
if(status == 2){ this.$message.success("成功");
this.$message.success("成功通过");
} else if(status == 0) {
this.$message.success("拒绝成功");
}
this.searchList(); this.searchList();
} else { } else {
if(status == 2){ this.$message.success("失败");
this.$message.success("通过失败");
} else if(status == 0) {
this.$message.success("拒绝失败");
}
} }
}).catch((error) => { }).catch((error) => {
// this.$message({ // this.$message({
// message: error, // message: error,
// type: 'error' // type: 'error'
// }); // });
if(status == "40"){ this.$message.error("请重试");
this.$message.error("下线失败,请重试");
} else if(status == "30") {
this.$message.error("上线失败,请重试");
}else if(status == "50") {
this.$message.error("解散失败,请重试");
}
}) })
}, },
rangeManage(row) { // 0:拒绝,1:待审核;2.通过
this.$router.push({ approve(row){
path: '/range-manage',
query: { let params = {
id: row.id, applyList: [{
name: row.name, "circleId": row.circleId,
activeName: 'first', "doctorId": row.doctorId,
roleType: row.roleId "status": 2
} }]
}) };
this.updateStatus(params);
}, },
//拒绝 //拒绝
reject(row) { reject(row) {
this.$confirm(``, `确定拒绝“${row.name}”吗?`, {
let params = {
applyList: [{
"circleId": row.circleId,
"doctorId": row.doctorId,
"status": 0
}]
};
this.$confirm(`确定拒绝吗?`, `“${row.name}”申请加入"${row.circleName}"圈子`, {
confirmButtonText: '拒绝', confirmButtonText: '拒绝',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning', type: 'warning',
customClass: 'range-make-box', customClass: 'range-make-box',
}).then(() => { }).then(() => {
this.updateStatus(row.doctorId, 0); this.updateStatus(params);
// confirm // confirm
}).catch(() => { }).catch(() => {
// cancel // cancel
......
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
</el-dialog> </el-dialog>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="审核列表" name="second"> <el-tab-pane label="审核列表" name="second" v-if="showApplyFlag">
<range-apply></range-apply> <range-apply></range-apply>
</el-tab-pane> </el-tab-pane>
...@@ -148,6 +148,7 @@ export default { ...@@ -148,6 +148,7 @@ export default {
activeName: 'first', activeName: 'first',
showAllFlag: false, showAllFlag: false,
showNewFlag: false, showNewFlag: false,
showApplyFlag: true,
searchForm: { searchForm: {
name: '', name: '',
createdTime: '', createdTime: '',
...@@ -193,7 +194,6 @@ export default { ...@@ -193,7 +194,6 @@ export default {
setTimeout(() => { setTimeout(() => {
this.getUserAuth(); this.getUserAuth();
},1500) },1500)
} }
}, },
...@@ -203,6 +203,13 @@ export default { ...@@ -203,6 +203,13 @@ export default {
let highMainManager = localStorage.getItem('highMainManager'); let highMainManager = localStorage.getItem('highMainManager');
let mainManager = localStorage.getItem('mainManager'); let mainManager = localStorage.getItem('mainManager');
let manager = localStorage.getItem('manager'); let manager = localStorage.getItem('manager');
let ordinary = localStorage.getItem('ordinary');
if(ordinary == "1"){
this.showApplyFlag = false;
}
else {
this.showApplyFlag = true;
}
if(highMainManager == "1" || mainManager == "1"){ if(highMainManager == "1" || mainManager == "1"){
this.showNewFlag = true; this.showNewFlag = true;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册