From 9ef6ec82110ea5756f8844a8892632f4d0bf720f Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期五, 08 十一月 2024 15:18:41 +0800
Subject: [PATCH] 交换机机柜

---
 src/views/screen1/itm.vue |   21 ++++++++++++++++-----
 1 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/src/views/screen1/itm.vue b/src/views/screen1/itm.vue
index 2da3906..cebe501 100644
--- a/src/views/screen1/itm.vue
+++ b/src/views/screen1/itm.vue
@@ -83,18 +83,25 @@
           </div>
         </div>
       </div>
-      <div class="itm-container container-alert" style="cursor: pointer;margin-top: 3rem" @click="showSwitchInfoTable=true">
+      <div class="itm-container container-alert" style="cursor: pointer;margin-top: 3rem" @click="showSwitchBoardInfoTable=true">
         <div class="flex1">
           <div class="reg-num flex">
             <span class="div1">{{ switchInfo.switchInfo && switchInfo.switchInfo.length || 0 }}</span>
             <span class="div2">个</span>
           </div>
           <div class="reg-desc">
-            新增交换机
+            交换机清单
           </div>
         </div>
       </div>
-      <el-dialog :visible.sync="showSwitchInfoTable" title="新增交换机" append-to-body>
+      <div class="itm-container container-alert" style="cursor: pointer;margin-top: 3rem" @click="showSwitchBoard">
+        <div class="flex1">
+          <div class="reg-desc">
+            交换机机柜
+          </div>
+        </div>
+      </div>
+      <el-dialog :visible.sync="showSwitchBoardInfoTable" title="交换机清单" append-to-body>
         <el-table
             :data="switchInfo.lackSwitchInfo||[]"
             border
@@ -167,13 +174,17 @@
   },
   data() {
     return {
-      showSwitchInfoTable: false,
+      showSwitchBoardInfoTable: false,
     }
   },
   methods: {
     closeself() {
       this.$emit("show", false);
     },
+    showSwitchBoard(){
+      this.$router.push({path: "/switch-board"});
+      // this.$router.push({path: "/area", query: {code: '01'}});
+    }
   },
 };
 </script>
@@ -227,7 +238,7 @@
     border-radius: 0.83rem;
     padding: 2.5rem;
     margin-top: 2rem;
-    height: 53.5rem;
+    height: 58.5rem;
     padding-top: 1rem;
   }
 

--
Gitblit v1.9.3