From 6298e9249f87b3307b6e865711449cce308958d6 Mon Sep 17 00:00:00 2001 From: ds Date: Wed, 30 Oct 2024 11:00:37 +0800 Subject: [PATCH] 10.30 --- fuintAdmin_zt/src/utils/fuint.js | 7 ++++ fuintAdmin_zt/src/views/Site/index.vue | 32 ++++++++++++++++--- .../src/views/homeComponents/agent.vue | 20 ++++++------ .../service/impl/AllOrderInfoServiceImpl.java | 2 +- 4 files changed, 46 insertions(+), 15 deletions(-) diff --git a/fuintAdmin_zt/src/utils/fuint.js b/fuintAdmin_zt/src/utils/fuint.js index bddb219d2..7f9580b5a 100644 --- a/fuintAdmin_zt/src/utils/fuint.js +++ b/fuintAdmin_zt/src/utils/fuint.js @@ -20,6 +20,13 @@ export function getNumDayTime(dayNum) { return formattedDate; } +// 格式化日期为YYYY-MM-DD +export function formatDate(date) { + let year = date.getFullYear(); + let month = String(date.getMonth() + 1).padStart(2, '0'); + let day = String(date.getDate()).padStart(2, '0'); + return `${year}-${month}-${day}`; +} // 日期格式化 export function parseTime(time, pattern) { diff --git a/fuintAdmin_zt/src/views/Site/index.vue b/fuintAdmin_zt/src/views/Site/index.vue index a79a4a8f8..ac72e1128 100644 --- a/fuintAdmin_zt/src/views/Site/index.vue +++ b/fuintAdmin_zt/src/views/Site/index.vue @@ -625,7 +625,24 @@ + + + + + + + + + + + + @@ -679,7 +696,7 @@ - + 启用 禁用 @@ -689,9 +706,9 @@ -
@@ -182,7 +182,7 @@ import echarts from "echarts"; import {getStoreAmountByTime, storeAmountIndex1, storeTotalIndex} from "@/api/indexBanner"; import {selectChildByDeptId} from "@/api/system/Site/site"; -import {parseTime} from "@/utils/fuint"; +import {parseTime,formatDate} from "@/utils/fuint"; import {getBannerListApi} from "@/api/sys/banner"; import {getListApi} from "@/api/setting/hardware"; import {getNotificationlogList} from "@/api/sys/sysNotificationlog"; @@ -236,7 +236,7 @@ export default { created() { let nowDate = new Date(); let oneWeekAgo = new Date(nowDate.getTime() - 6 * 24 * 60 * 60 * 1000) - this.value1 = [parseTime(oneWeekAgo),parseTime(nowDate)] + this.value1 = [formatDate(oneWeekAgo),formatDate(nowDate)] this.getStoreTotal() this.selectChildByDeptIdApi() // this.getStoreAmount() diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/AllOrderInfoServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/AllOrderInfoServiceImpl.java index f68973cd4..df6fe719a 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/AllOrderInfoServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/AllOrderInfoServiceImpl.java @@ -1574,7 +1574,7 @@ public class AllOrderInfoServiceImpl extends ServiceImpl