setDefaultValues() {
return new Promise(resolve => {
const year = moment().year()
// moment月份范围是 0~11, 默认设置为上个月, 不需要 -1
let month = moment().month()
if (month === 0) {
month = 12
}
this.defaultMonth = moment(`${year}-${month}`, 'YYYY-MM')
this.queryParam.lineId = 41
this.queryParam.date = this.defaultMonth.format('YYYY-MM')
resolve()
})
},
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。