kongdeqiang
2 天以前 b912d487fcb309a3e8c727ad8a6778afb1436a75
feat: 修改大屏页面
1个文件已修改
16 ■■■■■ 已修改文件
src/components/page/leaderShow/leaderIndex.vue 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/page/leaderShow/leaderIndex.vue
@@ -2,12 +2,6 @@
    <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>-->
@@ -491,7 +485,7 @@
                            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">
@@ -505,7 +499,7 @@
                                    width: 200,
                                    title: "详细信息"
                                });
                                // 在标记点位置打开信息窗口
                                marker.openInfoWindow(infoWindow, point);
                            })
@@ -520,7 +514,7 @@
                    [centerPoint, ...points].forEach(p => bounds.extend(p));
                    this.map.setViewport(bounds.getSouthWest(), bounds.getNorthEast());
                    // 允许滚轮缩放
                    this.map.enableScrollWheelZoom(point, 15);
                    // 设置地图默认缩放比例
@@ -529,11 +523,11 @@
                        // style:'midnight',
                        styleJson:goodsData
                    });
                    this.map.addEventListener("tilesloaded", () => {
                        this.addHeatMap(this.map); // 确保在 tilesloaded 事件后调用
                    });
                    // this.addHeatMap(this.map)
                    this.addMarker(this.map,point)
                })