视频链接替换

This commit is contained in:
ljx 2025-06-04 10:07:42 +08:00
parent b56d09e53f
commit 2065633646
1 changed files with 8 additions and 16 deletions

View File

@ -92,9 +92,9 @@
<span class="title-decoration"></span> <span class="title-decoration"></span>
检验SOP视频 检验SOP视频
</div> </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> </div>
</dv-border-box-1> </dv-border-box-1>
</div> </div>
@ -109,6 +109,7 @@ import PieChart from './pieChart.vue'
import * as echarts from 'echarts'; import * as echarts from 'echarts';
import testRes from './test' import testRes from './test'
import LeftChart2 from './LeftChart2' import LeftChart2 from './LeftChart2'
import api from '../../api.js'
console.log(testRes) console.log(testRes)
export default { export default {
@ -249,15 +250,14 @@ export default {
], ],
leftData: this.dataType == '3'?originalLeftData2:originalLeftData, leftData: this.dataType == '3'?originalLeftData2:originalLeftData,
rightData: this.dataType == '3'?originalRightData2:originalRightData, rightData: this.dataType == '3'?originalRightData2:originalRightData,
currentVideo: 1, //
videoUrls: {
1: 'path/to/video1.mp4', //
2: 'path/to/video2.mp4' //
},
todayDate: '', todayDate: '',
todayWeek: '' todayWeek: '',
BaseUrl:''
} }
}, },
created() {
this.BaseUrl = api.baseURL;
},
// mounted() // mounted()
mounted() { mounted() {
// //
@ -317,14 +317,6 @@ export default {
} else { } else {
console.warn('未找到 #pie-type-chart 元素,无法初始化 ECharts 图表'); console.warn('未找到 #pie-type-chart 元素,无法初始化 ECharts 图表');
} }
},
//
switchVideo(videoNumber) {
this.currentVideo = videoNumber;
},
//
getVideoUrl() {
return this.videoUrls[this.currentVideo];
}, },
initDangerChart() { initDangerChart() {
const chartDom = document.getElementById('danger-charts'); const chartDom = document.getElementById('danger-charts');