const nowDate = new Date()
const y = nowDate.getFullYear()
const currMonth = nowDate.getMonth() + 1
const currQuarter = Math.floor((currMonth % 3 === 0 ? (currMonth / 3) : (currMonth / 3 + 1)))
console.log('当前年', y)
console.log('季度', currQuarter)
this.yearAndQuarter = y + '-' + currQuarter
console.log('当前的年和季度', this.yearAndQuarter)