视频链接替换
This commit is contained in:
parent
b56d09e53f
commit
2065633646
|
|
@ -92,9 +92,9 @@
|
|||
<span class="title-decoration"></span>
|
||||
检验SOP视频
|
||||
</div>
|
||||
<div class="jc-video" style="margin-top:70px;">
|
||||
<div class="jc-video" style="margin-top:50px;">
|
||||
<!-- 添加播放器 -->
|
||||
<video :src="getVideoUrl()" controls></video>
|
||||
<video :src="BaseUrl+'bi5.mp4'" controls loop autoplay></video>
|
||||
</div>
|
||||
</dv-border-box-1>
|
||||
</div>
|
||||
|
|
@ -109,6 +109,7 @@ import PieChart from './pieChart.vue'
|
|||
import * as echarts from 'echarts';
|
||||
import testRes from './test'
|
||||
import LeftChart2 from './LeftChart2'
|
||||
import api from '../../api.js'
|
||||
|
||||
console.log(testRes)
|
||||
export default {
|
||||
|
|
@ -249,15 +250,14 @@ export default {
|
|||
],
|
||||
leftData: this.dataType == '3'?originalLeftData2:originalLeftData,
|
||||
rightData: this.dataType == '3'?originalRightData2:originalRightData,
|
||||
currentVideo: 1, // 当前选中的视频
|
||||
videoUrls: {
|
||||
1: 'path/to/video1.mp4', // 替换为实际的视频地址
|
||||
2: 'path/to/video2.mp4' // 替换为实际的视频地址
|
||||
},
|
||||
todayDate: '',
|
||||
todayWeek: ''
|
||||
todayWeek: '',
|
||||
BaseUrl:''
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.BaseUrl = api.baseURL;
|
||||
},
|
||||
// 在mounted()中调用
|
||||
mounted() {
|
||||
// 获取当前日期和星期
|
||||
|
|
@ -317,14 +317,6 @@ export default {
|
|||
} else {
|
||||
console.warn('未找到 #pie-type-chart 元素,无法初始化 ECharts 图表');
|
||||
}
|
||||
},
|
||||
// 切换视频的方法
|
||||
switchVideo(videoNumber) {
|
||||
this.currentVideo = videoNumber;
|
||||
},
|
||||
// 获取当前视频的地址
|
||||
getVideoUrl() {
|
||||
return this.videoUrls[this.currentVideo];
|
||||
},
|
||||
initDangerChart() {
|
||||
const chartDom = document.getElementById('danger-charts');
|
||||
|
|
|
|||
Loading…
Reference in New Issue