From 20656336465d27cd8a9c0b8d285ec394eb89fb0d Mon Sep 17 00:00:00 2001
From: ljx <864490211@qq.com>
Date: Wed, 4 Jun 2025 10:07:42 +0800
Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E9=93=BE=E6=8E=A5=E6=9B=BF?=
=?UTF-8?q?=E6=8D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/baozuo-demo3/RightCmp.vue | 24 ++++++++----------------
1 file changed, 8 insertions(+), 16 deletions(-)
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');