Browse Source

0430麻了

main
lihuilin 3 weeks ago
parent
commit
3c54462f78
  1. 24
      gold-system/src/views/usergold/index.vue

24
gold-system/src/views/usergold/index.vue

@ -128,31 +128,7 @@ const trimJwCode = () => {
detailY.value.jwcode = detailY.value.jwcode.replace(/\s/g, '');
}
}
//
const getToday = function () {
const today = moment()
const startDate = today.startOf('day').toDate()
const endDate = today.endOf('day').toDate()
getTime.value = [startDate, endDate]
search()
}
//
const getYesterday = function () {
const yesterday = moment().subtract(1, 'day')
const startDate = yesterday.startOf('day').toDate()
const endDate = yesterday.endOf('day').toDate()
getTime.value = [startDate, endDate]
search()
}
// 7
const get7Days = function () {
const startDate = moment().subtract(6, 'day').startOf('day').toDate()
const endDate = moment().endOf('day').toDate()
getTime.value = [startDate, endDate]
search()
}
//
const search = function () {
trimJwCode();

Loading…
Cancel
Save