|
@@ -86,10 +86,10 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="other" label="其他"> </el-table-column>
|
|
<el-table-column prop="other" label="其他"> </el-table-column>
|
|
|
<el-table-column label="视频" min-width="100">
|
|
<el-table-column label="视频" min-width="100">
|
|
|
- <el-button type="primary" size="mini" plain @click="distribute('暂无视频')">查看视频</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" size="mini" plain @click="dialogVisible = true">查看视频</el-button>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="直播" min-width="100">
|
|
<el-table-column label="直播" min-width="100">
|
|
|
- <el-button type="primary" size="mini" plain @click="distribute('暂无直播')">查看直播</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" size="mini" plain @click="showViedo = true">查看直播</el-button>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" align="center" fixed="right" min-width="150">
|
|
<el-table-column label="操作" align="center" fixed="right" min-width="150">
|
|
|
<template slot-scope="{ row }">
|
|
<template slot-scope="{ row }">
|
|
@@ -119,6 +119,41 @@
|
|
|
>
|
|
>
|
|
|
</el-pagination>
|
|
</el-pagination>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <el-dialog title="视频列表" :visible.sync="dialogVisible" width="600px" center>
|
|
|
|
|
+ <el-table :data="vurl">
|
|
|
|
|
+ <el-table-column prop="name" label="名称"></el-table-column>
|
|
|
|
|
+ <el-table-column prop="url" label="地址" min-width="200px"></el-table-column>
|
|
|
|
|
+ <el-table-column label="操作"
|
|
|
|
|
+ ><template slot-scope="{ row }">
|
|
|
|
|
+ <el-button @click="playVideo(row)">播放</el-button>
|
|
|
|
|
+ </template></el-table-column
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+ <el-dialog
|
|
|
|
|
+ class="videoDialog"
|
|
|
|
|
+ destroy-on-close
|
|
|
|
|
+ center
|
|
|
|
|
+ append-to-body
|
|
|
|
|
+ :visible.sync="showViedo"
|
|
|
|
|
+ @close="closeEvent"
|
|
|
|
|
+ width="80%"
|
|
|
|
|
+ >
|
|
|
|
|
+ <video
|
|
|
|
|
+ :src="videoUrl"
|
|
|
|
|
+ controlsList="nodownload noremote footbar"
|
|
|
|
|
+ controls="controls"
|
|
|
|
|
+ style="height: 100%; max-width: 100%"
|
|
|
|
|
+ oncontextmenu="return false;"
|
|
|
|
|
+ onmouseleave="leaveVideo(this)"
|
|
|
|
|
+ ref="video"
|
|
|
|
|
+ v-if="showViedo"
|
|
|
|
|
+ >
|
|
|
|
|
+ 您的浏览器不支持 video 标签。
|
|
|
|
|
+ </video>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="close" @click="showViedo = false">关闭</div>
|
|
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
@@ -133,13 +168,40 @@ export default {
|
|
|
multipleMode: false,
|
|
multipleMode: false,
|
|
|
search: '',
|
|
search: '',
|
|
|
url: '/regulatory/all',
|
|
url: '/regulatory/all',
|
|
|
- downloading: false
|
|
|
|
|
|
|
+ downloading: false,
|
|
|
|
|
+ showViedo: false,
|
|
|
|
|
+ dialogVisible: false,
|
|
|
|
|
+ videoUrl: 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/video/2021-03-19-14-33-40dhjGRCso.mp4',
|
|
|
|
|
+ vurl: [
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '舞蹈艺考',
|
|
|
|
|
+ url: 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/video/2021-03-19-14-33-40dhjGRCso.mp4'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '表演艺考',
|
|
|
|
|
+ url: 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/video/2021-03-19-14-47-24CxnKwMnv.mp4'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '舞蹈艺考',
|
|
|
|
|
+ url: 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/video/2021-03-19-14-47-40sDbsFufH.mp4'
|
|
|
|
|
+ }
|
|
|
|
|
+ // {
|
|
|
|
|
+ // name: '唱歌艺考',
|
|
|
|
|
+ // url: 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/video/2021-03-19-14-48-22BtOKfvcx.mp4'
|
|
|
|
|
+ // }
|
|
|
|
|
+ ]
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
selection() {
|
|
selection() {
|
|
|
return this.$refs.table.selection.map(i => i.id);
|
|
return this.$refs.table.selection.map(i => i.id);
|
|
|
}
|
|
}
|
|
|
|
|
+ // videoUrl() {
|
|
|
|
|
+ // return 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/video/2021-03-19-14-33-40dhjGRCso.mp4';
|
|
|
|
|
+ // // return 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/video/2021-03-19-14-33-40dhjGRCso.mp4';
|
|
|
|
|
+ // // return 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/video/2021-03-19-14-33-40dhjGRCso.mp4';
|
|
|
|
|
+ // // return 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/video/2021-03-19-14-33-40dhjGRCso.mp4';
|
|
|
|
|
+ // }
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
beforeGetData() {
|
|
beforeGetData() {
|
|
@@ -219,8 +281,61 @@ export default {
|
|
|
this.$alert(content, '提示', {
|
|
this.$alert(content, '提示', {
|
|
|
confirmButtonText: '确定'
|
|
confirmButtonText: '确定'
|
|
|
});
|
|
});
|
|
|
|
|
+ },
|
|
|
|
|
+ closeEvent() {
|
|
|
|
|
+ document.exitPictureInPicture();
|
|
|
|
|
+ this.videoUrl =
|
|
|
|
|
+ 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/video/2021-03-19-14-33-40dhjGRCso.mp4';
|
|
|
|
|
+ },
|
|
|
|
|
+ playVideo(row) {
|
|
|
|
|
+ this.dialogVisible = false;
|
|
|
|
|
+ this.showViedo = true;
|
|
|
|
|
+ this.videoUrl = row.url;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
-<style lang="less" scoped></style>
|
|
|
|
|
|
|
+<style lang="less" scoped>
|
|
|
|
|
+.videoDialog {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ .el-dialog {
|
|
|
|
|
+ max-width: 900px;
|
|
|
|
|
+ margin-top: 0px;
|
|
|
|
|
+
|
|
|
|
|
+ .close {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ right: 0px;
|
|
|
|
|
+ top: -42px;
|
|
|
|
|
+ width: 71px;
|
|
|
|
|
+ height: 32px;
|
|
|
|
|
+ background: #00000015;
|
|
|
|
|
+
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ color: #fdffff;
|
|
|
|
|
+ line-height: 32px;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+
|
|
|
|
|
+ &:hover {
|
|
|
|
|
+ background: #00000055;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ .el-dialog__header {
|
|
|
|
|
+ display: none;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .el-dialog__body {
|
|
|
|
|
+ padding: 0;
|
|
|
|
|
+
|
|
|
|
|
+ video {
|
|
|
|
|
+ display: block;
|
|
|
|
|
+ height: auto;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ outline: none;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+</style>
|