Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
28f22214
提交
28f22214
编写于
7月 07, 2020
作者:
bo.dang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
圈子二期直播管理修改
上级
266cab21
变更
2
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
388 行增加
和
59 行删除
+388
-59
create-live.vue
src/views/yqrange/create-live.vue
+279
-54
live-manage.vue
src/views/yqrange/live-manage.vue
+109
-5
未找到文件。
src/views/yqrange/create-live.vue
浏览文件 @
28f22214
此差异已折叠。
点击以展开。
src/views/yqrange/live-manage.vue
浏览文件 @
28f22214
...
...
@@ -62,15 +62,14 @@
@
click=
"liveLink(scope.row)"
type=
"text"
size=
"small"
v-if=
"!(scope.row.liveStatus==4 && scope.row.liveScope==1)"
>
直播链接
</el-button>
v-if=
"!(scope.row.liveStatus==4 && scope.row.liveScope==1)"
>
直播链接
</el-button>
<el-button
@
click=
"countLive(scope.row)"
type=
"text"
size=
"small"
v-if=
"scope.row.liveStatus==4"
>
数据统计
</el-button>
v-if=
"scope.row.liveStatus==4"
>
数据统计
</el-button>
<el-button
@
click=
"editLive(scope.row)"
type=
"text"
size=
"small"
>
编辑
</el-button>
<el-button
@
click=
"setPlayback(scope.row)"
type=
"text"
size=
"small"
v-if=
"playbackSetFlag == 1"
>
设置回放
</el-button>
<!--
<el-button
@
click=
"deleteLive(scope.row)"
type=
"text"
size=
"small"
>
删除
</el-button>
-->
</
template
>
</el-table-column>
...
...
@@ -137,6 +136,51 @@
</el-col>
</div>
</el-dialog>
<el-dialog
title=
"设置回放"
:visible
.
sync=
"dialogLivePlaybackVisible"
width=
"500px"
:close-on-click-modal=
"false"
@
close=
"handleLivePlaybackClose"
center
>
<!--<input type="text" id="copyInput" class="hidden-input" />-->
<div
class=
"live_url_style"
>
<el-radio-group
size=
"small"
style=
"line-height: 30px;"
v-model=
"canPlayback"
@
change=
"changePlayback"
>
<el-radio
label=
"1"
>
使用直播原视频播放
</el-radio>
<el-radio
label=
"2"
>
上传回放视频(下载原视频编辑后上传)
</el-radio>
</el-radio-group>
</div>
<div
style=
"float:left;margin-left:30px;"
>
<span>
①下载原视频
</span>
<el-button
@
click=
"download('model')"
type=
"text"
size=
"small"
>
下载
</el-button>
</div>
<div
style=
"float:left;margin-left:30px;"
>
<span>
②上传回放视频
</span>
<el-upload
v-if=
"isMgUrl"
v-model=
"playbackUrl"
class=
"bg-uploader"
action=
"#"
accept=
"*/*"
:limit=
"1"
:before-upload=
"beforeVideoUpload"
>
<!--<video class="video-mg-url" controls preload :src="cleatBroadcast.liveInfo.mgUrl"></video>-->
<!-- <img v-if="!cleatBroadcast.liveInfo.mgUrl" class="video-bg-img" src="../../../static/img/small.png"> -->
</el-upload>
<el-button
@
click=
"upload"
type=
"text"
size=
"small"
>
上传(仅支持mp4)
</el-button>
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"openPlay"
right
>
开启回放
</el-button>
</div>
</el-dialog>
</div>
</div>
</template>
...
...
@@ -153,6 +197,9 @@ export default {
curmbSecond
:
"直播管理"
,
dialogStatisticsVisible
:
false
,
dialogLivelinkVisible
:
false
,
dialogLivePlaybackVisible
:
false
,
playbackSetFlag
:
1
,
canPlayback
:
1
,
searchForm
:
{
liveName
:
""
,
liveStatus
:
""
,
...
...
@@ -276,7 +323,64 @@ export default {
this
.
dialogLivelinkVisible
=
false
;
},
//回放
reviewLive
(
row
)
{},
setPlayback
(
row
)
{
this
.
dialogLivePlaybackVisible
=
true
;
},
//关闭设置回放弹窗
handleLivePlaybackClose
()
{
this
.
dialogLivePlaybackVisible
=
false
;
},
// 设置回放方式
changePlayback
(){
if
(
this
.
canPlayback
==
2
){
}
},
// 下载
download
(
type
){
let
downloadUrl
=
""
;
if
(
type
==
"model"
)
{
// downloadUrl = getExeclUrl(
// "%E6%95%99%E5%9F%B9%E9%A1%B9%E7%9B%AE%E8%A7%92%E8%89%B2%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xlsx"
// );
downloadUrl
=
"http://1302268825.vod2.myqcloud.com/22ae71e7vodcq1302268825/317cf9115285890804733258933/f0.mp4"
;
}
else
if
(
type
==
"fail"
)
{
downloadUrl
=
vm
.
failExcelUrl
;
}
console
.
log
(
"下载"
,
type
,
downloadUrl
);
setTimeout
(()
=>
{
window
.
open
(
downloadUrl
);
},
500
);
},
// 上传
upload
(){
},
// 上传视频
beforeVideoUpload
(){
vm
.
$message
.
success
(
'开始上传'
)
doUpload
(
vm
,
file
,
getFilePath
(
file
,
null
),
'preview4'
,
'uploadProgress1'
,
''
).
then
(
function
(
path
)
{
vm
.
cleatBroadcast
.
liveInfo
.
mgUrl
=
path
.
fullPath
;
vm
.
$message
.
success
(
'上传成功'
)
});
},
// 开启回放
openPlay
(){
},
//数据统计
countLive
(
row
)
{
this
.
dialogStatisticsVisible
=
true
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录