代码调整

This commit is contained in:
joylink_cuiweidong 2022-04-19 14:03:06 +08:00
parent bf1886a534
commit ad47f33d16
2 changed files with 4 additions and 2 deletions

View File

@ -54,7 +54,7 @@ export default {
legend: {orient: 'vertical',left: 'left',top:'65px'},
series: [
{
data:[],
data:[{value:0,name:''}],
label:{show:false},
radius: '60%',
top:'60px',
@ -82,6 +82,7 @@ export default {
hour=Math.floor(allcount/3600);
minu=Math.floor((allcount%3600)/60);
seconds=Math.floor((allcount%3600)%60);
if(timeList.length==0){realList=[{value:0,name:''}]}
option.title[0].subtext="总时长: "+hour+'时'+minu+"分"+seconds+'秒';
option.series[0].data=realList;
option && this.myChart1 && this.myChart1.setOption(option);

View File

@ -81,7 +81,7 @@ export default {
// http://2i38984j47.qicp.vip/doc/UserExamController.html
series: [
{
data:[],
data:[{value:0,name:''}],
label:{show:false},
showEmptyCircle:true,
radius: '60%',
@ -116,6 +116,7 @@ export default {
realList.push({value:eachItem.duration,name:realtName});
}
})
if(timeList.length==0){realList=[{value:0,name:''}]}
let option=this.myChart3.getOption();
option.series[0].data=realList;
let hour=0;