Added global range and daycount
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -197,6 +197,15 @@ const app = new Vue({
|
||||
+ d.getDate() + ' '
|
||||
+ ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'][d.getMonth()];
|
||||
},
|
||||
|
||||
total_days: function(){
|
||||
if(this.journey_data.main.length==0) return 0;
|
||||
return (this.journey_data.main[this.journey_data.main.length-1].dateRange[0]-this.journey_data.main[0].dateRange[0])/(1000*60*60*24)
|
||||
},
|
||||
total_date: function(){
|
||||
if(this.journey_data.main.length==0) return '';
|
||||
return `${this.format_date(this.journey_data.main[this.journey_data.main.length-1].dateRange[0])} - ${this.format_date(this.journey_data.main[0].dateRange[0])}`;
|
||||
},
|
||||
update_date: function(idx){
|
||||
let dateRange = this.journey_data.main[idx].dateRange;
|
||||
let start_end = [0,0];
|
||||
|
Reference in New Issue
Block a user