diff --git a/gold-system/src/views/usergold/index.vue b/gold-system/src/views/usergold/index.vue index 48fe283..1dd9126 100644 --- a/gold-system/src/views/usergold/index.vue +++ b/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();