|
@@ -277,14 +277,22 @@ export default {
|
|
|
"endTime": endTime,
|
|
|
"ago": this.ago
|
|
|
}
|
|
|
- this.$axios.get('/shortTermSinglePointDeviation/getBoxNeed', {params: queryParams}).then(response => {
|
|
|
- this.chartData.boxplotData = response.data.result
|
|
|
- this.chartData.scatterData = response.data.abnormalList
|
|
|
- this.chartData.xData = response.data.time
|
|
|
+ if (this.forecastType === 'dq') {
|
|
|
+ this.$axios.get('/shortTermSinglePointDeviation/getBoxNeed', {params: queryParams}).then(response => {
|
|
|
+ this.chartData.boxplotData = response.data.result
|
|
|
+ this.chartData.scatterData = response.data.abnormalList
|
|
|
+ this.chartData.xData = response.data.time
|
|
|
+ this.pcChart = echarts.init(document.getElementById('pcCharts'), 'dark')
|
|
|
+ this.setOptions(this.chartData)
|
|
|
+ this.loading = false
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.chartData.boxplotData = null
|
|
|
+ this.chartData.scatterData = null
|
|
|
+ this.chartData.xData = null
|
|
|
this.pcChart = echarts.init(document.getElementById('pcCharts'), 'dark')
|
|
|
this.setOptions(this.chartData)
|
|
|
- this.loading = false
|
|
|
- })
|
|
|
+ }
|
|
|
},
|
|
|
getStationCode() {
|
|
|
this.$axios({url: '/electricfield/all', method: 'get'}).then(response => {
|