29935
This commit is contained in:
@@ -102,27 +102,13 @@
|
||||
list: [],
|
||||
isMore: false,
|
||||
isShow: false,
|
||||
yyyyMM: '',
|
||||
DD: '',
|
||||
attendanceCount: {}
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
yyyyMM () {
|
||||
if (this.date) {
|
||||
return this.date.substr(0, 8)
|
||||
}
|
||||
|
||||
return ''
|
||||
},
|
||||
|
||||
DD () {
|
||||
if (this.date) {
|
||||
return this.date.substr(8)
|
||||
}
|
||||
|
||||
return ''
|
||||
},
|
||||
|
||||
rate () {
|
||||
if (!this.attendanceCount.all) {
|
||||
return '0'
|
||||
@@ -134,6 +120,8 @@
|
||||
|
||||
mounted () {
|
||||
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.getPhotoTotal()
|
||||
},
|
||||
|
||||
@@ -168,6 +156,9 @@
|
||||
onDateChange (e) {
|
||||
this.date = `${e.year}年${e.month}月${e.day}`
|
||||
|
||||
this.yyyyMM = `${e.year}年${e.month}月`
|
||||
this.DD = e.day
|
||||
|
||||
this.$nextTick(() => {
|
||||
this.getPhotoTotal()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user