ziti
This commit is contained in:
parent
eb8dfb71a3
commit
aa5883a04f
|
@ -214,19 +214,19 @@ export const asyncRoutes = [
|
||||||
path: 'videolist',
|
path: 'videolist',
|
||||||
name: 'videolist',
|
name: 'videolist',
|
||||||
component: () => import('@/views/testvideo/videolist.vue'),
|
component: () => import('@/views/testvideo/videolist.vue'),
|
||||||
meta: { title: '视频列表', perms: ['videolist'] }
|
meta: { title: '视频列表', perms: ['video_view'] }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'upload',
|
path: 'upload',
|
||||||
name: 'upload',
|
name: 'upload',
|
||||||
component: () => import('@/views/testvideo/upload.vue'),
|
component: () => import('@/views/testvideo/upload.vue'),
|
||||||
meta: { title: '上传视频', perms: ['uploadvideo'] }
|
meta: { title: '上传视频', perms: ['video_create'] }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'index/:id',
|
path: 'index/:id',
|
||||||
name: 'Index',
|
name: 'Index',
|
||||||
component: () => import('@/views/testvideo/index.vue'),
|
component: () => import('@/views/testvideo/index.vue'),
|
||||||
meta: { title: '视频播放', perms: ['uploadvideo'] },
|
meta: { title: '视频播放', perms: ['video_view'] },
|
||||||
hidden: true
|
hidden: true
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
|
@ -123,6 +123,12 @@ export default {
|
||||||
const playerParm = {
|
const playerParm = {
|
||||||
fileID: this.fileid,
|
fileID: this.fileid,
|
||||||
appID: '1253484223',
|
appID: '1253484223',
|
||||||
|
plugins:{
|
||||||
|
ContinuePlay: { // 开启续播功能
|
||||||
|
// auto: true, //[可选] 是否在视频播放后自动续播
|
||||||
|
// text:'上次播放至 ', //[可选] 提示文案
|
||||||
|
// btnText: '恢复播放' //[可选] 按钮文案
|
||||||
|
},}
|
||||||
|
|
||||||
};
|
};
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|
|
@ -50,12 +50,14 @@
|
||||||
</template>
|
</template>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
|
:disabled="!checkPermission(['video_update'])"
|
||||||
type="primary"
|
type="primary"
|
||||||
size="small"
|
size="small"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="handleEdit(scope)"
|
@click="handleEdit(scope)"
|
||||||
/>
|
/>
|
||||||
<el-button
|
<el-button
|
||||||
|
:disabled="!checkPermission(['video_delete'])"
|
||||||
type="danger"
|
type="danger"
|
||||||
size="small"
|
size="small"
|
||||||
icon="el-icon-delete"
|
icon="el-icon-delete"
|
||||||
|
@ -417,7 +419,7 @@ async confirm(form) {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<style type="text/css">
|
<style lang="scss" scoped>
|
||||||
.text-danger {
|
.text-danger {
|
||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
|
|
@ -117,7 +117,7 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<style type="text/css">
|
<style lang="scss" scoped>
|
||||||
.time {
|
.time {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
color: #999;
|
color: #999;
|
||||||
|
|
Loading…
Reference in New Issue