diff --git a/src/views/organization/classManage/studentManage/index.vue b/src/views/organization/classManage/studentManage/index.vue
index 2fafdd24e..337c2831d 100644
--- a/src/views/organization/classManage/studentManage/index.vue
+++ b/src/views/organization/classManage/studentManage/index.vue
@@ -11,7 +11,7 @@
style="width:80%;margin: 0 auto;"
/>
'+params.data.name+': '+temp+'
' + } + }, + color:['#358ff8','#91cb74','#f7c757','#ec6566','#73c0de','#4ca273','#ee8250','#9a60b4','#ea7ccc','#59eca9'], + legend: {orient: 'vertical',left: 'left',top:'65px'}, series: [ { data:[], label:{show:false}, radius: '60%', - top:'20px', + top:'60px', + showEmptyCircle:true, type: 'pie' } ] @@ -50,10 +70,19 @@ export default { let timeList=response.data; if(timeList){ let realList=[]; + let allcount=0; timeList.forEach(eachItem=>{ + allcount+=parseInt(eachItem.duration); realList.push({value:eachItem.duration,name:eachItem.statsProjectName}); }) let option=this.myChart1.getOption(); + let hour=0; + let minu=0; + let seconds=0; + hour=Math.floor(allcount/3600); + minu=Math.floor((allcount%3600)/60); + seconds=Math.floor((allcount%3600)%60); + option.title[0].subtext="总时长: "+hour+'时'+minu+"分"+seconds+'秒'; option.series[0].data=realList; option && this.myChart1 && this.myChart1.setOption(option); } diff --git a/src/views/organization/studentStatistics/gradeStatistic.vue b/src/views/organization/studentStatistics/gradeStatistic.vue index 8270f39c2..bd3dbe8a2 100644 --- a/src/views/organization/studentStatistics/gradeStatistic.vue +++ b/src/views/organization/studentStatistics/gradeStatistic.vue @@ -90,6 +90,7 @@ export default { { name: '分数', data:[], + barMaxWidth:'50px', type: 'bar' }, // { diff --git a/src/views/organization/studentStatistics/index.vue b/src/views/organization/studentStatistics/index.vue index 0fe65471e..0457934ee 100644 --- a/src/views/organization/studentStatistics/index.vue +++ b/src/views/organization/studentStatistics/index.vue @@ -7,24 +7,24 @@