代码调整

This commit is contained in:
joylink_cuiweidong 2022-04-19 14:07:27 +08:00
parent ad47f33d16
commit 226744e7f7
2 changed files with 4 additions and 2 deletions

View File

@ -47,7 +47,8 @@ export default {
// minu=minu>9?minu:'0'+minu; // minu=minu>9?minu:'0'+minu;
// seconds=seconds>9?seconds:'0'+seconds; // seconds=seconds>9?seconds:'0'+seconds;
let temp=hour+'时'+minu+"分"+seconds+'秒'; let temp=hour+'时'+minu+"分"+seconds+'秒';
return '<p>'+params.data.name+': '+temp+'</p>' let start=params.data.name?params.data.name+': ':params.data.name;
return '<p>'+start+temp+'</p>'
} }
}, },
color:['#358ff8','#91cb74','#f7c757','#ec6566','#73c0de','#4ca273','#ee8250','#9a60b4','#ea7ccc','#59eca9'], color:['#358ff8','#91cb74','#f7c757','#ec6566','#73c0de','#4ca273','#ee8250','#9a60b4','#ea7ccc','#59eca9'],

View File

@ -73,7 +73,8 @@ export default {
// minu=minu>9?minu:'0'+minu; // minu=minu>9?minu:'0'+minu;
// seconds=seconds>9?seconds:'0'+seconds; // seconds=seconds>9?seconds:'0'+seconds;
let temp=hour+'时'+minu+"分"+seconds+'秒'; let temp=hour+'时'+minu+"分"+seconds+'秒';
return '<p>'+params.data.name+': '+temp+'</p>' let start=params.data.name?params.data.name+': ':params.data.name;
return '<p>'+start+temp+'</p>'
} }
}, },
color:['#358ff8','#91cb74','#f7c757','#ec6566','#73c0de','#4ca273','#ee8250','#9a60b4','#ea7ccc','#59eca9'], color:['#358ff8','#91cb74','#f7c757','#ec6566','#73c0de','#4ca273','#ee8250','#9a60b4','#ea7ccc','#59eca9'],