| | |
| | | videoData: [], |
| | | searchData: null, |
| | | hls: null, |
| | | videoList:[] |
| | | videoList: [], |
| | | }; |
| | | }, |
| | | methods: { |
| | |
| | | .catch((err) => this.$message.error(err)); |
| | | }, |
| | | loadVideo(item) { |
| | | if (item.platResourceId) { |
| | | if (Hls.isSupported()) { |
| | | var video = document.getElementById(item.id); |
| | | var hls = new Hls(); |
| | |
| | | } |
| | | }); |
| | | } |
| | | } else { |
| | | this.$message.error("暂无视频"); |
| | | } |
| | | }, |
| | | selectedDepartment(data) { |
| | | this.currentPage = 1; |
| | |
| | | }, |
| | | }, |
| | | beforeDestroy(){ |
| | | videoList.forEach(element => { |
| | | element.push() |
| | | videoList.forEach((element) => { |
| | | element.push(); |
| | | }); |
| | | }, |
| | | }; |
| | |
| | | <el-dialog |
| | | :visible.sync="dialogCreate" |
| | | title="查看视频" |
| | | width="80%" |
| | | v-show="dialogCreate" |
| | | :before-close="handleClose2" |
| | | > |