|
|
|
@ -705,18 +705,19 @@ export default { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
// 饼图、各场馆实时服务人次数据 |
|
|
|
const pieData = jstr.realTimeData.data; |
|
|
|
// 客流趋势饼图 |
|
|
|
const klpie = jstr.allGroupTimeNumDay.data.data.groupsData |
|
|
|
// 对数据进行排序 |
|
|
|
const yord=[2,0,4,5,1,3] |
|
|
|
//const yord=[2,0,4,5,1,3] |
|
|
|
// array |
|
|
|
that.circularData.groupName=[]; |
|
|
|
that.circularData.proportion=[]; |
|
|
|
that.kcdata=[]; |
|
|
|
// 按照yord 进行填充 |
|
|
|
for(let x=0;x<yord.length;x++){ |
|
|
|
let item = pieData[yord[x]] // 取对应的值 |
|
|
|
console.log("yord_item",item.groupName) |
|
|
|
for(let x=0;x<klpie.length;x++){ |
|
|
|
//let item = klpie[yord[x]] // 取对应的值 |
|
|
|
//console.log("yord_item",item.groupName) |
|
|
|
let item = klpie[x]; |
|
|
|
that.circularData.groupName.push(item.groupName) |
|
|
|
that.circularData.proportion.push(item.proportion) |
|
|
|
that.kcdata.push({ |
|
|
|
@ -727,6 +728,8 @@ export default { |
|
|
|
// 环形图 |
|
|
|
this.cgchart() |
|
|
|
|
|
|
|
// 各场馆实时服务人次数据 |
|
|
|
const pieData = jstr.realTimeData.data; |
|
|
|
that.ssjgNumDatas = pieData;// 各场馆实时服务人次数据 |
|
|
|
// 折线图数据 |
|
|
|
function handleLine(){ |
|
|
|
|