From 89704ee205b06e12fd3f313daa23647c5086055a Mon Sep 17 00:00:00 2001 From: lcw <1878680531@qq.com> Date: Mon, 28 Jul 2025 11:16:35 +0800 Subject: [PATCH] lcw --- public/index.html | 3 +- src/api/mosty-jmxf.js | 2 + src/components/GdMap/index copy.vue | 371 ++++++ src/components/GdMap/index.vue | 66 +- .../qwManagement/qcgl/fkqc/index.vue | 5 +- .../qwgl/components/jmqw copy.vue | 1038 +++++++++++++++++ .../qwManagement/qwgl/components/jmqw.vue | 16 +- vue.config.js | 2 +- 8 files changed, 1446 insertions(+), 57 deletions(-) create mode 100644 src/api/mosty-jmxf.js create mode 100644 src/components/GdMap/index copy.vue create mode 100644 src/views/backOfficeSystem/qwManagement/qwgl/components/jmqw copy.vue diff --git a/public/index.html b/public/index.html index 845c13a..fc45a55 100644 --- a/public/index.html +++ b/public/index.html @@ -27,8 +27,7 @@ - - + diff --git a/src/api/mosty-jmxf.js b/src/api/mosty-jmxf.js new file mode 100644 index 0000000..f0db69d --- /dev/null +++ b/src/api/mosty-jmxf.js @@ -0,0 +1,2 @@ +import request from "@/utils/request"; +const api = "/mosty-api/mosty-jmxf"; diff --git a/src/components/GdMap/index copy.vue b/src/components/GdMap/index copy.vue new file mode 100644 index 0000000..65f2874 --- /dev/null +++ b/src/components/GdMap/index copy.vue @@ -0,0 +1,371 @@ + + + + + + + + + + + + + + + + diff --git a/src/components/GdMap/index.vue b/src/components/GdMap/index.vue index 65f2874..c86bbfe 100644 --- a/src/components/GdMap/index.vue +++ b/src/components/GdMap/index.vue @@ -1,13 +1,7 @@ - + - + @@ -101,32 +88,27 @@ onMounted(() => { map = new EliMap({ id: props.mapid, - crs: "EPSG:4490", + crs: "EPSG:3857", style: { glyphs: "./fonts/{fontstack}/{range}.pbf", - center: [94.36057012, 29.64276831], - zoom: 15 + center: [94.36,29.65], + zoom: 10 }, - minZoom: 7, - maxZoom: 18 + 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]}`; + + } + } }); + window.map = map; map.mapboxGLMap.on("load", () => { - map.addWMTSLayer( - "http://89.0.23.24/PGIS_S_TileMapServer/Maps/XZDJ_SL/EzMap", - { - Service: "getImage", - Type: "RGB", - ZoomOffset: "0", - V: "0.3", - Zoom: "{z}", - Row: "{y}", - Col: "{x}" - }, - { - tileSize: 300 - } - ); + map.addGaudLayer({ + url: 'http://webrd02.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}', + }) zoomTarget.value = map.mapboxGLMap.getZoom(); }); mapUtil.value = new MapUtil(map); @@ -184,7 +166,7 @@ onMounted(() => { }); // 回显线 emitter.on("echoLine", (res) => { - mapUtil.value.createLine(res, res.flag); + mapUtil.value.createLine(res); }); //创建边界面(geojson) emitter.on("setBoundarys", (res) => { @@ -215,6 +197,11 @@ onMounted(() => { mapUtil.value.diffusionCircle(res); }); + // 清除全部覆盖物 + emitter.on("removeElementAll", () => { + mapUtil.value.removeElementAll(); + }); + // 展示盘曲 emitter.on("showGapText", (obj) => { mapUtil.value.gapText(obj); @@ -313,6 +300,7 @@ onUnmounted(() => { emitter.off("diffusionCircle"); emitter.off("SsCircle"); emitter.off("ClearssCircle"); + emitter.off("removeElementAll"); }); @@ -335,35 +323,29 @@ onUnmounted(() => { right: 398px; bottom: 4px; z-index: 9; - .mapImageItem { border: 1px solid #08aae8; background: rgb(9, 26, 70); - & > img { width: 100%; height: 50px; } - & > 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/views/backOfficeSystem/qwManagement/qcgl/fkqc/index.vue b/src/views/backOfficeSystem/qwManagement/qcgl/fkqc/index.vue index 8feab0e..5fc3d29 100644 --- a/src/views/backOfficeSystem/qwManagement/qcgl/fkqc/index.vue +++ b/src/views/backOfficeSystem/qwManagement/qcgl/fkqc/index.vue @@ -101,7 +101,7 @@ const pageData = reactive({ total: 0, pageConfiger: { pageSize: 10, - pageNum: 1 + pageCurrent: 1 }, //分页 controlsWidth: 210, //操作栏宽度 tableColumn: [ @@ -134,9 +134,6 @@ const onSearch = (val)=>{ getList() } - - - // 改变分页 const changeNo = (val) => { pageData.pageConfiger.pageCurrent = val; diff --git a/src/views/backOfficeSystem/qwManagement/qwgl/components/jmqw copy.vue b/src/views/backOfficeSystem/qwManagement/qwgl/components/jmqw copy.vue new file mode 100644 index 0000000..624f1fa --- /dev/null +++ b/src/views/backOfficeSystem/qwManagement/qwgl/components/jmqw copy.vue @@ -0,0 +1,1038 @@ + + + + 巡防部门 + + + + + + + + 巡防范围 + + + + {{ it.zdmc }} + + + + + + + + 巡区设置 + 快反点设置 + 环林卡口设置 + 警务站设置 + 护学岗设置 + 必巡线 + 必巡点 + + + + + + + + + + + + + + + + + + + + + + + {{ itchid.xqmc }} + + + + + {{ itchid.xqmc }} + + + 关联点位: + {{ it.xqmc }} + + + + + + + {{ itchid.xxMc }} + + + + + + 警组设置 + + + + + + + + + + + + 班次设置 + + + + + + + + + ( + + + + + + 至 + + + + + + + + + ) + + + + + + + + + + + + 负责人 + + + + + + + + + + + + + + + + + 智能装备 + + + + {{ itchid.sbmc }} + + + + + + 终端报备 + + + {{ + it.sbmc + }} + + + + 警用器械 + + + + + + + + 巡逻方式 + + + + + + + + + + + {{ item.cph }} + + + + + + + + {{ it.list ? it.list.length : 0 }} + + + {{ itchid.xm }} + + + + + + + + + + + 步巡人员 + + + + + + {{ dialogForm.zbmjStr ? dialogForm.zbmjStr.length : 0 }} + + + + {{ item.xm }} + + + + + + + {{ dialogForm.zbfjStr ? dialogForm.zbfjStr.length : 0 }} + + + + {{ item.xm }} + + + + + + + + + + 武装着装 + + + + + + + + + + + 备注 + + + + + + + + + + 报备 + 重置 + + + + + + + + diff --git a/src/views/backOfficeSystem/qwManagement/qwgl/components/jmqw.vue b/src/views/backOfficeSystem/qwManagement/qwgl/components/jmqw.vue index c24fe03..2de3049 100644 --- a/src/views/backOfficeSystem/qwManagement/qwgl/components/jmqw.vue +++ b/src/views/backOfficeSystem/qwManagement/qwgl/components/jmqw.vue @@ -37,16 +37,16 @@ - 巡区设置 - 快反点设置 + 环林卡口 + - + + {{ itchid.sbmc }} - + @@ -675,7 +675,7 @@ const changeJz = (val) => { dialogForm.value.zdList = item.zbzdsbStr ? JSON.parse(item.zbzdsbStr) : []; let sblist = item.tcsbStr ? JSON.parse(item.tcsbStr) : []; - + dialogForm.value.tcList = sblist.filter((v) => { return v.sblx == "06"; }); diff --git a/vue.config.js b/vue.config.js index 75232ef..d6f160c 100644 --- a/vue.config.js +++ b/vue.config.js @@ -4,7 +4,7 @@ function resolve(dir) { return path.join(__dirname, dir); } // const serverHost = "http://192.192.192.109:8006"; -const serverHost = "http://192.168.43.92:8006"; +const serverHost = "http://192.168.1.32:8066"; // const serverHost ="http://80.60.36.64:8006" module.exports = { publicPath: "/",