From 7672bba9fc11315da4c42cba74504b7fd417df0c Mon Sep 17 00:00:00 2001
From: su1124 <1583764726@qq.com>
Date: 星期五, 08 三月 2024 15:43:58 +0800
Subject: [PATCH] su

---
 src/views/count/chart/index.vue |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/src/views/count/chart/index.vue b/src/views/count/chart/index.vue
index 46c585e..1fdaa72 100644
--- a/src/views/count/chart/index.vue
+++ b/src/views/count/chart/index.vue
@@ -41,6 +41,14 @@
 require("echarts/lib/component/tooltip");
 require("echarts/lib/component/legend");
 require("echarts/lib/chart/pie");
+import {
+  getNumber,
+  hasReport,
+  getPdf,
+  getOrderList,
+  getNewDateList,
+} from "@/api/hosp/order";
+import moment from "moment";
 
 export default {
   name: "chart",
@@ -85,8 +93,18 @@
     };
   },
 
-
+created() {
+    this.getdate();
+  },
   methods: {
+    getdate() {
+      getNewDateList().then((res) => {
+        this.value1 = [
+            moment(res.data).format("YYYY-MM-DD 00:00:00"),
+            moment(res.data).format("YYYY-MM-DD 23:59:00")
+          ];;
+      });
+    },
     getList() {
       this.queryParams.startDate = this.startTime[0];
       this.queryParams.endDate = this.startTime[1];

--
Gitblit v1.8.0