|
|
|
@ -157,7 +157,9 @@ export default { |
|
|
|
week_num: 0, |
|
|
|
mon_num: 0, |
|
|
|
year_num: 0, |
|
|
|
// 客流趋势 |
|
|
|
klqsDatas: [], |
|
|
|
// 实时进馆人数 |
|
|
|
ssjgNumDatas: [] |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -167,21 +169,15 @@ export default { |
|
|
|
// }); |
|
|
|
// }, |
|
|
|
mounted() { |
|
|
|
// 客流趋势 |
|
|
|
this.getDataIn() |
|
|
|
|
|
|
|
|
|
|
|
// this.showorders() |
|
|
|
// 客流趋势 |
|
|
|
this.cgrs_line() |
|
|
|
// this.cgchart() |
|
|
|
|
|
|
|
this.getDataIn() |
|
|
|
// 各场馆客流趋势 |
|
|
|
this.getGcgNumDatas() |
|
|
|
//统计日月年进馆总数 |
|
|
|
this.getStat(); |
|
|
|
this.getHomeBarData(); |
|
|
|
// this.getHomeBarData(); |
|
|
|
this.getInfoDatas(); |
|
|
|
this.getGcgNumDatas() |
|
|
|
// 查询对应的数 |
|
|
|
// this.btgetdata(this.klselt) |
|
|
|
|
|
|
|
}, |
|
|
|
// 方法 |
|
|
|
methods: { |
|
|
|
@ -342,6 +338,7 @@ export default { |
|
|
|
type: 'solid', |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 坐标轴显示状况 |
|
|
|
axisLine: { |
|
|
|
lineStyle: { |
|
|
|
color: '#0095FF', |
|
|
|
@ -351,10 +348,6 @@ export default { |
|
|
|
show: false, |
|
|
|
}, |
|
|
|
name: '', |
|
|
|
// 计算出y轴的最大值 |
|
|
|
max:function(dataMax) { |
|
|
|
console.log(dataMax) |
|
|
|
} |
|
|
|
}, |
|
|
|
series: [ |
|
|
|
{ |
|
|
|
@ -493,7 +486,7 @@ export default { |
|
|
|
option && myChart.setOption(option); |
|
|
|
}, |
|
|
|
|
|
|
|
// 场馆入场人数 |
|
|
|
// 场馆入场人数折线图 |
|
|
|
cgrs_line() { |
|
|
|
|
|
|
|
var chartDom = document.getElementById('tdrs'); |
|
|
|
@ -667,95 +660,22 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
getHomeBarData() { |
|
|
|
let that = this |
|
|
|
console.log(that); |
|
|
|
homeApi.homeBarData().then(res => { |
|
|
|
// get allTimeData |
|
|
|
const tmpdata = res.data.data.allTimeData |
|
|
|
|
|
|
|
let datas = [] |
|
|
|
Object.values(tmpdata).forEach((value) => { |
|
|
|
console.log(value.num); |
|
|
|
datas.push(value.num) |
|
|
|
|
|
|
|
}); |
|
|
|
console.log(datas); |
|
|
|
this.klqsDatas = datas |
|
|
|
console.log(tmpdata); |
|
|
|
// this.day_num = tmpdata.day.noRepeatInNum |
|
|
|
// this.week_num_num = tmpdata.week.noRepeatInNum |
|
|
|
// this.mon_num = tmpdata.month.noRepeatInNum |
|
|
|
// this.year_num = tmpdata.year.noRepeatInNum |
|
|
|
|
|
|
|
// let btdata = new Array(); |
|
|
|
// let bvdata = new Array(); |
|
|
|
// tmpdata.foreach(function(item,index){ |
|
|
|
// console.log(item); |
|
|
|
// console.log(index); |
|
|
|
// }); |
|
|
|
|
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
getInfoDatas() { |
|
|
|
let that = this |
|
|
|
console.log(that); |
|
|
|
homeApi.allInfoDatas().then(res => { |
|
|
|
// get allTimeData |
|
|
|
this.ssjgNumDatas = res.data.returnData |
|
|
|
// let ssjgNumDatas = this.ssjgNumDatas |
|
|
|
// ssjgNumDatas.forEach(item => { |
|
|
|
// console.log(parseInt(item.proportion)); |
|
|
|
// let proportion = parseInt(item.proportion) |
|
|
|
// if (proportion >= 80 && proportion <= 90) { |
|
|
|
// console.log('11111111'); |
|
|
|
// this.$refs.proportionbox.addClass('rbrate2') |
|
|
|
// } |
|
|
|
// if (proportion > 90) { |
|
|
|
// console.log('222222'); |
|
|
|
// // console.log(this.$refs.proportionbox) |
|
|
|
// this.$refs.proportionbox.addClass('rbrate3') |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// console.log(tmpdata); |
|
|
|
// console.log(tmpdata.01.proportion); |
|
|
|
// let arr = JSON.stringify(tmpdata) |
|
|
|
// console.log(arr); |
|
|
|
// this.day_num = tmpdata.day.noRepeatInNum |
|
|
|
// this.week_num_num = tmpdata.week.noRepeatInNum |
|
|
|
// this.mon_num = tmpdata.month.noRepeatInNum |
|
|
|
// this.year_num = tmpdata.year.noRepeatInNum |
|
|
|
|
|
|
|
// let btdata = new Array(); |
|
|
|
// let bvdata = new Array(); |
|
|
|
// tmpdata.foreach(function(item,index){ |
|
|
|
// console.log(item); |
|
|
|
// console.log(index); |
|
|
|
// }); |
|
|
|
|
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
getGcgNumDatas() { |
|
|
|
let that = this |
|
|
|
console.log(that); |
|
|
|
homeApi.allGcgNumDatas().then(res => { |
|
|
|
// get allTimeData |
|
|
|
const tmpdata = res.data.returnData |
|
|
|
console.log(tmpdata); |
|
|
|
// this.day_num = tmpdata.day.noRepeatInNum |
|
|
|
// this.week_num_num = tmpdata.week.noRepeatInNum |
|
|
|
// this.mon_num = tmpdata.month.noRepeatInNum |
|
|
|
// this.year_num = tmpdata.year.noRepeatInNum |
|
|
|
|
|
|
|
// let btdata = new Array(); |
|
|
|
// let bvdata = new Array(); |
|
|
|
// tmpdata.foreach(function(item,index){ |
|
|
|
// console.log(item); |
|
|
|
// console.log(index); |
|
|
|
// }); |
|
|
|
|
|
|
|
// 场馆人流趋势线面图 |
|
|
|
this.cgrs_line(); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|