Browse Source

时间改完

main
lihuilin 3 months ago
parent
commit
3356c46603
  1. 1
      gold-system/src/views/consume/addConsume.vue
  2. 12
      gold-system/src/views/managerecharge/rate.vue
  3. 9
      gold-system/src/views/recharge/allRecharge.vue
  4. 7
      gold-system/src/views/usergold/index.vue
  5. 2
      gold-system/stats.html

1
gold-system/src/views/consume/addConsume.vue

@ -133,6 +133,7 @@ const rules = reactive({
],
indexName: [
{
required: true,
validator: (rule, value, callback) => {
if (isHC.value === 1 && !value) {
callback(new Error("请选择指标"));

12
gold-system/src/views/managerecharge/rate.vue

@ -101,8 +101,8 @@ const getToday = () => {
const today = new Date()
//
const startDate = moment(today).startOf('day').format('YYYY-MM-DD HH:mm:ss')
//
const endDate = moment(today).endOf('day').format('YYYY-MM-DD HH:mm:ss')
// 00:00:00
const endDate = moment(today).add(1, 'days').startOf('day').format('YYYY-MM-DD HH:mm:ss')
time.value.startTime = startDate
time.value.endTime = endDate
search()
@ -113,8 +113,8 @@ const getYesterday = () => {
const yesterday = moment().subtract(1, 'days')
//
const startDate = yesterday.startOf('day').format('YYYY-MM-DD HH:mm:ss')
//
const endDate = yesterday.endOf('day').format('YYYY-MM-DD HH:mm:ss')
// 00:00:00
const endDate = yesterday.add(1, 'days').startOf('day').format('YYYY-MM-DD HH:mm:ss')
time.value.startTime = startDate
time.value.endTime = endDate
search()
@ -124,8 +124,8 @@ const getYesterday = () => {
const get7Days = () => {
//
const startDate = moment().subtract(6, 'days').startOf('day').format('YYYY-MM-DD HH:mm:ss')
//
const endDate = moment().endOf('day').format('YYYY-MM-DD HH:mm:ss')
// 00:00:00
const endDate = moment().add(1, 'days').startOf('day').format('YYYY-MM-DD HH:mm:ss')
time.value.startTime = startDate
time.value.endTime = endDate
search()

9
gold-system/src/views/recharge/allRecharge.vue

@ -214,8 +214,7 @@ const getToday = function () {
const endDate = new Date(
today.getFullYear(),
today.getMonth(),
today.getDate(),
23, 59, 59
today.getDate() + 1
)
getTime.value = [startDate, endDate]
//
@ -238,8 +237,7 @@ const getYesterday = function () {
const endDate = new Date(
yesterday.getFullYear(),
yesterday.getMonth(),
yesterday.getDate(),
23, 59, 59
yesterday.getDate() + 1
)
getTime.value = [startDate, endDate]
//
@ -261,8 +259,7 @@ const get7Days = function () {
const endDate = new Date(
today.getFullYear(),
today.getMonth(),
today.getDate(),
23, 59, 59
today.getDate() + 1
)
getTime.value = [startDate, endDate]
//

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

@ -152,16 +152,17 @@ const reset = function () {
const getToday = function () {
const today = moment()
const startDate = today.startOf('day').toDate()
const endDate = today.endOf('day').toDate()
const endDate = today.add(1, 'days').startOf('day').toDate()
getTime.value = [startDate, endDate]
search()
}
//
const getYesterday = function () {
const today = moment()
const yesterday = moment().subtract(1, 'day')
const startDate = yesterday.startOf('day').toDate()
const endDate = yesterday.endOf('day').toDate()
const endDate = today.startOf('day').toDate()
getTime.value = [startDate, endDate]
search()
}
@ -169,7 +170,7 @@ const getYesterday = function () {
// 7
const get7Days = function () {
const startDate = moment().subtract(6, 'day').startOf('day').toDate()
const endDate = moment().endOf('day').toDate()
const endDate = moment().add(1,'days').startOf('day').toDate()
getTime.value = [startDate, endDate]
search()
}

2
gold-system/stats.html
File diff suppressed because it is too large
View File

Loading…
Cancel
Save