派生自 wuyushui/SewerAndRainNetwork

徐旺旺
2021-03-03 1ff1c00897275d4fd4f294696fa1524426898f6d
修改图层控制
3个文件已修改
52 ■■■■■ 已修改文件
src/components/LayerController/LayerController.vue 46 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/LayerController/modules/LcServiceLayer.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/LayerController/modules/LcServiceLayerFilter.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/LayerController/LayerController.vue
@@ -2,26 +2,17 @@
  <div class="float-panel">
<!--    <i class="horn horn-br"></i>-->
<!--    <i class="horn horn-bl"></i>-->
    <div class="head title-border">
      <div class="title-text-border">
        <div class="title-text-border" @click="switchPanel">
        <div class="title-icon"></div>
        <div class="title-text">业务看板</div>
        <div class="title-button" :class="{'switch-head-up':true, 'switch-head-down': !panelSwitch.main}"
             @click="switchPanel">
          <!-- <i class="el-icon-arrow-down"></i> -->
        </div>
      </div>
    </div>
    <div class="body-box" id="panelContent">
      <div id="panelInnerContent" :style="{ height:height }">
        <transition name="el-fade-in">
        <transition name="el-fade-in-linear">
            <div class="body-box" id="panelContent" :style="{ width:width }">
          <div v-show="isShow">
            <slot></slot>
          </div>
            </div>
        </transition>
      </div>
    </div>
  </div>
</template>
@@ -56,7 +47,7 @@
  },
  data () {
    return {
      height: '200px',
      width: '250px',
      isShow: true,
      icons: {
        setting: iconSetting
@@ -89,10 +80,10 @@
    switchPanel () {
      this.panelSwitch.main = !this.panelSwitch.main
      if (this.panelSwitch.main) {
        this.height = '200px'
        this.width = '250px'
        this.isShow = true
      } else {
        this.height = '0px'
        this.width = '0px'
        this.isShow = false
      }
    }
@@ -106,7 +97,6 @@
  position: absolute;
  left: 10px;
  top: 45%;
  width: 230px;
  height: auto;
  font-size: 11px;
  z-index: 1000;
@@ -115,10 +105,6 @@
    color: #90c8e0;
  }
  #panelInnerContent {
    overflow: hidden;
    transition: all 0.5s linear;
  }
  .title-border {
    width: 100%;
    height: 28px;
@@ -153,11 +139,12 @@
  }
  .title-text-border {
    width: 100%;
    height: 28px;
            width: 30px;
            height: 120px;
            float: left;
    background: #091331;
    -webkit-clip-path: polygon(1px 1px, 1px 27px, 229px 27px, 229px 10px, 94px 10px, 85px 1px);
    clip-path: polygon(1px 1px, 1px 27px, 229px 27px, 229px 10px, 94px 10px, 85px 1px);
            // -webkit-clip-path: polygon(1px 1px, 1px 27px, 229px 27px, 229px 10px, 94px 10px, 85px 1px);
            // clip-path: polygon(1px 1px, 1px 27px, 229px 27px, 229px 10px, 94px 10px, 85px 1px);
  }
  .title-icon {
@@ -170,14 +157,12 @@
  }
  .title-text {
    float: left;
    width: 150px;
            width: 25px;
    color: #00d0f9;
    margin-left: 4px;
    line-height: 20px;
    font-weight: bold;
    margin-top: 6px;
    text-align: left;
            text-align: center;
            font-size: 14px;
    filter: brightness(100%);
    text-shadow: 0 0 5px #00d0f9, 0 0 0 #00d0f9, 0 0 0 #00d0f9, 0 0 0 #0258c5, 0 0 0 #0258c5, 0 0 2px #0258c5, 0 0 5px #0258c5, 0 0 15px #0258c5;
  }
@@ -219,6 +204,7 @@
    background-color: rgba(44, 62, 80, 0.6);
    border: 1px solid #10488c;
    margin-top: -1px;
            margin-left: 30px;
    height: auto;
  }
src/components/LayerController/modules/LcServiceLayer.vue
@@ -4,8 +4,7 @@
            <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"
src/components/LayerController/modules/LcServiceLayerFilter.vue
@@ -77,8 +77,7 @@
        font-size: 13px;
        position: absolute;
        left: 250px;
        bottom: 10px;
        left: 300px;
        z-index: 1000;
        height: 220px;