From b5c6e17f2e9cb10ed323c1adfa2e449bab307134 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期五, 17 一月 2025 15:15:12 +0800
Subject: [PATCH] 考核结果路由跳转、工单详情权限
---
src/views/screen/components/subheading.vue | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/views/screen/components/subheading.vue b/src/views/screen/components/subheading.vue
index bca2bc0..aeae700 100644
--- a/src/views/screen/components/subheading.vue
+++ b/src/views/screen/components/subheading.vue
@@ -27,6 +27,13 @@
},
methods: {
+ setFontSize(res){
+ const clientWidth = window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;
+ if (!clientWidth) return;
+ let fontSize = clientWidth / 1920;
+ return res*fontSize;
+ },
+
initChart (val1, val2, color) {
const annularDom = this.$refs.echarts
const myAnnular = this.$echarts.init(annularDom)
@@ -64,7 +71,7 @@
show: true, // 鍗曠嫭鏄剧ず璇ユ暟鎹」
formatter: val1 + '',
color: color,
- fontSize: 14
+ fontSize: this.setFontSize(14)
}
},
@@ -148,7 +155,6 @@
.title {
text-align: center;
- font-size: 14px;
color: #dcf8ff;
white-space: nowrap;
overflow: hidden;
--
Gitblit v1.8.0