| | |
| | | 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') |
| | |
| | | } |
| | | ] |
| | | } |
| | | console.log('option为:',this.options); |
| | | } |
| | | else if (this.radio == 2) { |
| | | // x轴日期时间 |
| | |
| | | |
| | | ] |
| | | } |
| | | console.log('option为:',this.options); |
| | | } |
| | | else { |
| | | // x轴日期时间 |
| | |
| | | ] |
| | | } |
| | | } |
| | | console.log('option为:',this.options); |
| | | } |
| | | else{ |
| | | console.log('exceedingData无数据'); |
| | | } |
| | | |
| | | |
| | | |
| | | }, |
| | |
| | | this.exportBeginTime =this.beginTime |
| | | this.exportEndTime = this.endTime |
| | | |
| | | console.log(this.currentDateTime, this.oneWeekAgoDateTime); |
| | | |
| | | let params = {}; |
| | | params['devId'] = 'qinshi_31010320210010'; |
| | |
| | | this.total = this.exceedingData.length; |
| | | // 默认显示第一页 |
| | | this.handleCurrentChange(1); |
| | | // this.drawChart(); |
| | | this.loading = false; |
| | | console.log('历史数据为:', this.exceedingData); |
| | | }) |
| | | |
| | | }, |
| | |
| | | |
| | | axiosInstanceInstance.get('/fume/export', { params: params }).then((result) => { |
| | | this.exportData = result.data.data; |
| | | console.log(this.exportData); |
| | | }); |
| | | }, |
| | | exportExcel() { |
| | |
| | | const year2 = date2.getFullYear(); |
| | | const month2 = date2.getMonth(); |
| | | const day2 = date2.getDate(); |
| | | console.log(month1, month2); |
| | | |
| | | // 判断两个日期是否相差一个月 |
| | | if (year1 === year2) { |
| | |
| | | .el-table { |
| | | color: #000000; |
| | | } |
| | | .chart-container { |
| | | height: 60vh; |
| | | width:80vw |
| | | } |
| | | </style> |