From e8b7fa03ee93678183b1aab4f4f5035c8be9e59a Mon Sep 17 00:00:00 2001
From: guanqb <18720758508@163.com>
Date: Thu, 25 Aug 2022 15:05:05 +0800
Subject: [PATCH] 经营分析 饼图和ui不一致 有筛选

---
 src/views/manage/index.vue |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/src/views/manage/index.vue b/src/views/manage/index.vue
index bdeb4d8..d50d57e 100644
--- a/src/views/manage/index.vue
+++ b/src/views/manage/index.vue
@@ -181,7 +181,9 @@
                                 <span></span>
                             </div>
                         </div>
-
+                        <div class="dataChoose">
+                            <date-select :type="'nztrSelect'" v-if="trpOrNcp == 'ncp'"></date-select>
+                        </div>
                         <div class="more" @click="popDetailedSupervise">
                             明细
                             <img src="/img/icon/more.png" alt />
@@ -878,7 +880,7 @@
         initBar (dom) {
             const that = this
             const chartDom = document.getElementById(dom)
-            const myChart = this.$echarts.init(chartDom)
+            const myChart1 = this.$echarts.init(chartDom)
             var y = []
             for (let i = 0; i < that.taskNum.length; i++) {
                 y.push(that.taskNum[i].count)
@@ -977,7 +979,10 @@
                 ],
             }
 
-            option && myChart.setOption(option)
+            option && myChart1.setOption(option)
+            window.addEventListener("resize", function () {
+                myChart1.resize()
+            })
         },
 
         initTrpBar (dom) {
@@ -1264,6 +1269,9 @@
             }
 
             option && myChart.setOption(option)
+            window.addEventListener("resize", function () {
+                myChart.resize()
+            })
         },
         initSymyBar (dom) {
             const chartDom = document.getElementById(dom)
@@ -1643,6 +1651,8 @@
                 .echarts-box {
                     margin-top: 16px;
                     flex: 1;
+                    width: 300px;
+                    height: 600px;
                 }
             }
 
@@ -1756,6 +1766,11 @@
                     & > div:nth-child(2) {
                         margin-left: 60px;
                     }
+                    .dataChoose {
+                        margin-left: 40px;
+                        width: 320px;
+                        margin-top: -20px;
+                    }
 
                     .more {
                         position: absolute;

--
Gitblit v1.9.3