//选择的时间 defDate : 2021-07-22 15:35:52disabledDate: (time) =>moment(time) <moment(this.defDate).subtract(1, 'months') //前一个月||moment(time) >moment(this.defDate).add(1, 'month').subtract(1, 'day') //后一个月||moment(time) >moment(newDate()) //小于当天
disabledStartDate (current) { returncurrent.isAfter(this.enddate?this.enddate : moment()) }, // 结束时间限制处理disabledEndDate (current) { if (this.begndate) { returncurrent.isAfter(moment()) ||current.isBefore(this.begndate) ||current.isAfter(moment(this.begndate).add(15, 'day')) } returncurrent.isAfter(moment()) ||current.isAfter(moment(this.begndate).add(15, 'day')) },