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

修改新建直播和编辑直播

上级 a025e7fe
...@@ -280,7 +280,7 @@ ...@@ -280,7 +280,7 @@
//页面展示位置 //页面展示位置
isCollectShow: false, isCollectShow: false,
formData: { formData: {
circleId: "1",// 圈子ID circleId: "",// 圈子ID
name: '',// 直播名称 name: '',// 直播名称
scope: "1",// 直播范围 1-非公开 2-公开 scope: "1",// 直播范围 1-非公开 2-公开
infoCollect: "0",// 是否采集用户信息 0-否 1-是 infoCollect: "0",// 是否采集用户信息 0-否 1-是
...@@ -391,6 +391,8 @@ ...@@ -391,6 +391,8 @@
created() { created() {
// 区分内部用户和外部用户 // 区分内部用户和外部用户
let idType = localStorage.getItem('storageIdType'); let idType = localStorage.getItem('storageIdType');
let circleId = this.$route.query.circleId;
this.formData.circleId = circleId;
// vm = this; // vm = this;
// vm.entryId = vm.getUrlSearch(window.location.href, "entryId"); // vm.entryId = vm.getUrlSearch(window.location.href, "entryId");
// vm.peopleLevel = vm.getUrlSearch(window.location.href, "level"); // vm.peopleLevel = vm.getUrlSearch(window.location.href, "level");
...@@ -686,9 +688,9 @@ ...@@ -686,9 +688,9 @@
}, },
// 封装数据 // 封装数据
setFormData(){ setFormData(){
if(!this.formData.circleId){ // if(!this.formData.circleId){
this.formData.circleId = 1;// 测试用 // this.formData.circleId = 1;// 测试用
} // }
if(this.formData.textContent){ if(this.formData.textContent){
this.formData.rtcIntroduces[0].type = 1; this.formData.rtcIntroduces[0].type = 1;
this.formData.rtcIntroduces[0].content = this.formData.textContent; this.formData.rtcIntroduces[0].content = this.formData.textContent;
...@@ -748,6 +750,9 @@ ...@@ -748,6 +750,9 @@
this.$message.success("操作成功"); this.$message.success("操作成功");
this.$router.push({ this.$router.push({
path: '/live-manage', path: '/live-manage',
query: {
id: this.formData.circleId
}
}) })
} }
else { else {
......
...@@ -267,7 +267,7 @@ export default { ...@@ -267,7 +267,7 @@ export default {
path: "/create-live", path: "/create-live",
query: { query: {
// rtcId: "1" // rtcId: "1"
rtcId: row.id rtcId: row.rtcId
} }
}); });
}, },
...@@ -301,17 +301,17 @@ export default { ...@@ -301,17 +301,17 @@ export default {
}) })
.catch(() => {}); .catch(() => {});
}, },
//编辑直播 // //编辑直播
editLive(row) { // editLive(row) {
this.$router.push({ // this.$router.push({
path: "/create-live", // path: "/create-live",
query: { // query: {
// rtcId: "16" // // rtcId: "16"
rtcId: row.id, // rtcId: row.id,
//
} // }
}); // });
}, // },
handleSizeChange(val) { handleSizeChange(val) {
this.searchForm.pageSize = val; this.searchForm.pageSize = val;
this.searchForm.pageNo = 1; this.searchForm.pageNo = 1;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册