| | |
| | | import { Op_SelectByPage, Op_Insert, Op_UpdateById, Img_SelectByPage, Img_DeleteByIds } from '../../../api/api.js' |
| | | import model from "../../../assets/js/Layer/model"; |
| | | import mapOL from "../../../assets/js/Layer/mapOL"; |
| | | import mapGeo from "../../../assets/js/Layer/mapGeo"; |
| | | // 工程树工具 |
| | | let _treeTool; |
| | | function arrGroup(arr, fn) { |
| | |
| | | if (isCheck) { |
| | | mapOL.addLayerData(treeNode); |
| | | } else { |
| | | mapOL.removeLayerD(treeNode); |
| | | mapOL.removeLayerData(treeNode); |
| | | } |
| | | }else if(treeNode.sourceType == "DrawGrid"){ |
| | | if (isCheck) { |
| | | mapGeo.addGridLayer(treeNode); |
| | | } else { |
| | | mapGeo.delGridLayer(treeNode); |
| | | } |
| | | } |
| | | // 只能同时加载一个地形 |
| | |
| | | mapOL.addLayerData(res); |
| | | } else if (res.sourceType == "imgUp" && res.checked) { |
| | | model.addImgUpLayer(res); |
| | | } |
| | | }else if(res.sourceType == "DrawGrid" && res.checked) { |
| | | mapGeo.addGridLayer(res); |
| | | } |
| | | }, |
| | | // 添加演示动画 |
| | | editDemoAnimation() { |
| | |
| | | if (this.selectNode.sourceType === "imgUp") { |
| | | this.removeimgUpData(this.selectNode) |
| | | } |
| | | if (this.selectNode.sourceType === "DrawGrid") { |
| | | mapGeo.removeGridData(this.selectNode) |
| | | } |
| | | this.remove(this.selectNode); |
| | | this.$refs.tree && this.$refs.tree.setCurrentKey(null); |
| | | this.selectNode = undefined; |