日历渲染

This commit is contained in:
huichao
2020-07-24 21:22:48 +08:00
parent bb177051d6
commit 595b2a98eb
7 changed files with 101 additions and 45 deletions

View File

@@ -144,6 +144,7 @@ export default {
btns: [
{
title: '考勤记录',
titleColor:'#FF0000',
route: { flag: '', extra: {} },
},
],
@@ -191,10 +192,10 @@ export default {
this.timeCode = utils.formatDate(e, 'yyyy-MM-dd')
this.obj.date = this.timeCode
this.getPerformanceDetailC()
if (this.titleTime !== utils.formatDate(this.currentDate, 'yyyy-MM')) {
this.isShow = false
} else {
if (String(this.titleTime) === String(utils.formatDate(new Date(), 'yyyy-MM'))) {
this.isShow = true
} else {
this.isShow = false
}
},
formatDate1() {