| | |
| | | return request.post('/comprehensive/updateModel', params); |
| | | } |
| | | |
| | | //综åå±ç¤º=>æ¾å |
| | | export function selectByBuffer(params) { |
| | | return request.get('/inquiry/selectByBuffer', { params: params }); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | |
| | | polygonquery: 'Polygon Query', |
| | | attributequery: 'Attribute Query', |
| | | rangequery: 'Spatial query', |
| | | pickup: 'Pick up', |
| | | gpsrtk: 'GPS-RTK', |
| | | placenamelocation: 'Placename Location', |
| | | distancemeasure: 'Distance Measure', |
| | |
| | | polygonquery: 'å¤è¾¹å½¢æ¥è¯¢', |
| | | attributequery: '屿§æ¥è¯¢', |
| | | rangequery: 'ç©ºé´æ¥è¯¢', |
| | | pickup: 'æ¾å', |
| | | gpsrtk: 'åæ å®ä½', |
| | | placenamelocation: 'å°åå®ä½', |
| | | distancemeasure: 'è·ç¦»æµé', |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="menuPop"> |
| | | <div class="leftBox"> |
| | | <ul> |
| | | <li |
| | | v-for="(item, index) in option" |
| | | @click="setTableChange(item)" |
| | | class="leftBoxLi" |
| | | > |
| | | {{ item.cnName }} |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | <div class="rightBox"> |
| | | <div class="tableBox"> |
| | | <el-table |
| | | :data="tableData" |
| | | ref="dialogPayChannel" |
| | | height="100%" |
| | | style="width: 100%" |
| | | border |
| | | > |
| | | <el-table-column |
| | | align="center" |
| | | type="index" |
| | | label="åºå·" |
| | | width="50" |
| | | /> |
| | | <el-table-column |
| | | v-for="(item, index) in attributeData" |
| | | :key="index" |
| | | :label="item.alias" |
| | | :prop="item.field" |
| | | show-overflow-tooltip |
| | | align="center" |
| | | ></el-table-column> |
| | | </el-table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | dataQuery_selectByPage, |
| | | inquiry_selectDomains, |
| | | inquiry_selectFields, |
| | | dataQuerySelectWktById, |
| | | sign_getPublicKey, |
| | | dataLib_selectDownloadFile, |
| | | dataQuery_selectDbOverflowDep, |
| | | apply_insertApply, |
| | | decr, |
| | | encr, |
| | | dataLib_selectDepsByIds, selectByBuffer |
| | | } from '../../api/api.js' |
| | | import { getToken } from "@/utils/auth" |
| | | import $ from "jquery" |
| | | import { View } from "ol" |
| | | export default { |
| | | data() { |
| | | return { |
| | | option:null, |
| | | tableData: [], |
| | | attributeData:[], |
| | | queryForm:{ |
| | | pageIndex:1, |
| | | pageSize:10, |
| | | }, |
| | | pageCount:0, |
| | | pickupInfo:null, |
| | | optionx:[], |
| | | wkt:null, |
| | | } |
| | | }, |
| | | methods: { |
| | | async getTableDateHidder() { |
| | | let name = this.pickupInfo.url.replaceAll("LF:",""); |
| | | name = name.replaceAll("_",""); |
| | | const data = await inquiry_selectFields({ name: name }) |
| | | if (data.code != 200) { |
| | | this.$message.error("å表è°ç¨å¤±è´¥") |
| | | } |
| | | const data1 = await inquiry_selectDomains({ name: name }) |
| | | if (data1.code != 200) { |
| | | this.$message.error("å表è°ç¨å¤±è´¥") |
| | | } |
| | | this.optionx = [] |
| | | this.attributeData = [] |
| | | var valadata = data.result |
| | | var laydomain = data1.result |
| | | |
| | | for (var i in valadata) { |
| | | if (valadata[i].showtype == 1) { |
| | | if ( |
| | | valadata[i].domainNa != null && |
| | | valadata[i].domainNa != undefined |
| | | ) { |
| | | for (var j in laydomain) { |
| | | if (laydomain[j].domName == valadata[i].domainNa) { |
| | | valadata[i].domainNa = laydomain[j].codeDesc |
| | | } |
| | | } |
| | | } |
| | | this.optionx.push(valadata[i]) |
| | | this.attributeData.push(valadata[i]) |
| | | } |
| | | } |
| | | this.getTableData() |
| | | }, |
| | | setTableChange(res) { |
| | | this.pickupInfo = res; |
| | | this.getTableDateHidder() |
| | | }, |
| | | async getTableData() { |
| | | this.tableData = [] |
| | | let name = this.pickupInfo.url.replaceAll("LF:",""); |
| | | name = name.replaceAll("_",""); |
| | | let info = this.$store.state.pickUpPointInfo; |
| | | let params = { |
| | | buffer:10, |
| | | limit:20, |
| | | name:name, |
| | | wkt:`POINT (${info.lon} ${info.lat})`, |
| | | } |
| | | const data = await selectByBuffer(params) |
| | | if (data.code != 200) { |
| | | this.$message.error("å表è°ç¨å¤±è´¥") |
| | | } |
| | | |
| | | var val_Data = data.result |
| | | for (var i in val_Data) { |
| | | var valste = val_Data[i] |
| | | for (var j in this.optionx) { |
| | | if ( |
| | | this.optionx[j].domainNa != null && |
| | | this.optionx[j].domainNa != undefined |
| | | ) { |
| | | valste[this.optionx[j].field] = this.optionx[j].domainNa |
| | | } |
| | | } |
| | | } |
| | | this.pageCount = data.count |
| | | this.tableData = data.result |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.option = JSON.parse(sessionStorage.getItem("checkedLayers")); |
| | | this.pickupInfo = this.option.length > 0 ? this.option[0] : {}; |
| | | this.getTableDateHidder(); |
| | | this.$bus.$on("treeChanged", changed => { |
| | | if (changed){ |
| | | this.option = JSON.parse(sessionStorage.getItem("checkedLayers")); |
| | | } |
| | | }) |
| | | }, |
| | | } |
| | | </script> |
| | | |
| | | <style scoped lang="less"> |
| | | .menuPop { |
| | | width: 100%; |
| | | height: 100%; |
| | | margin: 0; |
| | | padding: 0; |
| | | overflow: hidden; |
| | | border: 1px solid gray; |
| | | float: left; |
| | | .leftBox { |
| | | width: 20%; |
| | | height: 100%; |
| | | overflow: auto; |
| | | float: left; |
| | | border-right: 1px solid gray; |
| | | li { |
| | | line-height: 20px; |
| | | border-bottom: 1px solid gray; |
| | | padding: 5px; |
| | | background: rgba(255, 255, 255, 0.2); |
| | | } |
| | | li:hover { |
| | | color: #409eff; |
| | | background: rgba(128, 128, 128, 0.2); |
| | | } |
| | | .leftDown { |
| | | width: 94%; |
| | | padding: 3%; |
| | | display: flex; |
| | | justify-content: flex-end; |
| | | } |
| | | } |
| | | |
| | | .rightBox { |
| | | width: calc(80% - 1px); |
| | | height: 100%; |
| | | float: left; |
| | | .rightTitle { |
| | | padding: 5px; |
| | | |
| | | width: 100%; |
| | | } |
| | | .tableBox { |
| | | position: relative; |
| | | height: 89%; |
| | | } |
| | | .rightPage { |
| | | margin-left: 50px; |
| | | /*ä¸å¯ç¹å»ç*/ |
| | | } |
| | | |
| | | .boxClose { |
| | | float: right; |
| | | margin-right: 20px; |
| | | } |
| | | } |
| | | } |
| | | |
| | | li { |
| | | line-height: 20px; |
| | | border-bottom: 1px solid gray; |
| | | padding: 5px; |
| | | } |
| | | </style> |
| | |
| | | propertiesFlag: null, |
| | | propertiesName: null, |
| | | propertiesInfo: null, |
| | | pickUpPointInfo: null, |
| | | |
| | | //主é¢åæ¢ |
| | | theme: variables.theme, |
| | |
| | | comprehensive_deletes, |
| | | comprehensive_selectModelByPageAndCount, |
| | | comprehensive_insertModel, |
| | | comprehensive_updateModel |
| | | } from "../../api/api.js"; |
| | | comprehensive_updateModel, selectByBuffer |
| | | } from '../../api/api.js' |
| | | import { |
| | | OverviewMap, |
| | | defaults as defaultControls, |
| | |
| | | name: "ç©ºé´æ¥è¯¢", |
| | | css: "twoMenu_imge52", |
| | | }, |
| | | { |
| | | id: "e3", |
| | | label: "synthesis.pickup", |
| | | name: "æ¾å", |
| | | css: "twoMenu_imge52", |
| | | }, |
| | | ], |
| | | [ |
| | | { |
| | |
| | | }], |
| | | modelClip:false, |
| | | clippingPlanes:null, |
| | | showPickUp:false, |
| | | }; |
| | | }, |
| | | methods: { |
| | |
| | | setIquery(res) { |
| | | switch (res) { |
| | | case "e2": |
| | | Viewer.screenSpaceEventHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK); |
| | | this.$store.state.mapMenuBoolean = !this.$store.state.mapMenuBoolean; |
| | | this.$store.state.mapMenuBoxFlag = "1"; |
| | | break; |
| | | case "e1": |
| | | Viewer.screenSpaceEventHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK); |
| | | this.$store.state.mapMenuBoolean = !this.$store.state.mapMenuBoolean; |
| | | this.$store.state.mapMenuBoxFlag = "2"; |
| | | break; |
| | | //æ¾ååè½ |
| | | case "e3": |
| | | this.$store.state.mapMenuBoolean = false; |
| | | this.showPickUp = !this.showPickUp; |
| | | if (this.showPickUp){ |
| | | let that = this; |
| | | Viewer.screenSpaceEventHandler.setInputAction(function (event) { |
| | | let p = sgworld.Navigate.getMouseDegrees(event); |
| | | console.log(p); |
| | | that.getPickUpData(p); |
| | | }, Cesium.ScreenSpaceEventType.LEFT_CLICK); |
| | | }else { |
| | | this.$refs.queryinfo.closeAll(); |
| | | Viewer.screenSpaceEventHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK); |
| | | } |
| | | break; |
| | | } |
| | | }, |
| | |
| | | handleAttatchChange(val) { |
| | | this.attacgSelection = val; |
| | | }, |
| | | //æ¾åæ°æ®è·å |
| | | async getPickUpData(info){ |
| | | let checkedLayers = JSON.parse(sessionStorage.getItem("checkedLayers")); |
| | | let showPop = false; |
| | | for (const item of checkedLayers) { |
| | | let name = item.url.replaceAll("LF:",""); |
| | | name = name.replaceAll("_",""); |
| | | let params = { |
| | | buffer:10, |
| | | limit:20, |
| | | name:name, |
| | | wkt:`POINT (${info.lon} ${info.lat})`, |
| | | } |
| | | const res = await selectByBuffer(params); |
| | | if (res.result && res.result.length > 0){ |
| | | this.$store.state.mapPopBoxFlag = "4"; |
| | | this.$store.state.pickUpPointInfo = info; |
| | | this.$refs && |
| | | this.$refs.queryinfo && |
| | | this.$refs.queryinfo.open("æ¾ååæ", null,); |
| | | showPop = true; |
| | | break; |
| | | } |
| | | } |
| | | if (!showPop){ |
| | | this.$message.warning("ææ æ°æ®!"); |
| | | } |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.measureData = new Map(); |
| | |
| | | img_layer.show = checked; |
| | | } |
| | | } |
| | | //åå¨éä¸å¾å± |
| | | let checkedLayers = JSON.parse(sessionStorage.getItem("checkedLayers")); |
| | | if (checked && data.url){ |
| | | checkedLayers.push(data); |
| | | } |
| | | else { |
| | | for (let i = 0; i < checkedLayers.length; i++) { |
| | | let item = checkedLayers[i]; |
| | | if (item.enName == data.enName){ |
| | | checkedLayers.splice(i,1); |
| | | } |
| | | } |
| | | } |
| | | sessionStorage.setItem("checkedLayers",JSON.stringify(checkedLayers)); |
| | | setTimeout(() => { |
| | | this.$bus.$emit("treeChanged", true); |
| | | }, 500) |
| | | } else if (data.serveType == "WFS") { |
| | | if (window.Viewer.dataSources._dataSources.length == 0) { |
| | | this.setAddLayers(data); |
| | |
| | | var std = data.result; |
| | | var that = this; |
| | | var checkKey = []; |
| | | let checkedLayers = []; |
| | | var val = std.filter((str) => { |
| | | if (str.type == 1) { |
| | | return str; |
| | |
| | | if (str.isShow == 1) { |
| | | checkKey.push(str.id); |
| | | that.setAddLayers(str); |
| | | if (str.serveType == "WMS" && str.url){ |
| | | checkedLayers.push(str); |
| | | } |
| | | } |
| | | return str; |
| | | } |
| | | }); |
| | | |
| | | //åå¨éä¸å¾å± |
| | | sessionStorage.setItem("checkedLayers",JSON.stringify(checkedLayers)); |
| | | var res = this.setTreeData(val); |
| | | |
| | | for (var i in res) { |
| | |
| | | > |
| | | <div> |
| | | <div style="width:940px;height:400px;"> |
| | | |
| | | <map-menu-pop v-if="$store.state.mapPopBoxFlag == '1'" /> |
| | | <map-space-pop v-if="$store.state.mapPopBoxFlag == '2'" /> |
| | | <pipe-line-analy v-if="$store.state.mapPopBoxFlag == '3'" /> |
| | | <map-pick-up-pop v-if="$store.state.mapPopBoxFlag == '4'" /> |
| | | </div> |
| | | </div> |
| | | </Popup> |
| | |
| | | import Popup from './Popup.vue'; |
| | | import mapMenuPop from '../../components/MapView/mapMenuPop.vue'; |
| | | import mapSpacePop from '../../components/MapView/mapSpacePop.vue'; |
| | | import mapPickUpPop from '../../components/MapView/mapPickUpPop'; |
| | | import pipeLineAnaly from './pipeLineAnaly.vue' |
| | | export default { |
| | | name: 'queryinfo', |
| | |
| | | Popup, |
| | | mapMenuPop, |
| | | mapSpacePop, |
| | | pipeLineAnaly |
| | | pipeLineAnaly, |
| | | mapPickUpPop |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | }; |
| | | </script> |
| | | |
| | | |
| | | |