|
@@ -495,7 +495,6 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.getStationCode()
|
|
|
- this.getDqEndTime()
|
|
|
},
|
|
|
mounted() {
|
|
|
this.initChart()
|
|
@@ -817,13 +816,13 @@ export default {
|
|
|
this.updatePosition()
|
|
|
}
|
|
|
},
|
|
|
- dataQuery() {
|
|
|
+ async dataQuery() {
|
|
|
this.loading = true
|
|
|
let queryParams = {
|
|
|
"stationCode": this.stationCode,
|
|
|
"time": Math.round(this.dateTime),
|
|
|
}
|
|
|
- this.$axios.get('/dqRegulationController/queryData', {params: queryParams}).then(response => {
|
|
|
+ await this.$axios.get('/dqRegulationController/queryData', {params: queryParams}).then(response => {
|
|
|
this.chart.clear()
|
|
|
this.capacity = response.data.electricField.capacity
|
|
|
this.tableData = response.data.tempShortRegulationList
|
|
@@ -848,6 +847,7 @@ export default {
|
|
|
this.chart.setOption(this.chartOption)
|
|
|
this.loading = false
|
|
|
});
|
|
|
+ this.getDqEndTime()
|
|
|
},
|
|
|
draData() {
|
|
|
let this1 = this;
|
|
@@ -944,8 +944,8 @@ export default {
|
|
|
this.updatePosition()
|
|
|
},
|
|
|
// 获取短期截止时间
|
|
|
- getDqEndTime() {
|
|
|
- this.$axios({url: '/dqRegulationController/getDqEndTime', method: 'get'}).then(response => {
|
|
|
+ async getDqEndTime() {
|
|
|
+ await this.$axios({url: '/dqRegulationController/getDqEndTime', method: 'get'}).then(response => {
|
|
|
this.dqEndTime = response.data
|
|
|
})
|
|
|
},
|
|
@@ -954,6 +954,7 @@ export default {
|
|
|
this.stationList = response.data
|
|
|
if (this.stationList.length > 0) {
|
|
|
this.stationCode = this.stationList[0].value
|
|
|
+ this.dataQuery()
|
|
|
}
|
|
|
})
|
|
|
},
|