From 9a37c5e1b2190c3f6ec71483923922189091dd52 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 18 Dec 2024 09:42:01 +0800
Subject: [PATCH] 事件模拟更新

---
 src/views/space/components/leftContainer.vue |   60 ++++++++++++++++++++++++++++++------------------------------
 1 files changed, 30 insertions(+), 30 deletions(-)

diff --git a/src/views/space/components/leftContainer.vue b/src/views/space/components/leftContainer.vue
index bbf0452..3b7bdcb 100644
--- a/src/views/space/components/leftContainer.vue
+++ b/src/views/space/components/leftContainer.vue
@@ -2,11 +2,11 @@
  * @Author: shuishen 1109946754@qq.com
  * @Date: 2023-03-10 15:27:59
  * @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-11-18 16:10:10
+ * @LastEditTime: 2024-11-28 11:35:07
  * @FilePath: \bigScreen\src\views\space\components\leftContainer.vue
- * @Description: 
- * 
- * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. 
+ * @Description:
+ *
+ * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
 -->
 <script setup>
 import EventBus from 'utils/bus'
@@ -19,16 +19,6 @@
 
 const gawList = ref([
   {
-    label: '给水管网',
-    value: "3-3-1",
-    select: false
-  },
-  {
-    label: '燃气管网',
-    value: "3-3-3",
-    select: false
-  },
-  {
     label: '污水管网',
     value: "3-3-2",
     select: true
@@ -36,7 +26,7 @@
   {
     label: '雨水管网',
     value: "3-3-4",
-    select: true
+    select: false
   },
 ])
 const curSelect = ref('')
@@ -47,7 +37,7 @@
     code: code,
   }
   getDictionary(param).then((res) => {
-    resData.data = res.data.data.map(item => {
+    resData.data = res.data.data.filter(i => i.dictKey != 7 && i.dictKey != 9 && i.dictKey != 11).map(item => {
       return {
         label: item.dictValue,
         value: item.dictKey
@@ -59,21 +49,28 @@
 }
 
 const tabClick = (item) => {
-  console.log('tabClick', item)
+  EventBus.emit('destroyPop', 'destroyPop')
   if (curSelect.value) {
     if (curSelect.value == '3') {
+      EventBus.emit('restHandleDelChange', `3-3`)
       EventBus.emit('restHandleDelChange', `3-3-1`)
       EventBus.emit('restHandleDelChange', `3-3-2`)
       EventBus.emit('restHandleDelChange', `3-3-3`)
       EventBus.emit('restHandleDelChange', `3-3-4`)
     } else {
+      gawList.value.forEach(element => {
+        if (element.value == `3-3-2`) {
+          element.select = true
+        } else {
+          element.select = false
+        }
+      });
       EventBus.emit('restHandleDelChange', `3-${curSelect.value}`)
     }
   }
   curSelect.value = item.value
   if (item.value == '3') {
     EventBus.emit('restHandleCheckChange', `3-3-2`)
-    EventBus.emit('restHandleCheckChange', `3-3-4`)
   } else {
     EventBus.emit('restHandleCheckChange', `3-${item.value}`)
   }
@@ -122,8 +119,8 @@
       </div>
     </div>
     <div v-if="curSelect == '3'">
-      <div class="left-container cur-container-title">
-        <div class="tablist h100">
+      <div class="cur-container-title">
+        <div class="tablist">
           <div class="cursor-p" :class="{ on: item.select }" v-for="item, index in gawList" :key="index"
             @click="tabClickGW(item)">
             <div class="label-box">
@@ -139,7 +136,7 @@
 
 <style lang="scss" scoped>
 .left-container {
-  width: 64px;
+  width: auto;
 }
 
 .cur-container {
@@ -156,12 +153,13 @@
       margin-top: 10px;
       padding: 8px;
       width: 64px;
-      height: 64px;
+      height: 48px;
 
       border-radius: 50%;
       box-shadow: inset 0 0 40px #409eff;
       color: #fff;
       box-sizing: content-box;
+      font-size: 12px;
 
       &.on {
         position: relative;
@@ -170,7 +168,8 @@
       }
 
       .label-box {
-        line-height: 24px;
+        padding: 8px;
+        line-height: 20px;
         text-align: center;
       }
     }
@@ -181,8 +180,7 @@
   background: transparent;
   pointer-events: none;
   margin-left: 120px;
-  margin-top: 60px;
-  font-size: 12px;
+  margin-top: 120px;
 
   .tablist {
     pointer-events: all;
@@ -193,13 +191,14 @@
       justify-content: center;
       margin-top: 10px;
       padding: 8px;
-      width: 54px;
-      height: 54px;
+      width: 64px;
+      height: 48px;
 
+      color: #fff;
       border-radius: 50%;
       box-shadow: inset 0 0 40px #409eff;
-      color: #fff;
       box-sizing: content-box;
+      font-size: 12px;
 
       &.on {
         position: relative;
@@ -208,10 +207,11 @@
       }
 
       .label-box {
-        line-height: 14px;
+        padding: 8px;
+        line-height: 16px;
         text-align: center;
       }
     }
   }
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.3