| | |
| | | <div class="leaderIndex-wrap"> |
| | | <div class="leaderIndex-title"> |
| | | <h1>峰峰矿区综合行政执法局智慧泊车平台</h1> |
| | | <div class="leader-title-left"> |
| | | <h2>欢迎登录,{{userName}}</h2> |
| | | </div> |
| | | <div class="logout" @click="logout"> |
| | | 退出登录 |
| | | </div> |
| | | <!-- <div class="leader-title-right" @click="houtaiBtn">--> |
| | | <!-- <h2>后台管理</h2>--> |
| | | <!-- </div>--> |
| | |
| | | this.$byutil.postData4(this, this.pageConfig.getCarNumUrl, { parkId: coord.id }, res => { |
| | | this.pointNum1 = res.data.num // 车位总数 |
| | | this.pointNum2 = Math.floor(Number(res.data.num) - Number(res.data.carNum)); |
| | | |
| | | |
| | | // 创建信息窗口内容 |
| | | const content = ` |
| | | <div style="padding:10px"> |
| | |
| | | width: 200, |
| | | title: "详细信息" |
| | | }); |
| | | |
| | | |
| | | // 在标记点位置打开信息窗口 |
| | | marker.openInfoWindow(infoWindow, point); |
| | | }) |
| | |
| | | [centerPoint, ...points].forEach(p => bounds.extend(p)); |
| | | this.map.setViewport(bounds.getSouthWest(), bounds.getNorthEast()); |
| | | |
| | | |
| | | |
| | | // 允许滚轮缩放 |
| | | this.map.enableScrollWheelZoom(point, 15); |
| | | // 设置地图默认缩放比例 |
| | |
| | | // style:'midnight', |
| | | styleJson:goodsData |
| | | }); |
| | | |
| | | |
| | | this.map.addEventListener("tilesloaded", () => { |
| | | this.addHeatMap(this.map); // 确保在 tilesloaded 事件后调用 |
| | | }); |
| | | |
| | | |
| | | // this.addHeatMap(this.map) |
| | | this.addMarker(this.map,point) |
| | | }) |