| | |
| | | > |
| | | <i class="el-icon-edit"></i> 修改节点 |
| | | </div> |
| | | <div |
| | | class="edit" |
| | | @click="showLayerAttribute()" |
| | | > |
| | | <i class="el-icon-edit"></i> 属性 |
| | | </div> |
| | | <!-- <div |
| | | class="edit" |
| | | @click="menuMoveF( 'up')" |
| | |
| | | >确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <queryinfo ref="queryinfo" /> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import Image from 'ol/layer/Image'; |
| | | import GeoJSON from 'ol/format/GeoJSON.js'; |
| | | import Map from 'ol/Map.js'; |
| | | |
| | | import queryinfo from './queryinfo.vue'; |
| | | import { Vector as VectorSource } from "ol/source"; |
| | | import { Vector as VectorLayer, } from "ol/layer"; |
| | | |
| | |
| | | import { perms_selectLayers } from '../../api/api.js' |
| | | export default { |
| | | name: 'tree', |
| | | components: { queryinfo }, |
| | | data() { |
| | | return { |
| | | eleId: '', |
| | |
| | | |
| | | this.$refs.tree.remove(this.currentNode); |
| | | }, |
| | | //属性显示 |
| | | showLayerAttribute(data) { |
| | | this.foo(); |
| | | this.currentData = data ? data : this.currentData; |
| | | var layer = this.currentData.layer.replaceAll('_', ""); |
| | | this.$store.state.mapSpaceQueryLayer = layer; |
| | | // this.$store.state.mapPopBoolean = true; |
| | | this.$store.state.mapPopBoxFlag = '2'; |
| | | this.$refs && this.$refs.queryinfo && this.$refs.queryinfo.close(); |
| | | this.$refs && this.$refs.queryinfo && this.$refs.queryinfo.open("属性", null, { |
| | | close: () => { |
| | | |
| | | if (this.$store.state.primitLayer != null) { |
| | | sgworld.Creator.DeleteObject(this.$store.state.primitLayer); |
| | | this.$store.state.primitLayer = null; |
| | | } |
| | | |
| | | if (window.Viewer.scene.primitives.length != 0) { |
| | | window.Viewer.scene.primitives.removeAll() |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | // 编辑节点 |
| | | editNode(data) { |
| | | |
| | |
| | | return this.$message.error("图层列表查询失败"); |
| | | |
| | | } |
| | | |
| | | this.newData = data.result; |
| | | this.oriData = data.result; |
| | | var std = []; |
| | |
| | | } else if (data.result[i].type == 2) { |
| | | |
| | | if (data.result[i].url != null) { |
| | | |
| | | var layer_entity = { |
| | | id: data.result[i].id, |
| | | pid: data.result[i].pid, |
| | |
| | | resource: data.result[i].url, |
| | | type: data.result[i].type, |
| | | isEdit: false, |
| | | layer: data.result[i].enName, |
| | | layerType: data.result[i].serveType |
| | | } |
| | | layer_list.push(layer_entity) |