From 04e2c2e8f79368c462bc13c285c349cb9d387bde Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期四, 13 四月 2023 18:07:49 +0800 Subject: [PATCH] 图层管理修改,项目管理修改 --- src/views/Tools/LayerTree.vue | 7 ++++--- src/components/ProjectOl.vue | 11 ++++++++++- src/views/datamanage/dataUpdata.vue | 7 ++++++- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/src/components/ProjectOl.vue b/src/components/ProjectOl.vue index ce9bc12..285d7ac 100644 --- a/src/components/ProjectOl.vue +++ b/src/components/ProjectOl.vue @@ -73,11 +73,20 @@ }, methods: { initOlMap() { + + + var val = 'http://{host}/LFData/2d/tiles/img/{z}/{x}/{y}.png'; + if (val.indexOf('{host}') > -1) { + val = val.replace("{host}", iisHost) + } var vectorLayer = new TileLayer({ source: new XYZ({ - url: 'http://wprd0{1-4}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=7&x={x}&y={y}&z={z}', + url: val, }), }); + + + this.mapol = new Map({ target: 'mapView', layers: [vectorLayer], diff --git a/src/views/Tools/LayerTree.vue b/src/views/Tools/LayerTree.vue index 48f357e..4459ab7 100644 --- a/src/views/Tools/LayerTree.vue +++ b/src/views/Tools/LayerTree.vue @@ -330,14 +330,15 @@ } else { this.shwoHistogram = false; } - if (Node.level === 3) { + + if (Node.data.children == null) { this.firstLevel = false; } else { this.firstLevel = true; } - if (Node.level === 3 && Node.data.serveType == "Tileset") { + if (Node.data.children == null && Node.data.serveType == "Tileset") { this.showlocal = true; - } else if (Node.level === 3 && Node.data.serveType != "Tileset") { + } else if (Node.data.children == null && Node.data.serveType != "Tileset") { this.showlocal = false; } this.menuVisible = true; diff --git a/src/views/datamanage/dataUpdata.vue b/src/views/datamanage/dataUpdata.vue index 3a9a5fd..a3be7b5 100644 --- a/src/views/datamanage/dataUpdata.vue +++ b/src/views/datamanage/dataUpdata.vue @@ -1384,6 +1384,7 @@ :visible.sync="warehouseDialog" width="70%" :close-on-click-modal="false" + :before-close="handleWarehouseClose" > <div style="height:65vh"> <el-table @@ -1660,7 +1661,7 @@ label1: '涓婁紶', label2: '鏂囦欢涓婁紶杩涘害锛�' }, - warehouseDialog: true, + warehouseDialog: false, wareData: [], }; }, @@ -2051,6 +2052,10 @@ this.setInsrtWareTableClose(); }, + handleWarehouseClose() { + this.warehouseDialog = false; + this.wareData = []; + }, //鑷姩鍖归厤 autoMatchWare() { var val1 = this.tableWareOne; -- Gitblit v1.9.3