| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | |
| | | |
| | | <el-form-item> |
| | | <el-select |
| | | @change="changeValue($event)" |
| | |
| | | <queryinfo ref="queryinfo" /> |
| | | </div> |
| | | </template> |
| | | |
| | | |
| | | <script> |
| | | import queryinfo from "../../views/Tools/queryinfo.vue" |
| | | import $ from 'jquery'; |
| | |
| | | children: [], |
| | | }, |
| | | ], |
| | | |
| | | |
| | | queryOption: [ |
| | | { |
| | | value: 'point', |
| | |
| | | graphicLayer: null, |
| | | }; |
| | | }, |
| | | |
| | | |
| | | mounted() { |
| | | // sgworld.Creator.SimpleGraphic.edit(false, { editProp: false }); |
| | | |
| | | |
| | | this.menuTopFrom.queryType = 'rectangle'; |
| | | this.getAllTable(); |
| | | }, |
| | |
| | | this.$message.error('列表调用失败'); |
| | | } |
| | | var option = data.result; |
| | | |
| | | |
| | | for (var i in option) { |
| | | var val_Data = option[i]; |
| | | val_Data.id = '1' + i; |
| | |
| | | getCheckedNodes() { |
| | | var valTree = this.$refs.tree.getCheckedNodes(); |
| | | if (valTree.length == 0) return; |
| | | |
| | | |
| | | this.menuTopFrom.queryLayer = valTree[0].tabDesc; |
| | | for (var i = 0; i < valTree.length; i++) { |
| | | this.treeChange.push(valTree[i]); |
| | |
| | | this.treeChange = []; |
| | | this.menuTopFrom.queryLayer = null; |
| | | this.$refs.tree.setCheckedKeys([]); |
| | | |
| | | |
| | | }, |
| | | //导入shp文件 |
| | | async setMenuTopFile() { |
| | |
| | | } |
| | | } |
| | | if (count != 4) { |
| | | |
| | | |
| | | this.$message({ |
| | | message: 'ShapeFile文件选择不全!', |
| | | type: 'warning' |
| | |
| | | //清空标绘 |
| | | sgworld.Creator.SimpleGraphic.edit(false, { editProp: false }); |
| | | sgworld.Creator.SimpleGraphic.clear(); |
| | | |
| | | |
| | | if (this.treeChange.length == 0) { |
| | | this.$message.error('请选择要查询的数据'); |
| | | return; |
| | |
| | | break; |
| | | case 'polyline': //线 |
| | | var polyline = res.polyline.positions.getValue(); |
| | | |
| | | |
| | | that.setTurfPolyOrLine(polyline, 'polyline'); |
| | | break; |
| | | case 'rectangle': //矩形 |
| | |
| | | rectangle.height |
| | | ); |
| | | that.setTurfPolyOrLine(result, 'rectangle'); |
| | | |
| | | |
| | | break; |
| | | case 'circle': //圆 |
| | | var val = that.setCartesianToEightFour(res.position.getValue()); |
| | |
| | | } |
| | | this.setJonToWKT(restVal); |
| | | }, |
| | | |
| | | |
| | | setJonToWKT(res) { |
| | | console.log(res.geometry) |
| | | var jsonToWkt = this.$wkt.convert(res.geometry); |
| | | this.$store.state.mapMenuShpFile = encr(jsonToWkt); |
| | | |
| | | |
| | | this.showMapMenuPop(); |
| | | }, |
| | | showMapMenuPop() { |
| | |
| | | // 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() |
| | | } |
| | |
| | | this.menuTopFrom.queryType = 'rectangle'; |
| | | this.$refs.tree.setCheckedKeys([]); |
| | | |
| | | |
| | | // //清除对象 |
| | | // if (window.Viewer.scene.primitives.length != null) { |
| | | // window.Viewer.scene.primitives.removeAll(); |
| | | // } |
| | | // if (this.$store.state.primitLayer != null) { |
| | | // sgworld.Creator.DeleteObject(this.$store.state.primitLayer); |
| | | // this.$store.state.primitLayer = null; |
| | | // } |
| | | //关闭窗口 |
| | | this.$refs && this.$refs.queryinfo && this.$refs.queryinfo.close("queryinfo"); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | // //清除对象 |
| | | // if (window.Viewer.scene.primitives.length != null) { |
| | | // window.Viewer.scene.primitives.removeAll(); |
| | | // } |
| | | // if (this.$store.state.primitLayer != null) { |
| | | // sgworld.Creator.DeleteObject(this.$store.state.primitLayer); |
| | | // this.$store.state.primitLayer = null; |
| | | // } |
| | | //关闭窗口 |
| | | this.$refs && this.$refs.queryinfo && this.$refs.queryinfo.close("queryinfo"); |
| | | |
| | | |
| | | |
| | | |
| | | }, |
| | | setCartesianToEightFour(res) { |
| | | var std = {}; |
| | |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | |
| | | <style lang="less" scoped> |
| | | .menuBox { |
| | | width: 98%; |