lion 2 years ago
parent bc89e61669
commit 9c733baa6f

@ -110,7 +110,8 @@
mounted() { mounted() {
let date = new Date() let date = new Date()
let month = date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1):date.getMonth()+1 let month = date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1):date.getMonth()+1
this.today = date.getFullYear()+'-'+month+'-'+date.getDate() let dateDay = date.getDate() < 10 ? '0'+(date.getDate()):date.getDate()
this.today = date.getFullYear()+'-'+month+'-'+dateDay
this.select.end_date = this.today this.select.end_date = this.today
this.initTotal() this.initTotal()
} }

@ -82,7 +82,8 @@
mounted() { mounted() {
let date = new Date() let date = new Date()
let month = date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1):date.getMonth()+1 let month = date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1):date.getMonth()+1
this.today = date.getFullYear()+'-'+month+'-'+date.getDate() let dateDay = date.getDate() < 10 ? '0'+(date.getDate()):date.getDate()
this.today = date.getFullYear()+'-'+month+'-'+dateDay
this.select.end_date = this.today this.select.end_date = this.today
this.initTotal() this.initTotal()
} }

@ -100,7 +100,7 @@
mounted() { mounted() {
let date = new Date() let date = new Date()
let month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1 let month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1
let dateDay = date.getDate() + 1 < 10 ? '0' + (date.getDate()) : date.getDate() let dateDay = date.getDate() < 10 ? '0' + (date.getDate()) : date.getDate()
this.today = date.getFullYear() + '-' + month + '-' + dateDay this.today = date.getFullYear() + '-' + month + '-' + dateDay
this.select.end_date = this.today this.select.end_date = this.today
this.getTypes() this.getTypes()

Loading…
Cancel
Save