From aa05304d221b1883d746e686f390d6f3fba598a7 Mon Sep 17 00:00:00 2001
From: ZhangXianQiang <1135831638@qq.com>
Date: 星期五, 24 五月 2024 09:36:09 +0800
Subject: [PATCH] feat:动态数据中心

---
 src/views/system/data-manage/data-detail/index.vue |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/views/system/data-manage/data-detail/index.vue b/src/views/system/data-manage/data-detail/index.vue
index 95c1d4d..ec1d7c2 100644
--- a/src/views/system/data-manage/data-detail/index.vue
+++ b/src/views/system/data-manage/data-detail/index.vue
@@ -130,6 +130,8 @@
 <script>
 import { listPlatform, getPlatform, delPlatform, addPlatform, updatePlatform } from "@/api/platform/vehicle-data-monitor";
 import { tableColumn } from "./list";
+import store from '@/store';
+
 export default {
   name: "Platform",
   data() {
@@ -178,6 +180,10 @@
       tableHead: []
     };
   },
+  beforeRouteEnter(to, from, next) {
+    console.log(to);
+    next();
+  },
   created() {
     this.tableHead = tableColumn[0].columns;
     this.getList();
@@ -225,9 +231,9 @@
     },
     // 澶氶�夋閫変腑鏁版嵁
     handleSelectionChange(selection) {
-      this.ids = selection.map(item => item.id)
-      this.single = selection.length !== 1
-      this.multiple = !selection.length
+      this.ids = selection.map(item => item.id);
+      this.single = selection.length !== 1;
+      this.multiple = !selection.length;
     },
     /** 鏂板鎸夐挳鎿嶄綔 */
     handleAdd() {
@@ -238,7 +244,7 @@
     /** 淇敼鎸夐挳鎿嶄綔 */
     handleUpdate(row) {
       this.reset();
-      const id = row.id || this.ids
+      const id = row.id || this.ids;
       getPlatform(id).then(response => {
         this.form = response.data;
         this.open = true;
@@ -279,7 +285,7 @@
     handleExport() {
       this.download('platform/platform/export', {
         ...this.queryParams
-      }, `platform_${new Date().getTime()}.xlsx`)
+      }, `platform_${new Date().getTime()}.xlsx`);
     }
   }
 };

--
Gitblit v1.8.0