29936
This commit is contained in:
@@ -68,11 +68,19 @@
|
||||
}
|
||||
},
|
||||
|
||||
created () {
|
||||
onLoad (query) {
|
||||
this.isAdmin = !!this.$store.state.user.adminAuthType
|
||||
this.date = this.$dayjs(new Date).format('YYYY年MM月DD')
|
||||
this.yyyyMM = this.$dayjs(new Date).format('YYYY年MM')
|
||||
this.DD = this.$dayjs(new Date).format('DD')
|
||||
|
||||
if (query.date) {
|
||||
this.date = this.$dayjs(query.date).format('YYYY年MM月DD')
|
||||
this.yyyyMM = this.$dayjs(query.date).format('YYYY年MM月')
|
||||
this.DD = this.$dayjs(query.date).format('DD')
|
||||
} else {
|
||||
this.date = this.$dayjs(new Date).format('YYYY年MM月DD')
|
||||
this.yyyyMM = this.$dayjs(new Date).format('YYYY年MM月')
|
||||
this.DD = this.$dayjs(new Date).format('DD')
|
||||
}
|
||||
|
||||
this.getList()
|
||||
this.getTotal()
|
||||
},
|
||||
@@ -105,10 +113,10 @@
|
||||
},
|
||||
|
||||
onDateChange (e) {
|
||||
this.date = `${e.year}年${e.month}月${e.day}`
|
||||
this.date = `${e.year}年${e.month > 9 ? e.month : '0' + e.month}月${e.day > 9 ? e.day : '0' + e.day}`
|
||||
|
||||
this.yyyyMM = `${e.year}年${e.month}月`
|
||||
this.DD = e.day
|
||||
this.yyyyMM = `${e.year}年${e.month > 9 ? e.month : '0' + e.month}月`
|
||||
this.DD = e.day > 9 ? e.day : '0' + e.day
|
||||
|
||||
this.$nextTick(() => {
|
||||
this.getList()
|
||||
|
||||
Reference in New Issue
Block a user