月球大数据地理空间分析展示平台-【前端】-月球2期前端
WX
2023-09-21 6435d34a649f7b00855a5fca975a3fed92230a89
src/views/baseMapSwitching/baseMapSwitching.vue
@@ -2,7 +2,7 @@
  <div class="baseMapSwitching">
    <div class="baseMapSwitchingTitle">
      <div class="tileLeft">
        <div class="titleImg">
        <div class="titleImg" @click="setCloseBaseMap">
          <ArrowLeft />
        </div>
        <div class="titleLable">投影图层管理</div>
@@ -42,6 +42,7 @@
import projection from "@/assets/js/Map/projectionServer";
import olMap from "@/assets/js/Map/olMap";
const emits = defineEmits(["setCloseBaseMap"]);
let list = ref([]);
const activceIndex = ref();
const setProjectionLayerChange = (res) => {
@@ -78,13 +79,19 @@
      return res;
    }
  });
  list.value = result.reverse();
  var val = result.sort(function (a, b) {
    return a.orderNum - b.orderNum;
  });
  list.value = val;
  setProjectionLayerChange(list.value[0]);
  // if (!activceIndex.value) {
  //   setProjectionLayerChange(list.value[0]);
  // }
};
getProjectionLayer();
const setCloseBaseMap = () => {
  emits("setCloseBaseMap", false);
};
</script>
<style lang="less" scoped>