| | |
| | | <template> |
| | | <div class="menuPop"> |
| | | <div style="padding: 5px"> |
| | | <el-form :inline="true" :model="formInline" class="demo-form-inline"> |
| | | <el-form |
| | | :inline="true" |
| | | :model="formInline" |
| | | class="demo-form-inline" |
| | | > |
| | | <el-form-item> |
| | | <el-select |
| | | v-model="formInline.name" |
| | |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button size="small" plain @click="setSpaceTableLayer" |
| | | >查询</el-button |
| | | > |
| | | <el-button plain size="small" @click="restSpacePopLayer" |
| | | >重置</el-button |
| | | > |
| | | <el-button |
| | | size="small" |
| | | plain |
| | | @click="setSpaceTableLayer" |
| | | >查询</el-button> |
| | | <el-button |
| | | plain |
| | | size="small" |
| | | @click="restSpacePopLayer" |
| | | >重置</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div class="centTable"> |
| | |
| | | label="序号" |
| | | width="50" |
| | | /> |
| | | <el-table-column label="定位" width="100" align="center"> |
| | | <el-table-column |
| | | label="定位" |
| | | width="100" |
| | | align="center" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | icon="el-icon-map-location" |
| | | size="small" |
| | | @click="spaceLocation(scope.$index, scope.row)" |
| | | ></el-button> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="柱状图" |
| | | width="100" |
| | | align="center" |
| | | v-show="spaceLayer== 'spaceLayer'" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | icon="el-icon-map-location" |
| | | size="small" |
| | | @click="spaceHistogram(scope.$index, scope.row)" |
| | | ></el-button> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | this.spaceLayer = this.$store.state.mapSpaceQueryLayer |
| | | // this.showSpacePopLayer(); |
| | | // this.getTableselectFields(); |
| | | |
| | | |
| | | this.getDomainsLayer() |
| | | }, |
| | | |
| | |
| | | this.tableData = data.result |
| | | this.$refs.filterTable.doLayout() |
| | | }, |
| | | async spaceHistogram(index, row) { |
| | | if (this.$store.state.histogramLayer.length != 0) { |
| | | for (var i in this.$store.state.histogramLayer) { |
| | | Viewer.entities.remove(this.$store.state.histogramLayer[i]) |
| | | } |
| | | } |
| | | var param = { |
| | | gid: row.gid, |
| | | name: this.spaceLayer, |
| | | } |
| | | const data1 = await dataQuerySelectWktById(param) |
| | | if (data1.code != 200) { |
| | | this.$message.error("列表调用失败") |
| | | } |
| | | |
| | | var val1 = decr(data1.result) |
| | | var wkt = this.$wkt.parse(val1) |
| | | var coord = wkt.coordinates |
| | | var obj = { |
| | | pageIndex: 1, |
| | | pageSize: 10, |
| | | name: 'sexplorationpointstratum', |
| | | filter: "exppointid = '" + row.exppointid + "'" |
| | | } |
| | | var data = await dataQuerySelectByPage(obj) |
| | | if (data.code != 200) { |
| | | } |
| | | if (data.result) { |
| | | var val = data.result; |
| | | //冒泡排序 |
| | | for (var i = 0; i < val.length; i++) { |
| | | for (var u = i + 1; u < val.length; u++) { |
| | | |
| | | if (val[i].botdepth > val[u].botdepth) { |
| | | var num = val[i]; |
| | | val[i] = val[u]; |
| | | val[u] = num; |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | var outlineList = [ |
| | | 'rgba(141,135,114,1)', |
| | | 'rgba(248,235,179,1)', |
| | | 'rgba(185,183,151,1)', |
| | | 'rgba(224,222,94,1)', |
| | | 'rgba(250,190,153,1)', |
| | | 'rgba(197,222,130,1)', |
| | | 'rgba(208,228,177,1)', |
| | | ] |
| | | |
| | | |
| | | var num = row.elev; |
| | | var height = 0; |
| | | |
| | | for (var i = 0; i < val.length; i++) { |
| | | var fill, line; |
| | | if (i > outlineList.length) { |
| | | var len = outlineList.length - 1; |
| | | fill = outlineList[len]; |
| | | line = outlineList[len]; |
| | | } else { |
| | | fill = outlineList[i]; |
| | | line = outlineList[i]; |
| | | } |
| | | |
| | | var height = num - val[i].botdepth |
| | | var layer = Viewer.entities.add({ |
| | | position: Cesium.Cartesian3.fromDegrees(coord[0], coord[1]), |
| | | ellipse: { |
| | | semiMinorAxis: 1.0, //短轴 |
| | | semiMajorAxis: 1.0, //长轴 |
| | | height: height, //拉伸高度 elev gwaterdep |
| | | extrudedHeight: num, //离地高度 |
| | | rotation: Cesium.Math.toRadians(0), //旋转 |
| | | fill: true, //是否显示圆的填充 |
| | | material: Cesium.Color.fromCssColorString(line), //圆的颜色, |
| | | outline: false, //是否显示圆轮廓 |
| | | |
| | | }, |
| | | }); |
| | | num -= val[i].botdepth; |
| | | this.$store.state.histogramLayer.push(layer) |
| | | sgworld.Navigate.flyToObj(layer) |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | }, |
| | | async spaceLocation(index, row) { |
| | | var param = { |
| | | gid: row.gid, |
| | |
| | | callback(); |
| | | } |
| | | }; |
| | | |
| | | // loginForm: { |
| | | // uid: "admin", |
| | | // pwd: "Admin@1234_lf", |
| | | // } |
| | | return { |
| | | validCode: "", |
| | | loading: false, |
| | | loginForm: { |
| | | uid: "admin", |
| | | pwd: "Admin@1234_lf", |
| | | uid: "", |
| | | pwd: "", |
| | | }, |
| | | rules: { |
| | | uid: [{ validator: validUserName, trigger: "blur" }], |
| | |
| | | this.getpublickey(); |
| | | }, |
| | | methods: { |
| | | handlePaste(e) { |
| | | e.preventDefault(); |
| | | }, |
| | | // 获取vuex中Actions里的方法 |
| | | ...mapActions(["login", "getpublickey"]), |
| | | getCode(data) { |
| | |
| | | mapSpaceQueryLayer: null, |
| | | mapMenuShpFile: null, |
| | | propertiesFlag: null, |
| | | propertiesName:null, |
| | | propertiesInfo:null, |
| | | propertiesName: null, |
| | | propertiesInfo: null, |
| | | |
| | | //主题切换 |
| | | theme: variables.theme, |
| | |
| | | treeData: null, |
| | | checkedKeys: [], |
| | | queryInfo: [], |
| | | Map3: [] |
| | | Map3: [], |
| | | histogramLayer: [] |
| | | }, |
| | | mutations: { |
| | | //获取权限合集 |
| | |
| | | } |
| | | |
| | | if (this.isMenuFlag != val) { |
| | | this.$store.state.mapMenuBoolean = false; |
| | | this.$store.state.mapMenuBoxFlag = null; |
| | | this.$store.state.mapPopBoolean = false; |
| | | this.$store.state.mapPopBoxFlag = null; |
| | | sgworld.Creator.SimpleGraphic.clear(); |
| | | this.isMenuFlag = val; |
| | | if (this.entityaLayers.length != 0) { |
| | | for (var i in this.entityaLayers) { |
| | | sgworld.Viewer.entities.remove(this.entityaLayers[i]); |
| | | if (res.id != 'b9') { |
| | | this.$store.state.mapMenuBoolean = false; |
| | | this.$store.state.mapMenuBoxFlag = null; |
| | | this.$store.state.mapPopBoolean = false; |
| | | this.$store.state.mapPopBoxFlag = null; |
| | | sgworld.Creator.SimpleGraphic.clear(); |
| | | this.isMenuFlag = val; |
| | | if (this.entityaLayers.length != 0) { |
| | | for (var i in this.entityaLayers) { |
| | | sgworld.Viewer.entities.remove(this.entityaLayers[i]); |
| | | } |
| | | this.entityaLayers = []; |
| | | } |
| | | this.entityaLayers = []; |
| | | for (var i in this.$store.state.queryInfo) { |
| | | sgworld.Viewer.entities.remove(this.$store.state.queryInfo[i]); |
| | | } |
| | | this.$store.state.queryInfo = []; |
| | | if (this.$store.state.primitLayer != null) { |
| | | sgworld.Viewer.entities.remove(this.$store.state.primitLayer); |
| | | sgworld.Creator.DeleteObject(this.$store.state.primitLayer); |
| | | this.$store.state.primitLayer = null; |
| | | } |
| | | } |
| | | for (var i in this.$store.state.queryInfo) { |
| | | sgworld.Viewer.entities.remove(this.$store.state.queryInfo[i]); |
| | | } |
| | | this.$store.state.queryInfo = []; |
| | | if (this.$store.state.primitLayer != null) { |
| | | sgworld.Viewer.entities.remove(this.$store.state.primitLayer); |
| | | sgworld.Creator.DeleteObject(this.$store.state.primitLayer); |
| | | this.$store.state.primitLayer = null; |
| | | } |
| | | |
| | | } |
| | | this.showTwoMenuFlag = res.id; |
| | | |
| | |
| | | > |
| | | <i class="el-icon-tickets"></i> 定位 |
| | | </div> |
| | | <div |
| | | class="edit" |
| | | @click="histogram()" |
| | | v-show="shwoHistogram" |
| | | > |
| | | <i class="el-icon-tickets"></i> 转孔柱状图 |
| | | </div> |
| | | <!-- <div |
| | | class="edit" |
| | | @click="menuMoveF( 'up')" |
| | |
| | | |
| | | import View from "ol/View.js"; |
| | | import { Fill, Stroke, Style } from "ol/style.js"; |
| | | import { perms_selectLayers } from "../../api/api.js"; |
| | | import { perms_selectLayers, inquiry_selectDomains } from "../../api/api.js"; |
| | | export default { |
| | | name: "tree", |
| | | components: { queryinfo }, |
| | | data() { |
| | | return { |
| | | shwoHistogram: false, |
| | | showlocal: false, |
| | | eleId: "", |
| | | isShow: false, |
| | |
| | | }; |
| | | }, |
| | | methods: { |
| | | //转孔柱状图 |
| | | async histogram() { |
| | | this.menuVisible = false |
| | | var layer = this.currentData.enName.replaceAll("_", ""); |
| | | this.$store.state.mapSpaceQueryLayer = layer; |
| | | 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(); |
| | | } |
| | | }, |
| | | }); |
| | | }, |
| | | NodeBlur(Node, data) { |
| | | if (data.label.length === 0) { |
| | | this.$message.error("菜单名不可为空!"); |
| | |
| | | rightClick(event, object, Node, element) { |
| | | this.currentData = object; |
| | | this.currentNode = Node; |
| | | if (this.currentData.enName == "s_explorationpoint") { |
| | | this.shwoHistogram = true; |
| | | } else { |
| | | this.shwoHistogram = false; |
| | | } |
| | | if (Node.level === 3) { |
| | | this.firstLevel = false; |
| | | } else { |
| | |
| | | }, |
| | | // 增加同级节点事件 |
| | | addSameLevelNode() { |
| | | this.menuVisible = false |
| | | this.foo(); |
| | | if (this.currentNode.level == 2) { |
| | | this.appendNodetitle = this.currentData.label; |
| | |
| | | // 增加子级节点事件 |
| | | addChildNode() { |
| | | this.foo(); |
| | | this.menuVisible = false |
| | | // if (this.currentNode.level >= 2) { |
| | | // this.$message.error("最多只支两级!"); |
| | | // return false; |
| | |
| | | // 删除节点 |
| | | deleteNode() { |
| | | this.foo(); |
| | | this.menuVisible = false |
| | | var label = this.currentNode.data.cnName; |
| | | if (this.currentNode.data.serveType == "WMS") { |
| | | for (var i in window.Viewer.imageryLayers._layers) { |
| | |
| | | //属性显示 |
| | | showLayerAttribute(data) { |
| | | this.foo(); |
| | | this.menuVisible = false |
| | | this.currentData = data ? data : this.currentData; |
| | | var layer = this.currentData.enName.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 && |
| | |
| | | }, |
| | | //模型定位 |
| | | positioning() { |
| | | this.menuVisible = false |
| | | for (var i in Viewer.scene.primitives._primitives) { |
| | | if ( |
| | | Viewer.scene.primitives._primitives[i].id == this.currentData.cnName |
| | |
| | | // 编辑节点 |
| | | editNode(data) { |
| | | this.foo(); |
| | | this.menuVisible = false |
| | | this.currentData = data ? data : this.currentData; |
| | | if (!this.currentData.isEdit) { |
| | | this.$set(this.currentData, "isEdit", true); |
| | |
| | | sgworld.Creator.DeleteObject(this.$store.state.primitLayer); |
| | | this.$store.state.primitLayer = null |
| | | } |
| | | |
| | | if (this.$store.state.histogramLayer.length != 0) { |
| | | for (var i in this.$store.state.histogramLayer) { |
| | | Viewer.entities.remove(this.$store.state.histogramLayer[i]) |
| | | } |
| | | } |
| | | }, |
| | | // 打开弹窗 |
| | | open(title, value, style = {}) { |
| | |
| | | "bs.m_equipment_nameplate", |
| | | "bs.m_hydraulic_protection", |
| | | "bs.m_marker", |
| | | "bs.s_borehole", |
| | | "bs.s_explorationpoint", |
| | | ]; |
| | | var std = []; |
| | | this.enclosureData = []; |