forked from angelo/web-retail-h5
Compare commits
No commits in common. "3a7a8a1ac3483ac43998863bb00366244b9a7175" and "b58166d6e5ebeceaf114476c68737343c89d3e71" have entirely different histories.
3a7a8a1ac3
...
b58166d6e5
|
|
@ -92,6 +92,8 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
// 注意: 后端API需要支持按日期范围查询奖金明细
|
||||
// import { getBonusDetailsByDate, getTodayBonusTotal } from '@/config/bonus.js';
|
||||
import dayjs from 'dayjs'
|
||||
import { queryBonusTotal, queryBonusList } from '@/config/bonus'
|
||||
export default {
|
||||
|
|
@ -152,7 +154,14 @@ export default {
|
|||
// 校验区间不能超过31天
|
||||
const start = dayjs(this.startDate)
|
||||
const end = dayjs(this.endDate)
|
||||
|
||||
console.log(end.diff(start, 'day'), '...a?')
|
||||
if (end.diff(start, 'day') > 30) {
|
||||
uni.showToast({
|
||||
title: '最多只能查询31天内的数据',
|
||||
icon: 'none',
|
||||
})
|
||||
return
|
||||
}
|
||||
this.bonusList = []
|
||||
this.fetchBonusData()
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue