diff --git a/src/components/baozuo-demo3/RightCmp.vue b/src/components/baozuo-demo3/RightCmp.vue
index 238003a..57df5d1 100644
--- a/src/components/baozuo-demo3/RightCmp.vue
+++ b/src/components/baozuo-demo3/RightCmp.vue
@@ -92,9 +92,9 @@
检验SOP视频
-
@@ -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');