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

增加直播删除

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