|
|
|
@ -325,8 +325,8 @@
|
|
|
|
|
title:obj.obj_name,
|
|
|
|
|
key:obj.obj_id,
|
|
|
|
|
children:[
|
|
|
|
|
{title:obj.obj_id === 'bmi'?'低体重':'优秀',width:70,key:obj.obj_id + "_a",align:'center',dataIndex:obj.obj_id + "_a"},
|
|
|
|
|
{title:obj.obj_id === 'bmi'?'标准体重':'良好',width:80,key:obj.obj_id + "_b",align:'center',dataIndex:obj.obj_id + "_b"},
|
|
|
|
|
{title:obj.obj_id === 'bmi'?'标准体重':'优秀',width:80,key:obj.obj_id + "_a",align:'center',dataIndex:obj.obj_id + "_a"},
|
|
|
|
|
{title:obj.obj_id === 'bmi'?'低体重':'良好',width:70,key:obj.obj_id + "_b",align:'center',dataIndex:obj.obj_id + "_b"},
|
|
|
|
|
{title:obj.obj_id === 'bmi'?'超重':'及格',width:70,key:obj.obj_id + "_c",align:'center',dataIndex:obj.obj_id + "_c"},
|
|
|
|
|
{title:obj.obj_id === 'bmi'?'肥胖':'不及格',width:70,key:obj.obj_id + "_d",align:'center',dataIndex:obj.obj_id + "_d"}
|
|
|
|
|
]
|
|
|
|
@ -636,9 +636,9 @@
|
|
|
|
|
this.gradeData = result[0].data.data;
|
|
|
|
|
this.gradeEChartData.xAxis[0].data = [];//构建等级分布的横坐标
|
|
|
|
|
if (this.gradeTabkey === "bmi"){
|
|
|
|
|
this.gradeEChartData.legend.data=["低体重",'标准体重','超重','肥胖'];
|
|
|
|
|
this.gradeEChartData.series[0].name = '低体重';
|
|
|
|
|
this.gradeEChartData.series[1].name = '标准体重';
|
|
|
|
|
this.gradeEChartData.legend.data=["标准体重",'低体重','超重','肥胖'];
|
|
|
|
|
this.gradeEChartData.series[0].name = '标准体重';
|
|
|
|
|
this.gradeEChartData.series[1].name = '低体重';
|
|
|
|
|
this.gradeEChartData.series[2].name = '超重';
|
|
|
|
|
this.gradeEChartData.series[3].name = '肥胖';
|
|
|
|
|
}else{
|
|
|
|
|