mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 01:36:43 +08:00
桂冠数据,默认查当月数据,本月按钮为选中状态
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user