Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
dc72255e
提交
dc72255e
编写于
9月 15, 2020
作者:
bo.dang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加直播删除
上级
e6562cca
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
19 行增加
和
13 行删除
+19
-13
live-manage.vue
src/views/yqrange/live-manage.vue
+19
-13
未找到文件。
src/views/yqrange/live-manage.vue
浏览文件 @
dc72255e
...
@@ -337,7 +337,7 @@ export default {
...
@@ -337,7 +337,7 @@ export default {
tableData
:
[
tableData
:
[
// {
// {
// liveName: "浙江医学大会第二场",
// liveName: "浙江医学大会第二场",
//
liveS
cope: 1, //直播范围 1-非公开 2-公开
//
s
cope: 1, //直播范围 1-非公开 2-公开
// liveStatus: 1, //直播状态 1-未开始 2-直播中 3-暂停中 4-已结束 5-回放中目前只能用到1,2,4
// liveStatus: 1, //直播状态 1-未开始 2-直播中 3-暂停中 4-已结束 5-回放中目前只能用到1,2,4
// createTime: "",
// createTime: "",
// startTime: "",
// startTime: "",
...
@@ -352,7 +352,7 @@ export default {
...
@@ -352,7 +352,7 @@ export default {
signNum
:
0
signNum
:
0
}
}
],
],
liveS
cope
:
1
,
s
cope
:
1
,
liveStatus
:
1
,
liveStatus
:
1
,
lecturerUrl
:
""
,
lecturerUrl
:
""
,
...
@@ -454,12 +454,12 @@ export default {
...
@@ -454,12 +454,12 @@ export default {
//弹出直播链接弹窗
//弹出直播链接弹窗
liveLink
(
row
)
{
liveLink
(
row
)
{
this
.
dialogLivelinkVisible
=
true
;
this
.
dialogLivelinkVisible
=
true
;
this
.
liveS
cope
=
row
.
scope
;
this
.
s
cope
=
row
.
scope
;
this
.
liveStatus
=
row
.
liveStatus
;
this
.
liveStatus
=
row
.
liveStatus
;
this
.
streamType
=
row
.
streamType
;
this
.
streamType
=
row
.
streamType
;
console
.
log
(
console
.
log
(
"liveLink() :
liveS
cope = "
+
"liveLink() :
s
cope = "
+
this
.
liveS
cope
+
this
.
s
cope
+
", liveStatus = "
+
", liveStatus = "
+
this
.
liveStatus
this
.
liveStatus
);
);
...
@@ -985,11 +985,17 @@ export default {
...
@@ -985,11 +985,17 @@ export default {
//删除直播
//删除直播
delLive
(
row
)
{
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
.
liveN
ame
}
”吗?`
,
""
,
{
this
.
$confirm
(
`确定删除“
${
row
.
n
ame
}
”吗?`
,
""
,
{
confirmButtonText
:
"删除"
,
confirmButtonText
:
"删除"
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
type
:
"warning"
...
@@ -1000,7 +1006,7 @@ export default {
...
@@ -1000,7 +1006,7 @@ export default {
let
req
=
{
let
req
=
{
rtcId
:
row
.
id
rtcId
:
row
.
id
};
};
vm
.
DELETE
(
"rtc/liveAdmin
"
,
req
).
then
(
res
=>
{
vm
.
DELETE
(
"rtc/liveAdmin
/"
+
row
.
id
,
{}
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
vm
.
$message
({
vm
.
$message
({
type
:
"success"
,
type
:
"success"
,
...
@@ -1009,14 +1015,14 @@ export default {
...
@@ -1009,14 +1015,14 @@ export default {
this
.
getLiveList
(
""
,
""
);
this
.
getLiveList
(
""
,
""
);
}
else
{
}
else
{
vm
.
$message
({
vm
.
$message
({
type
:
"
success
"
,
type
:
"
warning
"
,
message
:
"删除失败"
message
:
res
.
message
});
});
}
}
});
});
})
})
.
catch
(()
=>
{});
.
catch
(()
=>
{});
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录