forked from angelo/web-retail-h5
feat(bonus): 奖金查询日期区间控制
This commit is contained in:
parent
22e0e1b1b8
commit
3a7a8a1ac3
|
@ -152,13 +152,7 @@ export default {
|
||||||
// 校验区间不能超过31天
|
// 校验区间不能超过31天
|
||||||
const start = dayjs(this.startDate)
|
const start = dayjs(this.startDate)
|
||||||
const end = dayjs(this.endDate)
|
const end = dayjs(this.endDate)
|
||||||
if (end.diff(start, 'day') > 60) {
|
|
||||||
uni.showToast({
|
|
||||||
title: '最多只能查询60天内的数据',
|
|
||||||
icon: 'none',
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
|
||||||
this.bonusList = []
|
this.bonusList = []
|
||||||
this.fetchBonusData()
|
this.fetchBonusData()
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue