From a9065e76152f447e7e6d2a8902fd1b82f4cf0c54 Mon Sep 17 00:00:00 2001
From: 徐旺旺 <11530253@qq.com>
Date: 星期二, 16 三月 2021 16:21:35 +0800
Subject: [PATCH] 图层控样式修改

---
 src/components/LayerController/modules/LcServiceLayer.vue |   24 +++++++++++++-----------
 1 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/src/components/LayerController/modules/LcServiceLayer.vue b/src/components/LayerController/modules/LcServiceLayer.vue
index 64b2361..fddacf6 100644
--- a/src/components/LayerController/modules/LcServiceLayer.vue
+++ b/src/components/LayerController/modules/LcServiceLayer.vue
@@ -1,11 +1,13 @@
 <template>
     <div class="inner-panel">
+        <div class="title">
+            鍥惧眰鎺у埗
+        </div>
         <div class="wms-panel">
             <div v-for="item in serviceLayers" :key="item.code" class="layerbox">
                 <div><input type="checkbox" :name="'wmsLayer_'+item.code" :checked="item.checked" :value="item.code"
                             @change="swAllLayers(item)"/>{{ item.name }} <span @click="swFilter(item)"
-                                                                               class="btn-filter">杩囨护</span><span @click="loadWfs()"
-                                                                                                                 class="btn-filter">娴嬭瘯</span>
+                                                                               class="btn-filter">杩囨护</span>
                 </div>
                 <div class="layerbox-item">
                     <div class="basemap-layer-item" v-for="itm in item.layers" :key="itm.code"><input type="checkbox"
@@ -56,7 +58,7 @@
     loadWfs () {
       var wfsHelper = new WfsHelper()
       wfsHelper.addTypeName('绠$嚎鐐�')
-      wfsHelper.appendEquals('pipename', '鐮旂┒闄�01璺痀S000001')
+      wfsHelper.addEquals('pipename', '鐮旂┒闄�01璺痀S000001')
 
       AjaxUtils.GetDataAsynByUrl(wfsHelper.getUrl(), {}, (res) => {
         console.log(res)
@@ -97,23 +99,23 @@
 
 <style scoped lang="less">
     .inner-panel {
-        display: flex;
-        justify-content: center;
-        align-items: center;
-
+        .title{
+            color: #ffffff;
+            font-size: 16px;
+            font-weight: 600;
+            margin: 10px;
+            text-align: center;
+        }
         .btn-filter {
             cursor: pointer;
             color: #ffffff;
         }
 
         .wms-panel {
-            display: flex;
-            flex-flow: column;
+            width: 250px;
 
             .layerbox {
                 width: 100%;
-                display: flex;
-                flex-flow: column;
 
                 .layerbox-item {
                     display: flex;

--
Gitblit v1.8.0