Commit 6052739c authored by liudong1993's avatar liudong1993

1

parent 24e770a9
......@@ -75,7 +75,7 @@
let cate =[];
let serNum =[];
let serScore=[];
props.DifficultyList.forEach(item=>{
props.DifficultyList && props.DifficultyList.forEach(item=>{
cate.push(item.Difficulty);
serNum.push(item.Count);
serScore.push(item.Score);
......
......@@ -18,7 +18,7 @@
onMounted,
} from "vue";
export default {
props: ["ModuleList"],
props: {ModuleList:[]},
setup(props) {
let data = reactive({
chartData: {},
......@@ -55,7 +55,7 @@
let cate = [];//模块名称
let grRate =[];//个人得分率
let avgRate =[];//平均得分率
props.ModuleList.forEach(item=>{
props.ModuleList && props.ModuleList.forEach(item=>{
cate.push(item.Module);
grRate.push((item.ScoreRate * 100).toFixed(0));
avgRate.push((item.AvgScoreRate * 100).toFixed(0));
......
......@@ -57,7 +57,7 @@
let cate =[];
let grScore=[];
let avgScore=[];
props.DifficultyRateList.forEach(item=>{
props.DifficultyRateList && props.DifficultyRateList.forEach(item=>{
cate.push(item.Difficulty);
grScore.push((item.ScoreRate * 100).toFixed(0));
avgScore.push((item.AvgScoreRate * 100).toFixed(0));
......
......@@ -59,21 +59,21 @@
<text>各板块掌握情况</text>
</view>
<view class="index-student-information">
<penta :ModuleList="ExamScore.ModuleList"></penta>
<penta :ModuleList="ExamScore.ModuleList" v-if="!Loading"></penta>
<allGraspTheSituation :ModuleList="ExamScore.ModuleList"></allGraspTheSituation>
</view>
<view class="scoreDetails-title flex">
<text>试卷难度分析</text>
</view>
<view class="index-student-information">
<line :DifficultyList="ExamScore.DifficultyList"></line>
<line :DifficultyList="ExamScore.DifficultyList" v-if="!Loading"></line>
<dfficultyAnalysis :DifficultyList="ExamScore.DifficultyList"></dfficultyAnalysis>
</view>
<view class="scoreDetails-title flex">
<text>难度掌握情况</text>
</view>
<view class="index-student-information">
<triangle :DifficultyRateList="ExamScore.DifficultyRateList"></triangle>
<triangle :DifficultyRateList="ExamScore.DifficultyRateList" v-if="!Loading"></triangle>
<graspTheSituation :DifficultyRateList="ExamScore.DifficultyRateList"></graspTheSituation>
</view>
</view>
......@@ -131,7 +131,7 @@
StuUId:0
},
ExamScore:{},
Loading :true
});
let methods = {
......@@ -139,6 +139,7 @@
getExamStuScore(){
proxy.$request("/Exam/GetExamStuScoreInfo", data.Msg).then(res => {
data.ExamScore = res.Data;
data.Loading = false;
})
},
back() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment