From fde1edb0a61b411ad236177c7ee6bf94337362a1 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期一, 10 十月 2022 14:31:04 +0800
Subject: [PATCH] 1.综合看板修改

---
 src/utils/myEcharts.js |   38 +++++++++++++++++++-------------------
 1 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/src/utils/myEcharts.js b/src/utils/myEcharts.js
index c1458d9..d67b615 100644
--- a/src/utils/myEcharts.js
+++ b/src/utils/myEcharts.js
@@ -1816,7 +1816,7 @@
 
 }
 
-export function zhkb03() {
+export function zhkb03(title) {
   const labelData = []
   const labelData1 = []
   for (let i = 0; i < 80; ++i) {
@@ -1980,7 +1980,7 @@
     backgroundColor: 'transparent',
     title: [
       {
-        text: '铻烘瘝鎶曞叆浜у嚭鐜�',
+        text: title,
         x: '46%',
         y: '38%',
         textAlign: 'center',
@@ -2396,10 +2396,10 @@
 export function zhkb05() {
 // 鏁版嵁
 //   var XName = ['鍛ㄤ竴', '鍛ㄤ簩', '鍛ㄤ笁', '鍛ㄥ洓', '鍛ㄤ簲', '鍛ㄥ叚', '鍛ㄦ棩']
-  var XName = ['01鏈�', '02鏈�', '03鏈�', '04鏈�', '05鏈�', '06鏈�', '07鏈�', '08鏈�', '09鏈�', '10鏈�', '11鏈�', '12鏈�']
+  var XName = ['01鏈�', '02鏈�', '03鏈�', '04鏈�', '05鏈�', '06鏈�', '07鏈�', '08鏈�', '09鏈�', '10鏈�']
   var data1 = [
     // [123, 121, 123, 321, 222, 111, 234, 121, 123, 321, 222, 321]
-    [Math.ceil(Math.random() * 100 + 100), Math.ceil(Math.random() * 100 + 200), Math.ceil(Math.random() * 100 + 100), Math.ceil(Math.random() * 100 + 200), Math.ceil(Math.random() * 100 + 300), Math.ceil(Math.random() * 100 + 100), Math.ceil(Math.random() * 100 + 200), Math.ceil(Math.random() * 100 + 200), Math.ceil(Math.random() * 100 + 300), Math.ceil(Math.random() * 100 + 100), Math.ceil(Math.random() * 100 + 200), Math.ceil(Math.random() * 100 + 300)]
+    [Math.ceil(Math.random() * 100 + 100), Math.ceil(Math.random() * 100 + 200), Math.ceil(Math.random() * 100 + 300), Math.ceil(Math.random() * 100 + 100), Math.ceil(Math.random() * 100 + 200), Math.ceil(Math.random() * 100 + 200), Math.ceil(Math.random() * 100 + 300), Math.ceil(Math.random() * 100 + 100), Math.ceil(Math.random() * 100 + 200), Math.ceil(Math.random() * 100 + 300)]
     // [123, 154, 234, 321, 120, 390, 634],
     // [63, 194, 234, 321, 278, 110, 534],
     // [53, 254, 234, 321, 118, 240, 434],
@@ -2569,22 +2569,22 @@
   return option
 }
 
-export function zhkb06() {
+export function zhkb06(title) {
   const option = {
     backgroundColor: 'transparent',
     title: [
       {
-        text: '妫�楠屽強鏃剁巼',
+        text: title,
         x: 'center',
         top: '55%',
         textStyle: {
           color: '#FFFFFF',
-          fontSize: 12,
+          fontSize: 14,
           fontWeight: 100
         }
       },
       {
-        text: '75%',
+        text: '95%',
         x: 'center',
         top: '38%',
         textStyle: {
@@ -2727,11 +2727,11 @@
   return option
 }
 
-export function zhkb07() {
+export function zhkb07(title, value) {
   const dataArr = [
     {
-      value: 61,
-      name: '鎴戞槸鏍囬'
+      value: value,
+      name: title
     }
   ]
   const color = new echarts.graphic.LinearGradient(0, 0, 1, 0, [
@@ -2745,7 +2745,7 @@
     }
   ])
   const colorSet = [
-    [0.61, color],
+    [value / 100, color],
     [1, '#15337C']
   ]
   const rich = {
@@ -2766,7 +2766,7 @@
       // lineHeight:80,
       borderWidth: 1,
       borderColor: '#0092F2',
-      fontSize: 12,
+      fontSize: 14,
       color: '#fff',
       backgroundColor: '#1B215B',
       borderRadius: 20,
@@ -2794,7 +2794,7 @@
         detail: {
           formatter: function(value) {
             var num = Math.round(value)
-            return '{bule|' + num + '}{white|鍒唥'
+            return '{bule|' + num + '}{white|%}'
           },
           rich: rich,
           offsetCenter: ['0%', '0%']
@@ -2804,7 +2804,7 @@
           show: true,
           color: '#fff',
           offsetCenter: ['0', '75%'],
-          fontSize: 12
+          fontSize: 14
         },
         axisLine: {
           show: true,
@@ -2861,7 +2861,7 @@
       value: Math.floor(Math.random() * 10 + 90)
     },
     {
-      name: '閾搁�犺溅闂�',
+      name: '闀�閿岃溅闂�',
       value: Math.floor(Math.random() * 10 + 90)
     }
   ]
@@ -3195,7 +3195,7 @@
 
 export function zhkb09() {
   // const dataY = [60, 70, 80, 90, 60, 70, 80, 90, 80, 90, 60, 70, 80, 90]
-  const dataY = [(60 + Math.random() * 30), (70 + Math.random() * 20), (80 + Math.random() * 10), (90 - Math.random() * 30), (60 + Math.random() * 30), (70 + Math.random() * 20), (80 + Math.random() * 10), (90 - Math.random() * 30), (80 - Math.random() * 30), (90 - Math.random() * 30), (60 + Math.random() * 30), (70 + Math.random() * 20), (80 - Math.random() * 10), (90 - Math.random() * 30)]
+  const dataY = [(80 + Math.random() * 10), (90 - Math.random() * 30), (60 + Math.random() * 30), (70 + Math.random() * 20), (80 + Math.random() * 10), (90 - Math.random() * 30), (80 - Math.random() * 30), (90 - Math.random() * 30), (60 + Math.random() * 30), (70 + Math.random() * 20), (80 - Math.random() * 10), (90 - Math.random() * 30)]
 
   const option = {
     backgroundColor: 'transparent',
@@ -3220,7 +3220,7 @@
     xAxis: [
       {
         type: 'category',
-        data: ['01鏈�', '02鏈�', '03鏈�', '04鏈�', '05鏈�', '06鏈�', '07鏈�', '08鏈�', '09鏈�', '10鏈�', '11鏈�', '12鏈�'],
+        data: ['01鏈�', '02鏈�', '03鏈�', '04鏈�', '05鏈�', '06鏈�', '07鏈�', '08鏈�', '09鏈�', '10鏈�'],
         axisTick: {
           alignWithLabel: true
         },
@@ -3426,7 +3426,7 @@
           // width: 3
         }
       },
-      data: ['涓�鐝�', '浜岀彮', '涓夌彮', '鍥涚彮', '浜旂彮', '鍏彮']
+      data: ['閽㈡潗鏀瑰埗', '鍐峰ⅸ', '鐑ⅸ', '鐑鐞�', '杈惧厠缃�', '闀�閿�']
     },
     series: [
       {

--
Gitblit v1.9.3