From a34292254a49fbe57d4637304c39ab98ab88a610 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期三, 29 十月 2025 17:08:10 +0800
Subject: [PATCH] 大屏修改,录像核查修改,查询视频设备修改
---
src/views/screen/components/lineChart.vue | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/src/views/screen/components/lineChart.vue b/src/views/screen/components/lineChart.vue
index e7fc485..c112c09 100644
--- a/src/views/screen/components/lineChart.vue
+++ b/src/views/screen/components/lineChart.vue
@@ -23,11 +23,17 @@
},
methods: {
+ setFontSize(res){
+ const clientWidth = window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;
+ if (!clientWidth) return;
+ let fontSize = clientWidth / 1920;
+ return res*fontSize;
+ },
initDrawLine() {
const that = this
let option = {
grid: {
- left: '12%',
+ left: '15%',
right: '5%'
},
tooltip: {
@@ -38,7 +44,7 @@
return str
},
textStyle: {
- fontSize: 16
+ fontSize: this.setFontSize(16)
}
},
@@ -49,7 +55,7 @@
data: ['宸插鐞嗗伐鍗曟暟', '鏈鐞嗗伐鍗曟暟'],
textStyle: {
color: '#A0AEC0',
- fontSize: 14
+ fontSize: this.setFontSize(14)
}
},
@@ -68,7 +74,7 @@
},
axisLabel: {
color: '#A0AEC0',
- fontSize: 14,
+ fontSize: this.setFontSize(14),
margin: 20,
rotate: 30
},
@@ -89,7 +95,7 @@
},
axisLabel: {
color: '#A0AEC0',
- fontSize: 14,
+ fontSize: this.setFontSize(14),
margin: 5
}
},
--
Gitblit v1.8.0