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

修改新建直播和编辑直播

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