|
|
|
@ -472,7 +472,7 @@ export default { |
|
|
|
// that.getGcgNumDatas(); |
|
|
|
|
|
|
|
var xData = that.rsqsXData; |
|
|
|
var gcolor = ['#ff9acc', '#6666FF', '#FF6600', '#02ff00', '#00ffff', '#fdff00']; |
|
|
|
var gcolor = ['#a9eeff', '#6666FF', '#FF6600', '#02ff00', '#00ffff', '#fdff00']; |
|
|
|
|
|
|
|
var data = that.rsqsData_z; |
|
|
|
|
|
|
|
@ -716,7 +716,7 @@ export default { |
|
|
|
getGcgNumDatas() { |
|
|
|
let that = this |
|
|
|
that.rsqsDatas = []; |
|
|
|
this.rsqsDataName = []; |
|
|
|
that.rsqsDataName = []; |
|
|
|
that.rsqsData_z = []; |
|
|
|
homeApi.allGcgNumDatas().then(res => { |
|
|
|
// /pass.passcc/toDayGroupsEnterNum' |
|
|
|
@ -778,7 +778,7 @@ export default { |
|
|
|
|
|
|
|
function run(){ |
|
|
|
var dataP = that.dataP; |
|
|
|
let color = ['#ff9acc', '#6666ff', '#ff6600', '#02ff00','#00ffff', '#fdff00']; |
|
|
|
let color = ['#a9eeff', '#6666ff', '#ff6600', '#02ff00','#00ffff', '#fdff00']; |
|
|
|
let color1=[], color2=[], color3=[]; |
|
|
|
// 设置每层圆环颜色和添加间隔的透明色 |
|
|
|
color.forEach((item) => { |
|
|
|
@ -898,6 +898,7 @@ export default { |
|
|
|
} |
|
|
|
const pieData = jstr.realTimeData.data; |
|
|
|
|
|
|
|
// 饼图数据 |
|
|
|
that.proportionData = [];that.groupNameData=[];that.dataP=[]; |
|
|
|
pieData.forEach((item) => { |
|
|
|
that.proportionData.push(item.proportion); |
|
|
|
@ -907,6 +908,28 @@ export default { |
|
|
|
value:item.proportion.split('%')[0] |
|
|
|
}) |
|
|
|
}) |
|
|
|
// 折线图数据 |
|
|
|
that.rsqsDatas = [];that.rsqsDataName = [];that.rsqsData_z = []; |
|
|
|
const tmpdata = jstr.toDayGroupsEnterNum; |
|
|
|
tmpdata.forEach((item) => { |
|
|
|
that.rsqsDataName.push(item.groupName); |
|
|
|
that.rsqsDatas.push(item.list) |
|
|
|
}) |
|
|
|
|
|
|
|
that.rsqsXData = jstr.toDayGroupsEnterNum[0].list.dkeys; |
|
|
|
that.rsqsDatas.forEach((item) => { |
|
|
|
let rsqsData = [] |
|
|
|
Object.getOwnPropertyNames(item).forEach((value) => { |
|
|
|
|
|
|
|
if(value=='dkeys'){} |
|
|
|
if(value=='dvalue'){ |
|
|
|
rsqsData = item[value]; |
|
|
|
} |
|
|
|
}); |
|
|
|
that.rsqsData_z.push(rsqsData) |
|
|
|
}) |
|
|
|
// console.log(that.rsqsData_z, 'rsqsData_z') |
|
|
|
|
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
@ -1018,16 +1041,23 @@ export default { |
|
|
|
/* 场馆左侧 */ |
|
|
|
.indexleftbox .cgflow_leftbox { |
|
|
|
width: 2.16rem; |
|
|
|
height: 1.2rem; |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
justify-content: space-between; |
|
|
|
} |
|
|
|
|
|
|
|
.indexleftbox .cgflow_rightbox { |
|
|
|
width: 2.16rem; |
|
|
|
/* text-align: right; */ |
|
|
|
height: 1.2rem; |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
justify-content: space-between; |
|
|
|
} |
|
|
|
|
|
|
|
.indexleftbox .cgflow .cgfitem { |
|
|
|
width: 100%; |
|
|
|
height: 0.46rem; |
|
|
|
height: 0.29rem; |
|
|
|
display: flex; |
|
|
|
justify-content: space-between; |
|
|
|
} |
|
|
|
@ -1065,8 +1095,8 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
.indexleftbox .cgflow .cgfitem .cgimg img { |
|
|
|
width: 26px; |
|
|
|
height: 26px; |
|
|
|
width: 0.29rem; |
|
|
|
height: 0.29rem; |
|
|
|
overflow: hidden; |
|
|
|
text-align: center; |
|
|
|
vertical-align: bottom; |
|
|
|
|