From df83e26ddc09dbc9450d70b8a8e704aebef97720 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期二, 16 八月 2022 11:16:28 +0800
Subject: [PATCH] 1.仓库管理看板接口接入

---
 src/utils/myEcharts.js |   25 ++++++++++++++++---------
 1 files changed, 16 insertions(+), 9 deletions(-)

diff --git a/src/utils/myEcharts.js b/src/utils/myEcharts.js
index af575cb..473374a 100644
--- a/src/utils/myEcharts.js
+++ b/src/utils/myEcharts.js
@@ -350,12 +350,15 @@
 }
 
 // 缁煎悎鐪嬫澘鍥�
-export function bar02(val) {
+export function bar02(dataArr,titlenameArr) {
   // console.log(val)
   // const data = [70, 60, 50, 40, 30]
   // const titlename = ['澶栬鍒掍激', '琛ㄩ潰娌规薄', '灏哄', '棰滆壊', '澶у皬']
-  const data = val.map(i => i.cont)
-  const titlename = val.map(i => i.name)
+  // const data = val.map(i => i.cont)
+  // const titlename = val.map(i => i.name)
+  const data = dataArr
+
+  const titlename = titlenameArr
 
   const valdata = [683, 500, 400, 300, 200]
   const myColor = ['#FF0000', '#FF5511', '#FF8800', '#FFBB00', '#FFFF00']
@@ -402,7 +405,8 @@
           show: false
         },
         axisLabel: {
-          color: '#d8d7d9',
+          // color: '#d8d7d9',
+          color: '#fff',
           fontSize: 14,
           formatter: function(value, index) {
             return [
@@ -412,7 +416,8 @@
           rich: {
             lg: {
               // backgroundColor: '#339911',
-              color: '#d8d7d9',
+              // color: '#d8d7d9',
+              color: '#fff',
               borderRadius: 15,
               // padding: 5,
               align: 'center',
@@ -478,7 +483,7 @@
   return option
 }
 
-// 浠撳簱绠$悊鐪嬫澘鍥�
+// 浠撳簱绠$悊鐪嬫澘鍥�   锛堝純鐢級
 export function bar03(titleText) {
   const path = 'path://M214,1079l8-6h16l8,6-8,6H222Z'
   const zzx1 = ['800', '900', '700', '300', '500', '800', '700']
@@ -502,11 +507,13 @@
     },
     title: {
       text: titleText,
-      x: '70%',
+      x: '66%',
       y: '2%',
       textStyle: {
-        color: '#fff',
-        fontSize: '22'
+        // color: '#fff',
+        color: '#00ffff',
+        fontSize: '18',
+        fontWeight: 'lighter'
       },
       subtextStyle: {
         color: '#90979c',

--
Gitblit v1.9.3