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

增加直播删除

上级 e6562cca
...@@ -337,7 +337,7 @@ export default { ...@@ -337,7 +337,7 @@ export default {
tableData: [ tableData: [
// { // {
// liveName: "浙江医学大会第二场", // liveName: "浙江医学大会第二场",
// liveScope: 1, //直播范围 1-非公开 2-公开 // scope: 1, //直播范围 1-非公开 2-公开
// liveStatus: 1, //直播状态 1-未开始 2-直播中 3-暂停中 4-已结束 5-回放中目前只能用到1,2,4 // liveStatus: 1, //直播状态 1-未开始 2-直播中 3-暂停中 4-已结束 5-回放中目前只能用到1,2,4
// createTime: "", // createTime: "",
// startTime: "", // startTime: "",
...@@ -352,7 +352,7 @@ export default { ...@@ -352,7 +352,7 @@ export default {
signNum: 0 signNum: 0
} }
], ],
liveScope: 1, scope: 1,
liveStatus: 1, liveStatus: 1,
lecturerUrl: "", lecturerUrl: "",
...@@ -454,12 +454,12 @@ export default { ...@@ -454,12 +454,12 @@ export default {
//弹出直播链接弹窗 //弹出直播链接弹窗
liveLink(row) { liveLink(row) {
this.dialogLivelinkVisible = true; this.dialogLivelinkVisible = true;
this.liveScope = row.scope; this.scope = row.scope;
this.liveStatus = row.liveStatus; this.liveStatus = row.liveStatus;
this.streamType = row.streamType; this.streamType = row.streamType;
console.log( console.log(
"liveLink() : liveScope = " + "liveLink() : scope = " +
this.liveScope + this.scope +
", liveStatus = " + ", liveStatus = " +
this.liveStatus this.liveStatus
); );
...@@ -985,11 +985,17 @@ export default { ...@@ -985,11 +985,17 @@ export default {
//删除直播 //删除直播
delLive(row) { delLive(row) {
if(row.st) // 直播中
if(row.liveStatus == 2){
vm.$message({
type: "warning",
message: "直播中无法删除,请直播结束后重试"
});
}
// 1:直播预告;4:直播结束后,可以删除
else if(row.liveStatus == 1 || row.liveStatus == 4){
this.$confirm(`确定删除“${row.liveName}”吗?`, "", { this.$confirm(`确定删除“${row.name}”吗?`, "", {
confirmButtonText: "删除", confirmButtonText: "删除",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
...@@ -1000,7 +1006,7 @@ export default { ...@@ -1000,7 +1006,7 @@ export default {
let req = { let req = {
rtcId: row.id rtcId: row.id
}; };
vm.DELETE("rtc/liveAdmin", req).then(res => { vm.DELETE("rtc/liveAdmin/" + row.id, {}).then(res => {
if (res.code == "000000") { if (res.code == "000000") {
vm.$message({ vm.$message({
type: "success", type: "success",
...@@ -1009,14 +1015,14 @@ export default { ...@@ -1009,14 +1015,14 @@ export default {
this.getLiveList("", ""); this.getLiveList("", "");
} else { } else {
vm.$message({ vm.$message({
type: "success", type: "warning",
message: "删除失败" message: res.message
}); });
} }
}); });
}) })
.catch(() => {}); .catch(() => {});
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册