From 08ba25b66a00c35e78c5b16f9aaae061760402d3 Mon Sep 17 00:00:00 2001 From: Esacpe <1113279529@qq.com> Date: Tue, 22 Jul 2025 09:37:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/GdMap/index.vue | 57 +-- src/components/GdMap/indexww.vue | 348 ++++++++++++++++++ .../JudgmentHome/tsypHome/index.vue | 17 +- 3 files changed, 397 insertions(+), 25 deletions(-) create mode 100644 src/components/GdMap/indexww.vue diff --git a/src/components/GdMap/index.vue b/src/components/GdMap/index.vue index 229bc71..32ff62e 100644 --- a/src/components/GdMap/index.vue +++ b/src/components/GdMap/index.vue @@ -1,7 +1,8 @@ @@ -74,7 +74,7 @@ const props = defineProps({ }); try { const userInfo = getItem("deptId")[0].deptCode; -} catch (error) {} +} catch (error) { } let map; let mapLayer; let mapLayer1; @@ -85,30 +85,36 @@ onMounted(() => { box[0].style.right = !res ? "4px" : "398px"; box[0].style.transition = "0.5s"; }); - + map = new EliMap({ id: props.mapid, - crs: "EPSG:3857", + crs: "EPSG:4490", style: { glyphs: "./fonts/{fontstack}/{range}.pbf", - center: [94.36,29.65], - zoom: 10 + center: [94.36057012, 29.64276831], + zoom: 15 }, - transformRequest: (url) => { - if (url.indexOf("TileMatrix=") != -1) { - const arr = url.split("TileMatrix="); - const arr1 = arr[1].split("&"); - const nurl = `${arr[0]}&TileMatrix=${Number(arr1[0])}&${arr1[1]}&${arr1[2]}`; - - } - } + minZoom: 7, + maxZoom: 18, }); - window.map = map; map.mapboxGLMap.on("load", () => { - map.addGaudLayer({ - url: 'http://webrd02.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}', - }) + map.addWMTSLayer( + "/PGIS_S_TileMapServer/Maps/XZDJ_SL/EzMap" + , + { + Service: "getImage", + Type: "RGB", + ZoomOffset: "0", + V: "0.3", + Zoom: "{z}", + Row: "{y}", + Col: "{x}" + }, + { + tileSize: 300 + } + ); zoomTarget.value = map.mapboxGLMap.getZoom(); }); mapUtil.value = new MapUtil(map); @@ -253,7 +259,6 @@ const mapSetLayer = (id, source) => { //获取地图绘制的数据 const resFun = (coord, type, flag, data) => { - emitter.emit("coordString", { coord: coord, type: type, @@ -318,29 +323,35 @@ onUnmounted(() => { right: 398px; bottom: 4px; z-index: 9; + .mapImageItem { border: 1px solid #08aae8; background: rgb(9, 26, 70); - & > img { + + &>img { width: 100%; height: 50px; } - & > div { + + &>div { text-align: center; position: relative; top: -3px; } } + .zoomTargetBox { margin-top: 10px; margin-left: 23px; } + ::v-deep .el-input-number__decrease, ::v-deep .el-input-number__increase { background: #133362; color: #fff; border: none; } + ::v-deep .el-input__inner { background: #0c1641; } diff --git a/src/components/GdMap/indexww.vue b/src/components/GdMap/indexww.vue new file mode 100644 index 0000000..229bc71 --- /dev/null +++ b/src/components/GdMap/indexww.vue @@ -0,0 +1,348 @@ + + + + + diff --git a/src/views/backOfficeSystem/JudgmentHome/tsypHome/index.vue b/src/views/backOfficeSystem/JudgmentHome/tsypHome/index.vue index fe0a28d..d9205d8 100644 --- a/src/views/backOfficeSystem/JudgmentHome/tsypHome/index.vue +++ b/src/views/backOfficeSystem/JudgmentHome/tsypHome/index.vue @@ -117,18 +117,31 @@ const load = () =>{ console.log('加载'); } - +// 数据类型 const changeData_sjly = (val) =>{ checkData.sjlxBtn.hasChoose = val; + let dms = []; + D_SG_SJLY.value.forEach(item => { + if(val.includes(item.zdmc)) dms.push(item.dm); + }); + formData.value.sjLx = dms.join(',') } + +// 研判类型 const changeData_yplx = (val) =>{ checkData.yplxBtn.hasChoose = val; + let dms = []; + D_SG_TSYPGZ.value.forEach(item => { + if(val.includes(item.zdmc)) dms.push(item.dm); + }); + formData.value.ypLx = dms.join(',') } const getLits = () =>{ let params = { pageCurrent:page.value, - pageSize:8 + pageSize:8, + ...formData.value } loading.value = true; qcckGet(params,'/mosty-gsxt/tsyp/selectPage').then(res=>{