From 672f791281b80a61dbda7d2c2d426dd90b31b982 Mon Sep 17 00:00:00 2001
From: ChenZeping02609 <chenzeping02609@163.com>
Date: 星期四, 13 五月 2021 16:42:23 +0800
Subject: [PATCH] Merge branch 'develop' of http://xearth.cn:6600/r/wuyushui/SewerAndRainNetwork into develop

---
 src/components/LayerController/modules/LcServiceLayer.vue |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/src/components/LayerController/modules/LcServiceLayer.vue b/src/components/LayerController/modules/LcServiceLayer.vue
index ad6142f..4bd7e82 100644
--- a/src/components/LayerController/modules/LcServiceLayer.vue
+++ b/src/components/LayerController/modules/LcServiceLayer.vue
@@ -9,12 +9,12 @@
                     <div style="padding-left:25px;padding-top:10px;color:#fff;font-size: 16px;">
                         <input type="checkbox"  :class="item.type==1?'active':''" :name="'wmsLayer_'+item.code" :checked="item.checked" :value="item.code" @change="swAllLayers(item)"/>{{ item.name }}
                     </div>
-                    <div class="layerbox-item" v-show="item.isShow">
+                    <div class="layerbox-item" v-show="item.isShow" >
                         <!-- 浜岀骇鍥惧眰閬嶅巻 -->
-                        <div class="basemap-layer-item" v-for="(itm,index2) in item.layers" :key="index2">
+                        <div class="basemap-layer-item" v-for="(itm,index2) in item.layers" :key="index2" :class="!itm.layers?'felxs':''" >
                             <input type="checkbox" :class="itm.type==1?'active':''" :name="'wmsSublayers_'+item.code+'_'+itm.code" :checked="itm.checked" :value="itm.code" @change="swAllLayers(itm)"/>{{ itm.name }}
                             <!-- 涓夌骇鍥惧眰閬嶅巻 -->
-                            <div class="layerbox-item-3">
+                            <div class="layerbox-item-3" v-show="itm.layers">
                                 <div class="basemap-layer-item" v-for="(layer,index3) in itm.layers" :key="index3">
                                     <input type="checkbox"
                                            :class="layer.type==1?'active':''"
@@ -90,6 +90,10 @@
           } else {
             item1.type = 1 // 鍗婇��
           }
+          if (item1.name === '浼佷笟搴旀��') {
+            console.log(item1)
+            bus.$emit('changeSearchBar', item1)
+          }
           // console.log(item1.layers.length, item1.istrue, item1.isfalse, item1.type)
         }
       })
@@ -125,6 +129,11 @@
             cursor: pointer;
             color: #ffffff;
         }
+        .felxs{
+            display: flex;
+            flex-wrap:wrap;
+            width: 50% !important;
+        }
 
         .wms-panel {
 
@@ -156,9 +165,12 @@
                 }
                 .downUp:hover{font-size: 26px;font-weight: 900}
                 .layerbox-item {
-                    padding-left: 0.1rem;
+                    padding-left: 25px;
                     padding-top: 5px;
+                    display: flex;
+                    flex-wrap:wrap;
                     .basemap-layer-item {margin-bottom: 5px;
+                        width: 100%;
                       input[type="checkbox"]{width:10px;height:10px;display: inline-block;text-align: center;vertical-align: middle; line-height: 10px;position: relative;}
                       input[type="checkbox"]::before{content: "";position: absolute;top: 0;left: 0;background: #fff;width: 100%;height: 100%;border: 1px solid #d9d9d9}
                       input[type="checkbox"]:checked::before{content: "\2713";background-color: @color-highlight;position: absolute;top: 0;left: 0;width:100%;border: 1px solid #fff700;

--
Gitblit v1.8.0