From ebc552900444d25b1158bf53d07f24c9ee36cc75 Mon Sep 17 00:00:00 2001
From: liriming <1343021927@qq.com>
Date: 星期一, 20 一月 2025 14:40:57 +0800
Subject: [PATCH] 预警配置

---
 src/views/model/pre/item/MmPredictItemChart.vue |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/views/model/pre/item/MmPredictItemChart.vue b/src/views/model/pre/item/MmPredictItemChart.vue
index 3fd55b5..a0f867a 100644
--- a/src/views/model/pre/item/MmPredictItemChart.vue
+++ b/src/views/model/pre/item/MmPredictItemChart.vue
@@ -102,7 +102,7 @@
       }
 
       let seriesData = []
-      if (data.lastTime) {
+      if (data.predictTime) {
         seriesData.push({
           name: '',
           data: [null],
@@ -116,11 +116,11 @@
               width: 2
             },
             data: [{
-              xAxis: data.lastTime
+              xAxis: data.predictTime
             }],
             label: {
               normal: {
-                formatter: data.lastTime
+                formatter: data.predictTime
               }
             },
             symbol: ['circle', 'none'],
@@ -217,15 +217,15 @@
 const exportLoading = ref(false)
 const handleExport = async () => {
   chartParams.itemId = dataForm.value.id;
-  chartParams.startTime = dataForm.value.startTime;
-  chartParams.endTime = dataForm.value.endTime;
+  chartParams.startTime = dataForm.value.startTime?dataForm.value.startTime:"";
+  chartParams.endTime = dataForm.value.endTime?dataForm.value.endTime:"";
   try {
     // 导出的二次确认
     await message.exportConfirm()
     // 发起导出
     exportLoading.value = true
-    /*const data = await DaPoint.exportDaPointValue(chartParams)
-    download.excel(data, dataForm.value.pointName + '.xls')*/
+    const data = await McsApi.exportPredictValue(chartParams)
+    download.excel(data, dataForm.value.itemName + '.xls')
   } catch {
   } finally {
     exportLoading.value = false

--
Gitblit v1.9.3