From f0cf67e3f93bef082f2ca02139a7fe647b33e467 Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期三, 15 三月 2023 18:52:02 +0800 Subject: [PATCH] 优化图层管理的折叠会折叠其它的面板;优化柱状图属性界面;优化WMS图层加载效果;优化资料馆上传的附件,前端显示不出来效果;综合展示拾取功能 --- src/components/MapView/mapPickUpPop.vue | 87 ++++++++++++++++--------------------------- 1 files changed, 32 insertions(+), 55 deletions(-) diff --git a/src/components/MapView/mapPickUpPop.vue b/src/components/MapView/mapPickUpPop.vue index fb95e86..5dde04c 100644 --- a/src/components/MapView/mapPickUpPop.vue +++ b/src/components/MapView/mapPickUpPop.vue @@ -1,16 +1,6 @@ <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 @@ -45,6 +35,7 @@ dataQuery_selectByPage, inquiry_selectDomains, inquiry_selectFields, + dataQuery_selectByGid, dataQuerySelectWktById, sign_getPublicKey, dataLib_selectDownloadFile, @@ -60,23 +51,22 @@ export default { data() { return { - option:null, + option: null, tableData: [], - attributeData:[], - queryForm:{ - pageIndex:1, - pageSize:10, + attributeData: [], + queryForm: { + pageIndex: 1, + pageSize: 10, }, - pageCount:0, - pickupInfo:null, - optionx:[], - wkt:null, + pageCount: 0, + pickupInfo: null, + optionx: [], + wkt: null, } }, methods: { async getTableDateHidder() { - let name = this.pickupInfo.url.replaceAll("LF:",""); - name = name.replaceAll("_",""); + var name = this.$store.state.pickoption.name; const data = await inquiry_selectFields({ name: name }) if (data.code != 200) { this.$message.error("鍒楄〃璋冪敤澶辫触") @@ -114,45 +104,32 @@ }, 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) + const data = await dataQuery_selectByGid(this.$store.state.pickoption) if (data.code != 200) { - this.$message.error("鍒楄〃璋冪敤澶辫触") + return } + var valste = data.result - 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 - } + + 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 + + + this.tableData = [valste] + }, }, 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> @@ -191,7 +168,7 @@ } .rightBox { - width: calc(80% - 1px); + width: calc(100% - 1px); height: 100%; float: left; .rightTitle { @@ -200,8 +177,8 @@ width: 100%; } .tableBox { - position: relative; - height: 89%; + position: rela0ive; + height: 100%; } .rightPage { margin-left: 50px; -- Gitblit v1.9.3