月球大数据地理空间分析展示平台-【前端】-月球2期前端
src/views/layer/layerManage.vue
@@ -1,18 +1,31 @@
<template>
  <div v-drag class="layerBox">
  <div
    v-drag
    class="layerBox"
  >
    <div class="layerTitle">
      <div class="tileLeft">
        <div class="titleImg">
        <div
          @click="setCloseLayer"
          class="titleImg"
        >
          <ArrowLeft />
        </div>
        <div class="titleLable">图层管理</div>
      </div>
      <div class="titleImg set" @click="layerSetBox">
      <div
        class="titleImg set"
        @click="layerSetBox"
      >
        <Setting />
      </div>
    </div>
    <div class="layerContent">
      <div class="contentBox" v-for="(item, i) in menuOption" :key="i">
      <div
        class="contentBox"
        v-for="(item, i) in menuOption"
        :key="i"
      >
        <div class="contentTile">
          <div class="contentLeft">
            <div class="contentImg"></div>
@@ -23,8 +36,7 @@
              <el-checkbox
                @change="handlCheckAllChange(item)"
                v-model="item.checkedAll"
                >全部选中</el-checkbox
              >
              >全部选中</el-checkbox>
            </div>
            <div>
              <div
@@ -36,15 +48,24 @@
          </div>
        </div>
        <div class="content" v-show="item.isShow">
          <div class="layer_box" v-for="(v, k) in item.children" :key="k">
        <div
          class="content"
          v-show="item.isShow"
        >
          <div
            class="layer_box"
            v-for="(v, k) in item.children"
            :key="k"
          >
            <div class="check_box">
              <el-checkbox
                @change="handlCheckAllChange(item)"
                v-model="v.layerState"
                >{{ v.layerName }}</el-checkbox
              >
              <img src="../../assets/img/layer.png" alt="" />
              >{{ v.layerName }}</el-checkbox>
              <img
                src="../../assets/img/layer.png"
                alt=""
              />
            </div>
            <div class="slider-demo-block">
              <div class="demonstration">透明度</div>
@@ -72,7 +93,10 @@
      </div>
    </div>
  </div>
  <layer-set v-show="layerSetIsshow" @SETstate="SETstate"></layer-set>
  <layer-set
    v-show="layerSetIsshow"
    @SETstate="SETstate"
  ></layer-set>
</template>
<script lang="ts" setup>
@@ -131,7 +155,7 @@
  },
]);
const layerSetIsshow = ref(false);
const emits = defineEmits(["setCloseLayer"]);
const handlCheckAllChange = (res) => {};
const handlIsShow = (res: string) => {
  menuOption.forEach((e) => {
@@ -148,6 +172,9 @@
const SETstate = (res) => {
  layerSetIsshow.value = res;
};
const setCloseLayer = () => {
  emits("setCloseLayer", false);
};
</script>
<style lang="less" scoped>
@@ -155,6 +182,7 @@
  width: 359px;
  height: 680px;
  background: rgba(7, 8, 14, 0.8);
  box-shadow: inset 0px 10px 40px 10px rgba(38, 47, 71, 1);
  .layerTitle {
    width: calc(100% - 27px);
    height: 42px;
@@ -172,7 +200,7 @@
      align-items: center;
      .titleLable {
        font-size: 24px;
        font-size: 18px;
        font-family: Source Han Sans CN;
        font-weight: 400;
        color: #ffffff;
@@ -216,9 +244,11 @@
        margin-left: 16px;
      }
      .contentLabel {
        font-size: 20px;
        font-size: 16px;
        font-family: Source Han Sans CN;
        font-weight: 300;
        margin-bottom: 5px;
        color: #ffffff;
        margin-left: 7px;
      }
@@ -229,6 +259,9 @@
      align-items: center;
      .contentCheck {
        margin-right: 12px;
        /deep/.el-checkbox__label {
          font-size: 14px;
        }
      }
      .contentUP {
        width: 18px;
@@ -300,6 +333,7 @@
    background-size: 100% 100%;
    border-radius: 0;
  }
  .selectBox {
    margin-top: 24px;
    .selectTile {
@@ -310,4 +344,7 @@
    }
  }
}
/deep/.el-select-dropdown__item {
  font-size: 12px !important;
}
</style>