|
@@ -269,16 +269,16 @@ export default {
|
|
|
},
|
|
|
filters: {
|
|
|
formatterTimes(second){
|
|
|
- if(second<60){
|
|
|
- return second+'秒'
|
|
|
- }else if(60<second&&second<3600){
|
|
|
- return moment(second*1000).format('m分钟');
|
|
|
- }else if(3600<second&&second<86400){
|
|
|
- return moment(second*1000).format('HH小时mm分钟');
|
|
|
- }else if (second > 86400){
|
|
|
- return moment(second*1000).format('DD天HH小时');
|
|
|
- }else{
|
|
|
- return '--'
|
|
|
+ if (second < 60) {
|
|
|
+ return second + "秒";
|
|
|
+ } else if (60 < second && second < 3600) {
|
|
|
+ return moment(second * 1000).format("m分钟");
|
|
|
+ } else if (3600 < second && second < 86400) {
|
|
|
+ return moment(second * 1000).format("HH小时mm分钟");
|
|
|
+ } else if (second > 86400) {
|
|
|
+ return moment(second * 1000).format("DD天HH小时mm分钟");
|
|
|
+ } else {
|
|
|
+ return "--";
|
|
|
}
|
|
|
}
|
|
|
}
|