diff --git a/public/pbImg/bz49.png b/public/pbImg/bz49.png new file mode 100644 index 0000000..52323de Binary files /dev/null and b/public/pbImg/bz49.png differ diff --git a/public/pbImg/hong_00004.png b/public/pbImg/hong_00004.png new file mode 100644 index 0000000..ad18364 Binary files /dev/null and b/public/pbImg/hong_00004.png differ diff --git a/public/pbImg/绿色_00004.png b/public/pbImg/绿色_00004.png new file mode 100644 index 0000000..77dd1c9 Binary files /dev/null and b/public/pbImg/绿色_00004.png differ diff --git a/public/pbImg/编组.png b/public/pbImg/编组.png new file mode 100644 index 0000000..1cb663a Binary files /dev/null and b/public/pbImg/编组.png differ diff --git a/public/pbImg/蓝色_00001.png b/public/pbImg/蓝色_00001.png new file mode 100644 index 0000000..8075ba1 Binary files /dev/null and b/public/pbImg/蓝色_00001.png differ diff --git a/public/pbImg/跳转.png b/public/pbImg/跳转.png new file mode 100644 index 0000000..a20d0cd Binary files /dev/null and b/public/pbImg/跳转.png differ diff --git a/public/pbImg/黄色_00004.png b/public/pbImg/黄色_00004.png new file mode 100644 index 0000000..e2d2c7f Binary files /dev/null and b/public/pbImg/黄色_00004.png differ diff --git a/src/api/realtimeWarning/index.js b/src/api/realtimeWarning/index.js index fe58dc0..0ccdd41 100644 --- a/src/api/realtimeWarning/index.js +++ b/src/api/realtimeWarning/index.js @@ -7,3 +7,19 @@ export function mapList(params) { params }) } +//部门信息列表 +export function deptList(params) { + return request({ + url: '/system/dept/list', + method: 'get', + params + }) +} +//处置请求 +export function addCommonApprovalProcess(data) { + return request({ + url: '/closedloopdisposal/workflow/addCommonApprovalProcess', + method: 'post', + data + }) +} diff --git a/src/components/offLineMap/index.vue b/src/components/offLineMap/index.vue index 4714693..6b5a79a 100644 --- a/src/components/offLineMap/index.vue +++ b/src/components/offLineMap/index.vue @@ -27,7 +27,6 @@ export default { this.companyList = res.data this.initMap() }) - topMapOne({ companyId: 4, companyName: '宁波顺帆净水剂有限公司' }) }, methods: { @@ -181,8 +180,76 @@ export default { label.setStyle({ backgroundColor: ' rgba(0, 0, 0, 0)', border: '0', color: '#0060ce', fontSize: '16px' }) map.addOverlay(label); marker.addEventListener("click", function () { - // Cookies.set('village_current', item.villageCode) - // window.open(window.location.origin + '/#/communityShow', '_blank'); + topMapOne({ companyId: item.companyId, companyName: item.companyName }).then(res => { + var label = new BMap.Label(); + label.setStyle({ + color: 'blue', + borderRadius: '5px', + borderColor: '#ccc', + padding: '10px', + fontSize: '16px', + fontFamily: '微软雅黑', + transform: 'translateX(-50%) translateY(calc(-100% - 10px))' + }); + + label.setPosition(new BMap.Point(item.longitude, item.latitude)); + label.setOffset(new BMap.Size(130, -10)) + label.setStyle({ width: '372px', height: '242px', background: 'url(pbImg/bz49.png) no-repeat', backgroundSize: '100% 100%', border: '0', color: '#fff', padding: '13px 20px' }) + label.setContent(` +