From 63fa5681decee282ebbe27d043d1dd3510e317ca Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A5=8F?= <1978476055@qq.com>
Date: Wed, 10 Jul 2024 14:05:37 +0800
Subject: [PATCH] 1
---
.../daily-statistics/components/DayData.vue | 761 ++++++++++--------
src/views/daily-statistics/index.vue | 1 +
2 files changed, 412 insertions(+), 350 deletions(-)
diff --git a/src/views/daily-statistics/components/DayData.vue b/src/views/daily-statistics/components/DayData.vue
index 62d2f4e..cb6ec2b 100644
--- a/src/views/daily-statistics/components/DayData.vue
+++ b/src/views/daily-statistics/components/DayData.vue
@@ -1,358 +1,419 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+ emphasis: {
+ focus: "series",
+ },
+ data: order_count,
+ },
+ ],
+ };
+ },
+ getList() {
+ let newUserList = [];
+ let userList = [];
+ let timer = [];
+ let order_coupon = [];
+ let refund_amount = [];
+ let order_count = [];
+ let pay_count = [];
+ let order_amount = []; //订单金额
+ let activeCountList = [];
+ let Daydata = [...this.tableData]
+ // 对日期数组进行排序
+ Daydata.sort((a, b) => {
+ let dateA = new Date(a.date);
+ let dateB = new Date(b.date);
+ return dateA - dateB;
+ });
+ Daydata.map((item) => {
+ newUserList.push(item.reg_count);
+ userList.push(item.user_count);
+ timer.push(item.date);
+ order_amount.push(item.order_amount); //订单金额
+ order_coupon.push(item.order_coupon); //优惠券
+ refund_amount.push(item.refund_amount); //退款
+ order_count.push(item.order_count);
+ pay_count.push(item.pay_count);
+ activeCountList.push(item.active_count);
+ });
+ this.getLine(newUserList, userList, timer, activeCountList);
+ this.getOrderLine(order_amount, order_coupon, refund_amount, timer);
+ this.getBar(order_count, pay_count, timer);
+ },
+ },
+};
+
+
+
\ No newline at end of file
diff --git a/src/views/daily-statistics/index.vue b/src/views/daily-statistics/index.vue
index ccb41cb..ddfb575 100644
--- a/src/views/daily-statistics/index.vue
+++ b/src/views/daily-statistics/index.vue
@@ -32,6 +32,7 @@
+