lilei 4 tahun lalu
induk
melakukan
e8e5e41f60
1 mengubah file dengan 14 tambahan dan 16 penghapusan
  1. 14 16
      src/views/cleanManage/statisticalReport.vue

+ 14 - 16
src/views/cleanManage/statisticalReport.vue

@@ -79,8 +79,7 @@
               yUnit="kg"
               :xAxisData="XdaysData1"
               :seriesData="hswTypeBarData"
-              :color="washTypePieColor"
-            />
+              :color="washTypePieColor" />
             <span v-if="isNoData1" class="noData">暂无数据</span>
           </a-col>
           <!-- 变化趋势 -->
@@ -92,8 +91,7 @@
               :xAxisRotate="resize"
               :xAxisData="XdaysData1"
               :seriesData="hswTypeLineData"
-              :color="washTypePieColor"
-            />
+              :color="washTypePieColor" />
             <span v-if="isNoData1" class="noData">暂无数据</span>
           </a-col>
         </a-row>
@@ -385,7 +383,6 @@ export default {
       this.beginDate = quickType[this.curentType][0].format('YYYY-MM-DD')
       this.endDate = quickType[this.curentType][1].format('YYYY-MM-DD')
       console.log(this.searchForm.queryWord, '1111111')
-	    this.resetChartsData()
       this.getPageData()
     },
     // 重置图表数据
@@ -394,23 +391,24 @@ export default {
       this.XdaysData1 = [] // x轴置空
       // 各回收物类型占比
       this.totalGroupRubbiData = {
-		  cleanWeight: 0,
-		  cleanReportData: []
+        cleanWeight: 0,
+        cleanReportData: []
       }
       // 各清运司机占比
       this.totalGroupUserData = {
-		  cleanWeight: 0,
-		  cleanReportData: []
+        cleanWeight: 0,
+        cleanReportData: []
       }
-	  // 重置清运量趋势图表数据
+      // 重置清运量趋势图表数据
       this.clearnChartData[0].data = []
       this.clearnChartData[1].data = []
       // 重置各回收物类型清运数据
-      this.hswTypeBarData.map(item => item.data = [])
-      this.hswTypeLineData.map(item => item.data = [])
+      this.hswTypeBarData.map(item => (item.data = []))
+      this.hswTypeLineData.map(item => (item.data = []))
     },
     // 根据查询条件获取所有数据
     getPageData () {
+      this.resetChartsData()
       const params = {
         beginDate: this.beginDate + ' 00:00:00',
         endDate: this.endDate + ' 00:00:00',
@@ -541,10 +539,10 @@ export default {
       border: none;
     }
   }
-.search-panel /deep/ .ant-select-selection {
-     max-height: 150px;
-     overflow: auto;
-    }
+  .search-panel /deep/ .ant-select-selection {
+    max-height: 150px;
+    overflow: auto;
+  }
   .panel {
     margin-top: 10px;
     background-color: #ffffff;