|
@@ -231,10 +231,10 @@ export default {
|
|
});
|
|
});
|
|
// 数据分类底部标签
|
|
// 数据分类底部标签
|
|
this.categories = aaa;
|
|
this.categories = aaa;
|
|
- console.log(1111);
|
|
|
|
|
|
+ // console.log(1111);
|
|
// 处理数据数据
|
|
// 处理数据数据
|
|
this.countRadar();
|
|
this.countRadar();
|
|
- console.log(222);
|
|
|
|
|
|
+ // console.log(222);
|
|
|
|
|
|
// 柱状图
|
|
// 柱状图
|
|
this.countCro();
|
|
this.countCro();
|
|
@@ -256,7 +256,7 @@ export default {
|
|
this.ajax
|
|
this.ajax
|
|
.get(this.$store.state.api + "selectTerm")
|
|
.get(this.$store.state.api + "selectTerm")
|
|
.then(res => {
|
|
.then(res => {
|
|
- this.isLoading = false;
|
|
|
|
|
|
+ // this.isLoading = false;
|
|
var yearJuri = res.data[0];
|
|
var yearJuri = res.data[0];
|
|
for (var i = 0; i < yearJuri.length; i++) {
|
|
for (var i = 0; i < yearJuri.length; i++) {
|
|
if (yearJuri[i].defaultC == 1) {
|
|
if (yearJuri[i].defaultC == 1) {
|
|
@@ -310,7 +310,7 @@ export default {
|
|
AvaData.forEach((item, index) => {
|
|
AvaData.forEach((item, index) => {
|
|
this.classScoreData.push(JSON.parse(item.json));
|
|
this.classScoreData.push(JSON.parse(item.json));
|
|
});
|
|
});
|
|
- console.log('this.classScoreData',JSON.parse(JSON.stringify(this.classScoreData)) );
|
|
|
|
|
|
+ // console.log('this.classScoreData',JSON.parse(JSON.stringify(this.classScoreData)) );
|
|
// 第一次渲染,要放在这里,不然没有办法循环班级平均数
|
|
// 第一次渲染,要放在这里,不然没有办法循环班级平均数
|
|
this.getData();
|
|
this.getData();
|
|
|
|
|
|
@@ -335,7 +335,6 @@ export default {
|
|
.then(res => {
|
|
.then(res => {
|
|
// console.log("获取打分数据", res);
|
|
// console.log("获取打分数据", res);
|
|
|
|
|
|
- this.isLoading = false;
|
|
|
|
if (!res.data[0].length) {
|
|
if (!res.data[0].length) {
|
|
// this.clearRadarData();
|
|
// this.clearRadarData();
|
|
this.isShow = true;
|
|
this.isShow = true;
|
|
@@ -349,7 +348,7 @@ export default {
|
|
|
|
|
|
// console.log("this.radarData", this.radarData);
|
|
// console.log("this.radarData", this.radarData);
|
|
this.getVeidooType();
|
|
this.getVeidooType();
|
|
- this.fullscreenLoading = false;
|
|
|
|
|
|
+ this.isLoading = false;
|
|
|
|
|
|
// this.getEvidence();
|
|
// this.getEvidence();
|
|
|
|
|
|
@@ -421,12 +420,12 @@ export default {
|
|
// 班级平均分数据开始
|
|
// 班级平均分数据开始
|
|
// console.log("????", this.classScoreData);
|
|
// console.log("????", this.classScoreData);
|
|
// 先将每个学生的小分类整理好,放在child里面
|
|
// 先将每个学生的小分类整理好,放在child里面
|
|
- console.log('this.classScoreData',this.classScoreData);
|
|
|
|
|
|
+ // console.log('this.classScoreData',this.classScoreData);
|
|
|
|
|
|
this.classScoreData.forEach(i => {
|
|
this.classScoreData.forEach(i => {
|
|
for (let j in i) {
|
|
for (let j in i) {
|
|
i[j].child = [];
|
|
i[j].child = [];
|
|
- console.log(i[j]);
|
|
|
|
|
|
+ // console.log(i[j]);
|
|
for (let k in i[j]) {
|
|
for (let k in i[j]) {
|
|
if (k != "child") {
|
|
if (k != "child") {
|
|
i[j].child.push(i[j][k][i[j][k].id]);
|
|
i[j].child.push(i[j][k][i[j][k].id]);
|
|
@@ -434,7 +433,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- console.log(333);
|
|
|
|
|
|
+ // console.log(333);
|
|
|
|
|
|
// 将学生每个大分类的平均分整合
|
|
// 将学生每个大分类的平均分整合
|
|
this.classScoreData.forEach(i => {
|
|
this.classScoreData.forEach(i => {
|
|
@@ -452,7 +451,7 @@ export default {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- console.log(444);
|
|
|
|
|
|
+ // console.log(444);
|
|
|
|
|
|
// 获取学生大分类平均分
|
|
// 获取学生大分类平均分
|
|
this.classScoreData.forEach(i => {
|
|
this.classScoreData.forEach(i => {
|
|
@@ -499,6 +498,8 @@ export default {
|
|
raDataCopy[2].push(e.num[2]);
|
|
raDataCopy[2].push(e.num[2]);
|
|
});
|
|
});
|
|
this.chartData = raDataCopy;
|
|
this.chartData = raDataCopy;
|
|
|
|
+ this.fullscreenLoading = false;
|
|
|
|
+
|
|
// console.log("raDataCopy", raDataCopy);
|
|
// console.log("raDataCopy", raDataCopy);
|
|
},
|
|
},
|
|
// 柱状图
|
|
// 柱状图
|