diff --git a/ruoyi-ui/codehelp_readme.md b/ruoyi-ui/codehelp_readme.md index 90a0fe77..0ccdf448 100644 --- a/ruoyi-ui/codehelp_readme.md +++ b/ruoyi-ui/codehelp_readme.md @@ -13,7 +13,8 @@ - 通用视频组件,用户接入视频流`src\views\JiHeExpressway\components\VideoMulti\index.vue` 3. 较为复杂的页面只有首页的地图和缩略图相关。地图采用高速提供的接口,缩略图采用antv/x6。 - - 地图文档:【腾讯文档】SuperMap-GIS组件使用文档 https://docs.qq.com/doc/DY3FYV1RaV2lLeXhO + - 地图文档:【腾讯文档】SuperMap-GIS组件使用文档 + https://docs.qq.com/doc/DY2R2ZnBacUJjR1Rm - 缩略图文档:[X6 图编辑引擎 | AntV](https://x6.antv.vision/zh) diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/CrowdnessIndicatorRankings/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/CrowdnessIndicatorRankings/index.vue index 17555071..d648f07d 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/CrowdnessIndicatorRankings/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/CrowdnessIndicatorRankings/index.vue @@ -168,7 +168,7 @@ export default { ); }); } else { - Vue.prototype.mapIns.removeLayerByName('lineLayer'); + Vue.prototype.mapIns.removeLayerByName('lineLayer'); } // // this.$refs.MapContainerRef.showRoadConditions(findIndex === -1); @@ -223,12 +223,16 @@ export default { points.push({ type: 'event', longitude: parseFloat(e.longitude), - latitude: parseFloat(e.latitude), + latitude: parseFloat(e.latitude), iconUrl: iconUrl, - offset: [0,-48], - size: [42,100], - GGoffsetX: 0, - GGoffsetY: 20, + offset: [0,-48], + size: [42,100], + GGoffsetX: 0, + GGoffsetY: -5, + GGimgOffset:[0,0], + GGimgsize:[42,103], + GGstakeOffsetY:45, + stakeOffsetY:25, otherInfo: { ext: null, name: e.deviceName, @@ -289,7 +293,7 @@ export default { e = null; }); } - + } }, handledDialogCamera(bool) { @@ -326,14 +330,22 @@ export default { iconUrl = (e.useState ? iconb : iconb_f); } else if(e.childType==='2-2' || e.childType==='2-4'){ iconUrl = (e.useState ? iconc : iconc_f); - } + } points.push({ type: 'event', longitude: parseFloat(e.longitude), - latitude: parseFloat(e.latitude), + latitude: parseFloat(e.latitude), // iconUrl: e.useState ? icon : icon_f, iconUrl: iconUrl, + offset: [0,-48], + size: [42,100], + GGoffsetX: 0, + GGoffsetY: -5, + GGimgOffset:[0,0], + GGimgsize:[42,103], + GGstakeOffsetY:45, + stakeOffsetY:25, otherInfo: { ext: null, name: e.deviceName, @@ -433,7 +445,7 @@ export default { if (this.mapContainer === 'BMapContainer') { const icon = require(`@screen/images/layerb/事件专题/${eventName}_active.svg`); const center = [parseFloat(longitude), parseFloat(dimension)] - + mapInfo.addPointByArr( { pointList: [ @@ -442,6 +454,14 @@ export default { longitude: center[0], //点坐标经度 【必传字段】 latitude: center[1], //点坐标纬度 【必传字段】 iconUrl: icon, // 图标 【必传字段】 + offset: [0,-48], + size: [42,100], + GGoffsetX: 0, + GGoffsetY: -5, + GGimgOffset:[0,0], + GGimgsize:[42,103], + GGstakeOffsetY:45, + stakeOffsetY:25, otherInfo: { name: '123' }