[mod]修改选科统计bug

init
CUIYUWEI 4 years ago
parent e4e99fc2a5
commit 22ee144c03

@ -219,6 +219,7 @@
}],(result)=> {
if(result[0].data.success){
if(type!=='1'){
console.log("走了吗走了吗走了吗")
this.lineFlag = true;
let data=result[0].data;
let yName=[];
@ -230,7 +231,6 @@
let political=[];
let history=[];
let geography=[];
let imgArr=[Physical,Chemistry,Biology,Political,History,Geography];
if(data.returnList.length!==0){
data.returnList.forEach((item)=>{
yName.push(item.year);
@ -259,7 +259,7 @@
if(index===5){
geography.push(itemIn.count);
}
list.push({name:itemIn.course_name,value:index,src:imgArr[index],count:index===0?physical.toString():index===1?chemistry.toString():index===2?biology.toString():index===3?political.toString():index===4?history.toString():geography.toString()});
list.push({name:itemIn.course_name,value:index,count:index===0?physical.toString():index===1?chemistry.toString():index===2?biology.toString():index===3?political.toString():index===4?history.toString():geography.toString()});
this.singleSubject.xAxisData=xName;
this.singleSubject.list=list;
});

Loading…
Cancel
Save