桂冠数据,默认查当月数据,本月按钮为选中状态

This commit is contained in:
liyuetong
2021-12-07 17:08:21 +08:00
parent 7a46496203
commit b87b1dbbb0

View File

@@ -512,15 +512,16 @@ export default {
}
},
created() {
// let date = new Date()
// let month = date.getMonth() + 1
// if (month <= 9) {
// month = '0' + month
// }
let date = new Date()
let month = date.getMonth() + 1
if (month <= 9) {
month = '0' + month
}
//默认展示当天数据
// this.postDate = date.getFullYear() + '-' + month + '-' + date.getDate()
this.postDate = beforeDate.getLastMonth()
this.filterDate = beforeDate.getLastMonth()
this.postDate = date.getFullYear() + '-' + month
// this.postDate = beforeDate.getLastMonth()
this.filterDate = ''
this.initDataPersonal()
this.getBranchByUserFunc() //团队数据是否有权限
window.addEventListener('scroll', this.handleScroll)