From 11e6ed41dac032fd09a793787c4747ab0d1aa9f6 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 22 四月 2025 08:05:41 +0800
Subject: [PATCH] 代码初始化

---
 admin/src/views/index.vue |   26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/admin/src/views/index.vue b/admin/src/views/index.vue
index b861a69..687f6f2 100644
--- a/admin/src/views/index.vue
+++ b/admin/src/views/index.vue
@@ -18,8 +18,8 @@
 <!--              <img src="@/assets/images/bg_a.png" alt="" />-->
             </div>
             <div class="content">
-<!--              <div>鏈В鍐筹細{{ headerData.sheNum || 0}}</div>-->
-<!--              <div>宸茶В鍐筹細{{ headerData.sheNum || 0}}</div>-->
+              <div>鏈В鍐筹細{{ 0}}</div>
+              <div>宸茶В鍐筹細{{ headerData.sheNum || 0}}</div>
               <div>鎬诲伐鍗曢噺锛歿{ headerData.sheNum || 0}}</div>
             </div>
           </div>
@@ -215,14 +215,14 @@
         this.headerData = res || {}
         var cdata = []
         cdata.push({ name: '璺岀粖婊戜簨浠�', value: res.dbhNum || 0 })
-        cdata.push({ name: 'DCA浜嬩欢', value: res.dcaNum || 0 })
+        cdata.push({ name: 'DCA浜嬩欢', value: res.dcaChildNum || 0 })
         cdata.push({ name: 'SHE浜嬩欢', value: res.sheNum || 0 })
         this.initEchartCircleDo('circleChart0', '鍚勭被鍨嬩簨浠跺伐鍗曚笂鎶ョ粺璁�', '', cdata)
-        var xdata =['SHE浜嬩欢', '璺岀粖婊戜簨浠�','DCA浜嬩欢']
+        var xdata = ['SHE浜嬩欢', '璺岀粖婊戜簨浠�', 'DCA浜嬩欢']
         var ydata = []
-        ydata.push({ name: '宸茶В鍐�', stack: 'cateNum', type: 'bar', unit: '椤�', color: '#f07e6f', data: [0,res.dbhYesNum || 0,res.dcaYesNum || 0]})
-        ydata.push({ name: '鏈В鍐�', stack: 'cateNum',type: 'bar', unit: '椤�', color: '#8383ff', data: [res.sheNum || 0,res.dbhNoNum || 0,res.dcaNoNum || 0]})
-        ydata.push({ name: '鎬诲崟閲�', type: 'bar', unit: '娆�', color: '#29aeff', data: [res.sheNum || 0,res.dbhNum || 0,res.dcaNum || 0] })
+        ydata.push({ name: '宸茶В鍐�', stack: 'cateNum', type: 'bar', unit: '椤�', color: '#f07e6f', data: [res.sheNum || 0, res.dbhYesNum || 0, res.dcaChildYesNum || 0] })
+        ydata.push({ name: '鏈В鍐�', stack: 'cateNum', type: 'bar', unit: '椤�', color: '#8383ff', data: [0, res.dbhNoNum || 0, res.dcaChildNoNum || 0] })
+        ydata.push({ name: '鎬诲崟閲�', type: 'bar', unit: '娆�', color: '#29aeff', data: [res.sheNum || 0, res.dbhNum || 0, res.dcaChildNum || 0] })
         this.initEchartDataDo('鍚勭被鍨嬩簨浠剁姸鎬佺粺璁�', 'circleChart1', xdata, ydata)
       })
     },
@@ -321,7 +321,7 @@
         },
         xAxis: {
           type: 'category',
-          boundaryGap: false,
+          // boundaryGap: false,
           data: xdata
         },
         yAxis: {
@@ -419,8 +419,8 @@
     initEchartCircleDo (id, title, subTitle, data) {
       var option = {
         title: {
-          text:  '',
-          subtext:   '',
+          text: '',
+          subtext: '',
           left: 'center',
           bottom: 'bottom',
           textStyle: {
@@ -439,7 +439,7 @@
             fontSize: 10,
             fontStyle: 'normal',
             fontWeight: 'normal'
-          },
+          }
         },
         series: [
           {
@@ -454,10 +454,10 @@
                 fontSize: 10,
                 fontStyle: 'normal',
                 fontWeight: 'normal'
-              },
+              }
             },
             labelLine: {
-              show: true,
+              show: true
             },
             emphasis: {
               itemStyle: {

--
Gitblit v1.9.3