文件名从 src/components/layerManager.vue 修改 |
| | |
| | | <div class="titleLable">鍥惧眰绠$悊</div> |
| | | </div> |
| | | <div class="titleImg set" |
| | | title="鏂板缓婕旂ず鏂规" |
| | | @click="setAddNewPlan"> |
| | | <Plus /> |
| | | @click="store.state.layerFlag = null" |
| | | title="鍏抽棴"> |
| | | <CloseBold /> |
| | | </div> |
| | | </div> |
| | | <div class="layerContent"> |
| | |
| | | children?: Tree[]; |
| | | } |
| | | const treeRef = ref<InstanceType<typeof ElTree>>(); |
| | | import { MoreFilled, Setting, Plus } from "@element-plus/icons-vue"; |
| | | import palyTools from "@/assets/js/palyTools"; |
| | | import configTool from "@/assets/js/configTool"; |
| | | import layerManager from "@/assets/js/layerManage"; |
| | | import { MoreFilled, Setting, CloseBold } from "@element-plus/icons-vue"; |
| | | import palyTools from "@/assets/js/tool/palyTools"; |
| | | import configTool from "@/assets/js/tool/configTool"; |
| | | import layerManager from "@/assets/js/map/layerManage"; |
| | | import axios from "axios"; |
| | | import store from "@/store"; |
| | | const treeData = ref([]); |
| | |
| | | }; |
| | | |
| | | const setTreeStart = () => { |
| | | axios.get("/data/json/SmartEarth.json").then((res) => { |
| | | var url = config.jsonUrl + "SmartEarth.json"; |
| | | axios.get(url).then((res) => { |
| | | setTreeDataStart(res.data); |
| | | }); |
| | | }; |
| | |
| | | |
| | | <style lang="less" scoped> |
| | | .layerBox { |
| | | width: 359px; |
| | | height: 680px; |
| | | width: 300px; |
| | | height: 600px; |
| | | background: rgba(7, 8, 14, 0.8); |
| | | box-shadow: inset 0px 10px 40px 10px rgba(38, 47, 71, 1); |
| | | z-index: 40; |
| | | |
| | | position: absolute; |
| | | z-index: 40; |
| | | top: 2%; |
| | | left: 1%; |
| | | z-index: 41; |
| | | top: 150px; |
| | | right: 1%; |
| | | |
| | | .layerTitle { |
| | | width: calc(100% - 27px); |
| | | height: 42px; |
| | | background: #0e151f; |
| | | box-shadow: 0px 0px 6px 0px #080c13, |
| | | 0px 14px 16px 0px rgba(38, 47, 71, 0.68); |
| | | background: #30bcff; |
| | | box-shadow: 0 2px 3px rgba(16, 133, 80, 0.5); |
| | | border-bottom: 1px solid #20bc74; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | padding-left: 7px; |
| | |
| | | height: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | color: rgba(104, 156, 255, 1); |
| | | color: #fff; |
| | | } |
| | | |
| | | .set { |
| | |
| | | } |
| | | |
| | | .layerContent { |
| | | height: 625px; |
| | | height: 525px; |
| | | padding: 0 8px; |
| | | overflow: auto; |
| | | overflow-y: auto; |
| | |
| | | |
| | | .layerContent::-webkit-scrollbar-thumb { |
| | | border-radius: 10px; |
| | | background: rgba(0, 0, 0, 0.2); |
| | | background: rgba(35, 47, 42, 0.8); |
| | | } |
| | | |
| | | .layerContent::-webkit-scrollbar-track { |
| | | border-radius: 0; |
| | | background: rgba(0, 0, 0, 0); |
| | | background: rgba(35, 47, 42, 0.8); |
| | | } |
| | | |
| | | .el-tree { |