From 8436bf60fa05c8edcba34b13550aa7f1ca98789b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=99=E6=88=91?= <2731628804@qq.com> Date: Fri, 20 Mar 2026 17:49:22 +0800 Subject: [PATCH] 123 --- src/components/Map/GdMap/mapUtil.js | 57 +++--- .../IssueTasks/components/editAddForm.vue | 179 +++++++++++++----- .../taskPage/IssueTasks/components/fgLoad.vue | 4 - .../service/taskPage/IssueTasks/index.vue | 9 +- .../service/taskPage/taskProgress/index.vue | 3 - 5 files changed, 168 insertions(+), 84 deletions(-) diff --git a/src/components/Map/GdMap/mapUtil.js b/src/components/Map/GdMap/mapUtil.js index b9b3c81..5610ebc 100644 --- a/src/components/Map/GdMap/mapUtil.js +++ b/src/components/Map/GdMap/mapUtil.js @@ -1,8 +1,8 @@ import emitter from "@/utils/eventBus.js"; -export function MapUtil(map) { +export function MapUtil(map) { let _that = this; - _that.mMap = map; //地图对象 + _that.mMap = map; //地图对象 _that.heatmapOverlay = {}; //热力图层对象 _that.markerClusterers = null; //聚合图层对象 _that.flagSircle = []; //自定义HTML @@ -24,7 +24,7 @@ export function MapUtil(map) { }; /** - * 撒点.鼠标滑动展示内容 + * 撒点.鼠标滑动展示内容 * @param {*} coords 坐标 geojson * @param {*} icon 图标 * @param {*} flag 标识 @@ -44,7 +44,7 @@ export function MapUtil(map) { } if(it.jd && it.wd) return obj; }); - + const point = map.createdPoint(pointList,{ image:icon,//对应上面的图片名称 scale:0.6, @@ -69,7 +69,7 @@ export function MapUtil(map) { /** * 撒点 * @param {*} coords 坐标 geojson - * @param {*} icon 图标 + * @param {*} icon 图标 * @param {*} flag 标识 * @param {*} isBounds 点击图标是否变大方法 * @param {*} showTitle 是否展示标题 @@ -156,8 +156,8 @@ export function MapUtil(map) { /** * 装备图标 - * @param {点位数据} data - * @param {点} point + * @param {点位数据} data + * @param {点} point */ MapUtil.prototype.shouIcon = (data, point) => { if(!_that._self.gpsZb) _that._self.gpsZb = [] @@ -213,8 +213,8 @@ export function MapUtil(map) { /** * 聚合撒点 - * @param {*} coords 点位数据 geojson lng lat - * @param {*} icon 点位图 + * @param {*} coords 点位数据 geojson lng lat + * @param {*} icon 点位图 */ MapUtil.prototype.aggregateScatteringPoint = (obj) => { let { coords, icon, flag,isclear,scale } = obj; @@ -243,11 +243,11 @@ export function MapUtil(map) { // 聚合的点击一个 maker.addEventListener("click", (val) => { - _that.openInfoDetail(flag,[val]) //点击打开详情 + _that.openInfoDetail(flag,[val]) //点击打开详情 }) // 聚合的多个 maker.addEventListener("clusterClick", (val) => { - _that.openInfoDetail(flag,val) //点击打开详情 + _that.openInfoDetail(flag,val) //点击打开详情 }) }; @@ -289,7 +289,7 @@ export function MapUtil(map) { }) _that.heatmapOverlay[flag] = [] }; - + /** * 删除图层要素 * @param {*} layer 唯一标识 @@ -304,7 +304,7 @@ export function MapUtil(map) { _that._self.gpsZb[key] = [] } } - } + } // 其他图层 if (!_that._self[layer]) return false; if(layer !== 'gpsZb'){ @@ -313,7 +313,7 @@ export function MapUtil(map) { el.destroy()//destory()销毁 , show(false) false:隐藏 true :展示 } _that._self[layer] = []; - + // d带标题的撒点 let flagT = layer+'Title'; if (!_that._self[flagT]) return false; @@ -358,7 +358,7 @@ export function MapUtil(map) { } catch (err) {} } } - + // 绘制数据的初始化 MapUtil.prototype.Drawplot = (color) => { const {point,line,polygon,circle,rectangle,geoJson,remove,enableEdit } = map.draw({ @@ -372,7 +372,7 @@ export function MapUtil(map) { } /** * 绘制工具 - * @param {*} type 绘制形状 + * @param {*} type 绘制形状 * (point 点, line 线, circle 圆, polygon 多边形, rectangle 矩形) , * geoJson:根据geojson回显图 */ @@ -450,8 +450,8 @@ export function MapUtil(map) { } /** * 创建线 - * @param {*} type 回显形状 - * (solid 实线, dash 虚线, FlowColor 彩虹线, RoadLine 流线 + * @param {*} type 回显形状 + * (solid 实线, dash 虚线, FlowColor 彩虹线, RoadLine 流线 */ MapUtil.prototype.createLine = (res) => { let { type , coords , isclear ,flag ,color,width} = res; @@ -496,9 +496,9 @@ export function MapUtil(map) { /** * 回显平面- 圆 - 多边形 - 矩形 - * @param {*} type 回显形状 - * type: 'polygon', 'rectangle - coords = [{ + * @param {*} type 回显形状 + * type: 'polygon', 'rectangle + coords = [{ position:[[[jd,wd],[jd,wd] ---]], //三维数组 text,//展示的文字 id, //唯一标识 @@ -506,10 +506,10 @@ export function MapUtil(map) { userData:{} //存储数据 }] - * type:circle + * type:circle coords:[jd,wd] radius:半径 - * @param {*} text 展示的文字 + * @param {*} text 展示的文字 */ MapUtil.prototype.echoPlane = (res) => { let { type , coords ,fontColor, text = '' ,radius = 0, isclear ,flag ,id = 1 , color , linecolor} = res; @@ -533,7 +533,7 @@ export function MapUtil(map) { let maker ; // 圆 if(type == 'circle'){ - let params = [{ center:coords,radius, text, id }] + let params = [{ center:coords,radius, text, id }] maker = map.createCircle(params,style); } @@ -542,7 +542,7 @@ export function MapUtil(map) { // 多边形 if(type == 'polygon') maker = map.createPolygon(coords,style); _that._self[flag].push(maker); - + maker.addEventListener("click", (val) => { if( flag == 'xfq'){ maker.highlight(val.id) //高亮展示 @@ -552,10 +552,13 @@ export function MapUtil(map) { if( flag == 'zdxl_fzyc'){ emitter.emit('showFzycInfo', {info:val,type:true}) } + if(flag == 'taskFg-flag'){ + emitter.emit('showTaskFgInfo', val) + } }) } - + // 分割线展示文字 MapUtil.prototype.gapText = (obj) => { let { points, text ,flag} = obj @@ -666,7 +669,7 @@ export function MapUtil(map) { _that.polygonGeo.destroy() } - // 打开详情弹窗 + // 打开详情弹窗 MapUtil.prototype.openInfoDetail = (flag,data) => { switch (flag) { case "rx": diff --git a/src/views/backOfficeSystem/service/taskPage/IssueTasks/components/editAddForm.vue b/src/views/backOfficeSystem/service/taskPage/IssueTasks/components/editAddForm.vue index 3060101..13206de 100644 --- a/src/views/backOfficeSystem/service/taskPage/IssueTasks/components/editAddForm.vue +++ b/src/views/backOfficeSystem/service/taskPage/IssueTasks/components/editAddForm.vue @@ -24,8 +24,9 @@ -
- + {{ tag.fgmc }} @@ -34,35 +35,46 @@ -
下一步
+
下一步
+
+ +
- 新增点位 + 新增点位 +
- 上一步 - 提交 + 上一步 + 提交
-