From da47a3349dcfd87db23ab8e64fbf35fe1aea5685 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期四, 14 十一月 2024 16:52:21 +0800
Subject: [PATCH] 预测项数据

---
 src/views/data/point/DaPointChart.vue |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/views/data/point/DaPointChart.vue b/src/views/data/point/DaPointChart.vue
index 379d974..e496d98 100644
--- a/src/views/data/point/DaPointChart.vue
+++ b/src/views/data/point/DaPointChart.vue
@@ -14,6 +14,8 @@
         <el-date-picker
           size="mini"
           v-model="dataForm.startTime"
+          format="YYYY-MM-DD HH:mm:00"
+          value-format="YYYY-MM-DD HH:mm:00"
           type="datetime"
           :clearable="false"
           placeholder="选择日期时间"/>
@@ -22,6 +24,8 @@
         <el-date-picker
           size="mini"
           v-model="dataForm.endTime"
+          format="YYYY-MM-DD HH:mm:00"
+          value-format="YYYY-MM-DD HH:mm:00"
           type="datetime"
           :clearable="false"
           placeholder="选择日期时间"/>
@@ -49,7 +53,7 @@
   import {ref} from 'vue';
   import * as echarts from 'echarts';
   import * as DaPoint from '@/api/data/da/point/daPointChart'
-  import {getYMDHMS} from "@/utils/dateUtil"
+  import {getYMDHM0} from "@/utils/dateUtil"
   import download from "@/utils/download";
   const message = useMessage() // 消息弹窗
   const visible = ref(false);
@@ -65,8 +69,8 @@
     pointNo: "",
     pointName: "",
     pointTypeName: "",
-    startTime: getYMDHMS(new Date() - 1000 * 60 * 60),
-    endTime: getYMDHMS(new Date()),
+    startTime: getYMDHM0(new Date() - 60 * 60 * 1000),
+    endTime: "",
   });
 
   /** 打开弹窗 */

--
Gitblit v1.9.3