|
@@ -245,8 +245,8 @@ export default {
|
|
|
this.agoInfo = this.points().filter(s => s.value == this.ago)[0].label
|
|
|
this.forecastTypeInfo = this.forecastTypeList.filter(s => s.value == this.forecastType)[0].label
|
|
|
this.stationCodeInfo = this.stationList.filter(s => s.value == this.stationCode)[0].label
|
|
|
- this.tableData = response.data
|
|
|
- this.total = response.data.length
|
|
|
+ this.tableData = response.data.tableData
|
|
|
+ this.total = response.data.tableData.length
|
|
|
|
|
|
let times = []
|
|
|
let pcDatas = []
|
|
@@ -256,8 +256,13 @@ export default {
|
|
|
zqlDatas.push(t.accuracy.replace("%", ""))
|
|
|
pcDatas.push(t.deviationSum == null ? "" : t.deviationSum.replace("%", ""))
|
|
|
})
|
|
|
+ if (this.forecastType === 'dq'){
|
|
|
+ this.zqlDraw(times, pcDatas,response.data.dq)
|
|
|
+ }else {
|
|
|
+ this.zqlDraw(times, pcDatas,response.data.cdq)
|
|
|
+ }
|
|
|
+ // this.zqlDraw(times, zqlDatas,this.forecastType)
|
|
|
this.pcDraw(times, pcDatas)
|
|
|
- this.zqlDraw(times, zqlDatas,this.forecastType)
|
|
|
this.loading = false
|
|
|
}).catch(() => {
|
|
|
this.loading = false
|
|
@@ -272,7 +277,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- zqlDraw(times, datas,forecastType) {
|
|
|
+ zqlDraw(times, datas,standLine) {
|
|
|
this.zqlChart = echarts.init(document.getElementById('zqlCharts'), "dark", {renderer: 'svg'})
|
|
|
let option = {
|
|
|
backgroundColor: 'transparent',
|
|
@@ -359,7 +364,8 @@ export default {
|
|
|
}],
|
|
|
|
|
|
}
|
|
|
- if (forecastType === 'cdq'){
|
|
|
+ // if (forecastType === 'cdq'){
|
|
|
+ if(standLine != "" || standLine != undefined) {
|
|
|
option.series=[
|
|
|
{
|
|
|
name: '准确率(%)',
|
|
@@ -384,9 +390,9 @@ export default {
|
|
|
data: [{
|
|
|
label: {
|
|
|
position: 'start',
|
|
|
- formatter: "合格(75%)"
|
|
|
+ formatter: "合格("+Number(standLine)+")"
|
|
|
},
|
|
|
- yAxis: 75
|
|
|
+ yAxis: Number(standLine)
|
|
|
}]
|
|
|
},
|
|
|
itemStyle: {
|