|
@@ -152,27 +152,27 @@ export default {
|
|
// },
|
|
// },
|
|
// data: []
|
|
// data: []
|
|
// },
|
|
// },
|
|
- // {
|
|
|
|
- // name: '航班量环比',
|
|
|
|
- // type: 'line',
|
|
|
|
- // z: 3,
|
|
|
|
- // yAxisIndex: 1,
|
|
|
|
- // symbol: 'circle',
|
|
|
|
- // itemStyle: {
|
|
|
|
- // color: '#E33D3D',
|
|
|
|
- // borderColor: '#ffffff',
|
|
|
|
- // borderWidth: 4
|
|
|
|
- // },
|
|
|
|
- // lineStyle: {
|
|
|
|
- // width: 4,
|
|
|
|
- // color: '#E33D3D'
|
|
|
|
- // },
|
|
|
|
- // symbolSize: 32,
|
|
|
|
- // tooltip: {
|
|
|
|
- // valueFormatter: value => (value * 100).toFixed(2) + '%'
|
|
|
|
- // },
|
|
|
|
- // data: []
|
|
|
|
- // }
|
|
|
|
|
|
+ {
|
|
|
|
+ name: '航班量环比',
|
|
|
|
+ type: 'line',
|
|
|
|
+ z: 3,
|
|
|
|
+ yAxisIndex: 1,
|
|
|
|
+ symbol: 'circle',
|
|
|
|
+ itemStyle: {
|
|
|
|
+ color: '#E33D3D',
|
|
|
|
+ borderColor: '#ffffff',
|
|
|
|
+ borderWidth: 4
|
|
|
|
+ },
|
|
|
|
+ lineStyle: {
|
|
|
|
+ width: 4,
|
|
|
|
+ color: '#E33D3D'
|
|
|
|
+ },
|
|
|
|
+ symbolSize: 32,
|
|
|
|
+ tooltip: {
|
|
|
|
+ valueFormatter: value => (value * 100).toFixed(2) + '%'
|
|
|
|
+ },
|
|
|
|
+ data: []
|
|
|
|
+ }
|
|
]
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -239,11 +239,11 @@ export default {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if(data.range=="大区"){
|
|
if(data.range=="大区"){
|
|
- id = 244
|
|
|
|
|
|
+ id = DATACONTENT_ID.byAreaId
|
|
params = [data.interval,data.dateTime[0],data.dateTime[1],data.inOrOut,data.area]
|
|
params = [data.interval,data.dateTime[0],data.dateTime[1],data.inOrOut,data.area]
|
|
}
|
|
}
|
|
else if(data.range!="大区"&&data.range!=""){
|
|
else if(data.range!="大区"&&data.range!=""){
|
|
- id = 243
|
|
|
|
|
|
+ id = DATACONTENT_ID.byOtherId
|
|
params = [data.interval,data.range,data.dateTime[0],data.dateTime[1],data.inOrOut]
|
|
params = [data.interval,data.range,data.dateTime[0],data.dateTime[1],data.inOrOut]
|
|
if(data.airline==""&&data.airport==""&&data.terminal==""){
|
|
if(data.airline==""&&data.airport==""&&data.terminal==""){
|
|
params.push("全部")
|
|
params.push("全部")
|
|
@@ -267,15 +267,19 @@ export default {
|
|
let max
|
|
let max
|
|
let dateArr = []
|
|
let dateArr = []
|
|
let dataArr = []
|
|
let dataArr = []
|
|
- let chainArr = []
|
|
|
|
|
|
+ let chainArr = [0]
|
|
for(let i = 0; i<res.returnData.listValues.length;i++){
|
|
for(let i = 0; i<res.returnData.listValues.length;i++){
|
|
dateArr.push(res.returnData.listValues[i].A)
|
|
dateArr.push(res.returnData.listValues[i].A)
|
|
dataArr.push(res.returnData.listValues[i].count)
|
|
dataArr.push(res.returnData.listValues[i].count)
|
|
|
|
+ if(i>0){
|
|
|
|
+ chainArr.push((res.returnData.listValues[i].count - res.returnData.listValues[i-1].count)/res.returnData.listValues[i-1].count)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
max = Math.max( ...dataArr )+1000
|
|
max = Math.max( ...dataArr )+1000
|
|
this.options.yAxis[0].max = max
|
|
this.options.yAxis[0].max = max
|
|
this.options.xAxis.data = dateArr;
|
|
this.options.xAxis.data = dateArr;
|
|
this.options.series[0].data = dataArr
|
|
this.options.series[0].data = dataArr
|
|
|
|
+ this.options.series[1].data = chainArr
|
|
this.resizeHandler()
|
|
this.resizeHandler()
|
|
} else {
|
|
} else {
|
|
this.$message.error(res.message);
|
|
this.$message.error(res.message);
|