Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
2fe22ea2
提交
2fe22ea2
编写于
6月 22, 2020
作者:
bo.dang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改新建直播和编辑直播
上级
a025e7fe
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
21 行增加
和
16 行删除
+21
-16
create-live.vue
src/views/yqrange/create-live.vue
+9
-4
live-manage.vue
src/views/yqrange/live-manage.vue
+12
-12
未找到文件。
src/views/yqrange/create-live.vue
浏览文件 @
2fe22ea2
...
@@ -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 {
...
...
src/views/yqrange/live-manage.vue
浏览文件 @
2fe22ea2
...
@@ -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
.
i
d
rtcId
:
row
.
rtcI
d
}
}
});
});
},
},
...
@@ -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
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录