From d3d7dcf919eda40a415b6dc744fb0b347d4293a8 Mon Sep 17 00:00:00 2001
From: zmc <zmc_li@foxmail.com>
Date: 星期三, 30 八月 2023 16:10:29 +0800
Subject: [PATCH] 扬尘Vue代码

---
 src/sfc/DustExceptionText.vue |   31 ++++++++++++++-----------------
 1 files changed, 14 insertions(+), 17 deletions(-)

diff --git a/src/sfc/DustExceptionText.vue b/src/sfc/DustExceptionText.vue
index a1e66ca..0ac11dc 100644
--- a/src/sfc/DustExceptionText.vue
+++ b/src/sfc/DustExceptionText.vue
@@ -4,12 +4,13 @@
 灏嗚绔欑偣鏌愭椂娈电殑寮傚父鏁版嵁杩斿洖缁欑埗缁勪欢锛岀埗缁勪欢鍐嶈繑鍥炵粰绁栧厛缁勪欢
 -->
 <script>
+import exceptionApi from '@/api/exceptionApi.js';
 export default {
   props: {
-    siteName:String,
-    exceptionType:String,
-    beginTime:String,
-    endTime:String,
+    siteName: String,
+    exceptionType: String,
+    beginTime: String,
+    endTime: String
   },
   emits: ['submitExceptionData'],
   data() {
@@ -22,21 +23,17 @@
   methods: {
     requestExceptionData() {
       // 涓嶅垎椤�
-      this.$http
-        .get('/dust/exceptiondata1', {
-          params: {
-            siteName: this.siteName,
-            exceptionType: this.exceptionType,
-            beginTime: this.beginTime,
-            endTime: this.endTime
-          }
-        })
+      exceptionApi
+        .exceptiondata1({
+          siteName:  this.siteName,
+          exceptionType:this.exceptionType,
+          beginTime:this.beginTime,
+          endTime:this.endTime
+        }
+        )
         .then((result) => {
           //灏嗚繑鍥炵殑缁撴灉浼犻�掔粰鐖剁粍浠�
-          this.$emit(
-            'submitExceptionData',
-            result.data.data
-          );
+          this.$emit('submitExceptionData', result.data.data);
         });
     }
   }

--
Gitblit v1.9.3