瀏覽代碼

fix: 修正时间范围参数顺序

yusheng 6 月之前
父節點
當前提交
16047f7dbd
共有 1 個文件被更改,包括 4 次插入 和 4 次删除
  1. 4 4
      src/views/energySavingTrend/index.vue

+ 4 - 4
src/views/energySavingTrend/index.vue

@@ -486,12 +486,12 @@
       // 加载图表数据
       loadChartData() {
         if (this.searchForm.dateType == 2) {
-          this.searchForm.currentMeterReadingTimeEnd = this.dateType2[0];
-          this.searchForm.currentMeterReadingTimeStart = this.dateType2[1];
+          this.searchForm.currentMeterReadingTimeEnd = this.dateType2[1];
+          this.searchForm.currentMeterReadingTimeStart = this.dateType2[0];
         }
         if (this.searchForm.dateType == 3) {
-          this.searchForm.currentMeterReadingTimeEnd = this.dateType3[0];
-          this.searchForm.currentMeterReadingTimeStart = this.dateType3[1];
+          this.searchForm.currentMeterReadingTimeEnd = this.dateType3[1];
+          this.searchForm.currentMeterReadingTimeStart = this.dateType3[0];
         }
         const params = {
           ...this.searchForm,