|
|
@@ -65,11 +65,11 @@ const getDataChart = async () => { |
|
|
|
getCharts1(sex.data.label, sex.data.value); |
|
|
|
/* 获取学生年龄 */ |
|
|
|
let age: any = await portraitSummaryApi.getStudentAge(); |
|
|
|
let data = { |
|
|
|
label: [89, 99, 36, 29, 31, 30, 28, 22, 32, 33, 35, 12012012, 26, 27, 23], |
|
|
|
value: [1, 1, 1, 2, 2, 2, 1, 16, 1, 1, 1, 1, 1, 1, 1] |
|
|
|
}; |
|
|
|
getCharts2(data.label, data.value); |
|
|
|
// let data = { |
|
|
|
// label: [89, 99, 36, 29, 31, 30, 28, 22, 32, 33, 35, 12012012, 26, 27, 23], |
|
|
|
// value: [1, 1, 1, 2, 2, 2, 1, 16, 1, 1, 1, 1, 1, 1, 1] |
|
|
|
// }; |
|
|
|
getCharts2(age.data.label, age.data.value); |
|
|
|
/* 获取属性标签 */ |
|
|
|
let attr: any = await portraitSummaryApi.getStudentAttr(); |
|
|
|
getCharts4(attr.data.label, attr.data.value); |
|
|
|