zmc
2023-10-12 f3acb8ce787f3df0eda633031473be4e6a9ff448
src/views/HistoryFume.vue
@@ -5,7 +5,6 @@
import axiosInstanceInstance from '../utils/request.js'
import TimeSelect from '../sfc/TimeSelect.vue';
// import ShopNameAndID from '../sfc/TimeSelect.vue';
const ShopNameAndID = defineAsyncComponent(() =>
  import('../sfc/../sfc/ShopNameAndID.vue')
@@ -163,7 +162,6 @@
            }
          ]
        }
        console.log('option为:',this.options);
      }
      else if (this.radio == 2) {
         // x轴日期时间
@@ -201,7 +199,6 @@
         
        ]
        }
        console.log('option为:',this.options);
      }
      else {
        // x轴日期时间
@@ -245,11 +242,8 @@
        ]
        }
      }
      console.log('option为:',this.options);
      }
      else{
        console.log('exceedingData无数据');
      }
      
    
  },
@@ -266,7 +260,6 @@
    this.exportBeginTime =this.beginTime
    this.exportEndTime = this.endTime
    console.log(this.currentDateTime, this.oneWeekAgoDateTime);
    let params = {};
    params['devId'] = 'qinshi_31010320210010';
@@ -289,9 +282,6 @@
        this.total = this.exceedingData.length;
        // 默认显示第一页
        this.handleCurrentChange(1);
        // this.drawChart();
        this.loading = false;
        console.log('历史数据为:', this.exceedingData);
      })
  
  },
@@ -370,7 +360,6 @@
    axiosInstanceInstance.get('/fume/export', { params: params }).then((result) => {
      this.exportData = result.data.data;
      console.log(this.exportData);
    });
  },
  exportExcel() {
@@ -434,7 +423,6 @@
    const year2 = date2.getFullYear();
    const month2 = date2.getMonth();
    const day2 = date2.getDate();
    console.log(month1, month2);
    // 判断两个日期是否相差一个月
    if (year1 === year2) {
@@ -682,4 +670,8 @@
.el-table {
  color: #000000;
}
.chart-container {
  height: 60vh;
  width:80vw
}
</style>