From f3335e01ea71614db9fa6aedf1d35e1202c3b12f Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 11 八月 2022 15:46:26 +0800
Subject: [PATCH] 修改登陆时传PC参数

---
 src/utils/myEcharts.js |   22 ++++++++++++++--------
 1 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/src/utils/myEcharts.js b/src/utils/myEcharts.js
index 7cb86ad..6267536 100644
--- a/src/utils/myEcharts.js
+++ b/src/utils/myEcharts.js
@@ -355,19 +355,21 @@
   // const data = [70, 60, 50, 40, 30]
   // const titlename = ['澶栬鍒掍激', '琛ㄩ潰娌规薄', '灏哄', '棰滆壊', '澶у皬']
   const data = val.map(i => i.cont)
-  const titlename = val.map(i => i.checkitem_name)
+  const titlename = val.map(i => i.name)
 
   const valdata = [683, 500, 400, 300, 200]
   const myColor = ['#FF0000', '#FF5511', '#FF8800', '#FFBB00', '#FFFF00']
   const option = {
     backgroundColor: 'transparent',
     title: {
-      text: 'Top5涓嶈壇',
-      x: 'center',
+      show: false,
+      text: '涓�鍛ㄥ唴Top5涓嶈壇锛�',
+      x: '2%',
       y: '4%',
       textStyle: {
-        color: '#fff',
-        fontSize: '22'
+        color: '#d8d7d9',
+        fontSize: '18'
+        // fontWeight: 'lighter'
       },
       subtextStyle: {
         color: '#90979c',
@@ -400,6 +402,7 @@
           show: false
         },
         axisLabel: {
+          // color: '#d8d7d9',
           color: '#fff',
           fontSize: 14,
           formatter: function(value, index) {
@@ -410,6 +413,7 @@
           rich: {
             lg: {
               // backgroundColor: '#339911',
+              // color: '#d8d7d9',
               color: '#fff',
               borderRadius: 15,
               // padding: 5,
@@ -500,11 +504,13 @@
     },
     title: {
       text: titleText,
-      x: '70%',
+      x: '73%',
       y: '2%',
       textStyle: {
-        color: '#fff',
-        fontSize: '22'
+        // color: '#fff',
+        color: '#00ffff',
+        fontSize: '18',
+        fontWeight: 'lighter'
       },
       subtextStyle: {
         color: '#90979c',

--
Gitblit v1.9.3