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

直播管理复制链接后,增加toast提示

上级 99f98bd7
...@@ -59,7 +59,12 @@ ...@@ -59,7 +59,12 @@
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <el-button @click="reviewLive(scope.row)" type="text" size="small">设置回放</el-button> --> <!-- <el-button @click="reviewLive(scope.row)" type="text" size="small">设置回放</el-button> -->
<el-button @click="liveLink(scope.row)" type="text" size="small">直播链接</el-button> <el-button @click="liveLink(scope.row)" type="text" size="small">直播链接</el-button>
<el-button @click="countLive(scope.row)" type="text" size="small" v-if="scope.row.liveStatus==4">数据统计</el-button> <el-button
@click="countLive(scope.row)"
type="text"
size="small"
v-if="scope.row.liveStatus==4"
>数据统计</el-button>
<el-button @click="editLive(scope.row)" type="text" size="small">编辑</el-button> <el-button @click="editLive(scope.row)" type="text" size="small">编辑</el-button>
<!-- <el-button @click="deleteLive(scope.row)" type="text" size="small">删除</el-button> --> <!-- <el-button @click="deleteLive(scope.row)" type="text" size="small">删除</el-button> -->
</template> </template>
...@@ -204,8 +209,8 @@ export default { ...@@ -204,8 +209,8 @@ export default {
// this.$router.push({ // this.$router.push({
// path: '/role-manage', // path: '/role-manage',
// }) // })
this.searchForm.liveName = "" this.searchForm.liveName = "";
this.searchForm.liveStatus = "" this.searchForm.liveStatus = "";
}, },
//新建直播 //新建直播
createLive() { createLive() {
...@@ -221,13 +226,18 @@ export default { ...@@ -221,13 +226,18 @@ export default {
this.dialogLivelinkVisible = true; this.dialogLivelinkVisible = true;
this.liveScope = row.liveScope; this.liveScope = row.liveScope;
this.liveStatus = row.liveStatus; this.liveStatus = row.liveStatus;
console.log("liveLink() : liveScope = " + this.liveScope + ", liveStatus = " + this.liveStatus) console.log(
"liveLink() : liveScope = " +
this.liveScope +
", liveStatus = " +
this.liveStatus
);
vm.GET("rtc/liveAdmin/url/" + row.rtcId, "").then(res => { vm.GET("rtc/liveAdmin/url/" + row.rtcId, "").then(res => {
if (res.code == "000000") { if (res.code == "000000") {
this.lecturerUrl = res.data.lecturerUrl this.lecturerUrl = res.data.lecturerUrl;
this.guestUrl = res.data.guestUrl this.guestUrl = res.data.guestUrl;
this.audienceUrl = res.data.audienceUrl this.audienceUrl = res.data.audienceUrl;
this.dialogLivelinkVisible = true; this.dialogLivelinkVisible = true;
} else { } else {
// //
...@@ -370,6 +380,11 @@ export default { ...@@ -370,6 +380,11 @@ export default {
} }
txt.select(); //选择对象 txt.select(); //选择对象
document.execCommand("copy"); document.execCommand("copy");
vm.$message({
type: "success",
message: "分享链接已复制,快分享给好友吧"
});
}, },
jumpUrl(type) { jumpUrl(type) {
var url; var url;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册