提交 1c84f454 编写于 作者: yi.li's avatar yi.li

新建直播和小圈上下线

上级 f0fd22d3
......@@ -754,6 +754,9 @@
this.$message.success("操作成功");
this.$router.push({
path: '/live-manage',
query: {
id: this.circleId
}
})
}
else {
......
......@@ -49,12 +49,14 @@
</el-table-column>
<el-table-column label="操作" min-width="370" align="center">
<template slot-scope="scope">
<el-button @click="publishRange(scope.row)" v-if="scope.row.status == 2" type="text" size="small">上线</el-button>
<el-button @click="unPublishRange(scope.row)" v-if="scope.row.status == 1" type="text" size="small">下线</el-button>
<div v-if="scope.row.status != 50">
<el-button @click="publishRange(scope.row)" v-if="scope.row.status != 30" type="text" size="small">上线</el-button>
<el-button @click="unPublishRange(scope.row)" v-if="scope.row.status == 30" type="text" size="small">下线</el-button>
<el-button @click="liveManage(scope.row)" type="text" size="small">直播管理</el-button>
<el-button @click="roleManage(scope.row)" type="text" size="small">成员管理</el-button>
<el-button @click="editRange(scope.row)" type="text" size="small">编辑</el-button>
<el-button @click="deleteRange(scope.row)" type="text" size="small" v-if="showAllFlag">解散圈子</el-button>
</div>
</template>
</el-table-column>
</el-table>
......@@ -211,7 +213,7 @@ export default {
customClass: 'range-make-box',
}).then(() => {
// confirm
this.updateStatus(row.id, "3");
this.updateStatus(row.id, "30");
this.$message.success("上线成功");
}).catch(() => {
// cancel
......@@ -226,7 +228,7 @@ export default {
type: 'warning',
customClass: 'range-make-box',
}).then(() => {
this.updateStatus(row.id, "1");
this.updateStatus(row.id, "40");
// confirm
}).catch(() => {
// cancel
......@@ -239,17 +241,17 @@ export default {
updateRangeStatus(params).then((res) => {
closeLoading(this);
if(res.code == "000000") {
if(status == "1"){
if(status == "40"){
this.$message.success("下线成功");
}
else if(status == "2") {
else if(status == "30") {
this.$message.success("上线成功");
}
} else {
if(status == "1"){
if(status == "40"){
this.$message.success("下线失败,请重试");
}
else if(status == "2") {
else if(status == "30") {
this.$message.success("上线失败,请重试");
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册