From 93cbeb9dec38530d552de90f7b6e2949ed76ce8b Mon Sep 17 00:00:00 2001
From: zhangshuaibao <15731629597@163.com>
Date: 星期二, 16 三月 2021 18:29:41 +0800
Subject: [PATCH] Merge branch 'master' of http://xearth.cn:6600/r/wuyushui/SewerAndRainNetwork

---
 src/components/table/enterprise.vue |   26 ++++++++++++++++++++++----
 1 files changed, 22 insertions(+), 4 deletions(-)

diff --git a/src/components/table/enterprise.vue b/src/components/table/enterprise.vue
index f024ad2..4a38d1f 100644
--- a/src/components/table/enterprise.vue
+++ b/src/components/table/enterprise.vue
@@ -1,10 +1,11 @@
 <template>
     <div class="enterprise-panel">
         <div class="enterprise-function" @click="showWarnDialog()">
-            <img src="@/assets/images/map-pages/icon/map/warn.png" alt="" width="32px">
+            <div :class='["iconBtn",warnVisible ? "active" : ""]'><span><img src="@/assets/images/map-pages/icon/map/warn.png" alt="" width="26px" style="display: block;margin: auto"><span class="icon-name">棰勬姤璀�</span></span></div>
+
         </div>
         <div class="enterprise-function" @click="showStatisDialog()">
-            <img src="@/assets/images/map-pages/icon/map/company.png" alt="" width="32px">
+            <div :class='["iconBtn",companyVisible ? "active" : ""]'><span><img src="@/assets/images/map-pages/icon/map/company.png" alt="" width="26px" style="display: block;margin: auto"><span class="icon-name">鎸囨爣</span></span></div>
         </div>
         <Dialog ref="warnDialog" title="浼佷笟棰勮鎶ヨ鍒嗙被缁熻">
             <warn></warn>
@@ -28,7 +29,9 @@
   },
   data () {
     return {
-      comp: Warn
+      comp: Warn,
+      warnVisible: false,
+      companyVisible: false
     }
   },
   methods: {
@@ -38,9 +41,11 @@
     },
     showWarnDialog () {
       this.$refs.warnDialog.show()
+      this.warnVisible = true
     },
     showStatisDialog () {
       this.$refs.indexStatisticsDialog.show()
+      this.companyVisible = true
     }
   }
 }
@@ -54,9 +59,22 @@
     z-index: 9999;
 
     .enterprise-function{
-        width: 40px;
+        width: 50px;
         float: left;
         cursor: pointer;
     }
+    .iconBtn {
+        width:45px;
+        text-align: center;
+        background: rgba(0, 16, 30, 0.5);
+        cursor: pointer;
+        color: #00fff6;
+        border: 0.00521rem solid #00fff6;
+        box-shadow: 0 0 0.03rem #00fff6;
+    }
+    .active {
+        // border: 0.00521rem solid #fff700;
+        // box-shadow: 0 0 0.03rem #fff700;
+    }
 }
 </style>

--
Gitblit v1.8.0