|
|
@ -873,6 +873,9 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
homeApi.getAllfFlow({groupsId:idArr}).then(res=>{ |
|
|
homeApi.getAllfFlow({groupsId:idArr}).then(res=>{ |
|
|
|
|
|
if(!res.data){ |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
// console.log(res, '====='); |
|
|
// console.log(res, '====='); |
|
|
that.data24h = res.data.data.dvalue; |
|
|
that.data24h = res.data.data.dvalue; |
|
|
that.data24hX = res.data.data.dkeys; |
|
|
that.data24hX = res.data.data.dkeys; |
|
|
@ -900,9 +903,12 @@ export default { |
|
|
|
|
|
|
|
|
// 场馆人次占比 |
|
|
// 场馆人次占比 |
|
|
homeApi.homeBarData({groupsId:idArr}).then(res=>{ |
|
|
homeApi.homeBarData({groupsId:idArr}).then(res=>{ |
|
|
|
|
|
if(!res.data){ |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
// console.log(res, '=场馆人次占比='); |
|
|
// console.log(res, '=场馆人次占比='); |
|
|
that.groupsData = []; |
|
|
that.groupsData = []; |
|
|
console.log(res.data.data.groupsData) |
|
|
// console.log(res.data.data.groupsData) |
|
|
res.data.data.groupsData.forEach(item=>{ |
|
|
res.data.data.groupsData.forEach(item=>{ |
|
|
that.groupsData.push(item); |
|
|
that.groupsData.push(item); |
|
|
that.cgdata.push({ |
|
|
that.cgdata.push({ |
|
|
@ -942,6 +948,9 @@ export default { |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
homeApi.allGroupNum({granularity:"daily",groupsId:groups}).then(res=>{ |
|
|
homeApi.allGroupNum({granularity:"daily",groupsId:groups}).then(res=>{ |
|
|
|
|
|
if(!res.data){ |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
const rtdata = res.data.returnData |
|
|
const rtdata = res.data.returnData |
|
|
that.todayNum = rtdata.day.noRepeatInNum |
|
|
that.todayNum = rtdata.day.noRepeatInNum |
|
|
that.weekNum = rtdata.week.noRepeatInNum |
|
|
that.weekNum = rtdata.week.noRepeatInNum |
|
|
@ -970,6 +979,9 @@ export default { |
|
|
// 请求场馆对应的数据 |
|
|
// 请求场馆对应的数据 |
|
|
homeApi.allGcgNumDatas({groupsId:idArr}).then(res=>{ |
|
|
homeApi.allGcgNumDatas({groupsId:idArr}).then(res=>{ |
|
|
// console.log(res, '====='); |
|
|
// console.log(res, '====='); |
|
|
|
|
|
if(!res.data){ |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
const tmpdata = res.data.data; |
|
|
const tmpdata = res.data.data; |
|
|
tmpdata.forEach((item) => { |
|
|
tmpdata.forEach((item) => { |
|
|
that.rsqsDataName.push(item.groupName); |
|
|
that.rsqsDataName.push(item.groupName); |
|
|
|