|
@ -128,31 +128,7 @@ const trimJwCode = () => { |
|
|
detailY.value.jwcode = detailY.value.jwcode.replace(/\s/g, ''); |
|
|
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 () { |
|
|
const search = function () { |
|
|
trimJwCode(); |
|
|
trimJwCode(); |
|
|