guanqb
2023-04-15 9a0bc125d31cb1b0c0442c1eef5fa768f26a9889
社区楼栋高亮
3 files modified
54 ■■■■■ changed files
src/components/map/index.vue 32 ●●●●● patch | view | raw | blame | history
src/styles/media/index.scss 11 ●●●●● patch | view | raw | blame | history
src/views/house/index.vue 11 ●●●●● patch | view | raw | blame | history
src/components/map/index.vue
@@ -293,15 +293,15 @@
            // that.switchImg()
            // 外网
            // global.viewer.imageryLayers.addImageryProvider(
            //     new global.DC.Namespace.Cesium.UrlTemplateImageryProvider({
            //         url: 'http://t{s}.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=e45274b0235bb913eceb393aabbf9c9c',
            //         subdomains: ['0', '1', '2', '3', '4', '5', '6', '7'],
            //         format: 'image/jpeg',
            //         show: true,
            //         maximumLevel: 18
            //     })
            // )
            global.viewer.imageryLayers.addImageryProvider(
                new global.DC.Namespace.Cesium.UrlTemplateImageryProvider({
                    url: 'http://t{s}.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=e45274b0235bb913eceb393aabbf9c9c',
                    subdomains: ['0', '1', '2', '3', '4', '5', '6', '7'],
                    format: 'image/jpeg',
                    show: true,
                    maximumLevel: 18
                })
            )
            // 设置地图初始位置,角度等
            global.viewer.camera.setView({
@@ -511,6 +511,10 @@
        this.$EventBus.$on('showThreeDimensions', (params) => {
            that.showThreeDimensions(params.positions, params.minHeight, params.maxHeight)
        })
        this.$EventBus.$on('switchThreeDimensions', (params) => {
            that.switchThreeDimensions(params)
        })
        this.$EventBus.$on('clearHouse3D', () => {
@@ -1205,8 +1209,8 @@
                        polygonHierarchy: new global.DC.Namespace.Cesium.PolygonHierarchy(
                            global.DC.Namespace.Cesium.Cartesian3.fromDegreesArray(floorPositions),
                        ),
                        extrudedHeight: maxHeight,//分层顶部海拔
                        height: minHeight,//分层底部海拔
                        extrudedHeight: 80,//分层顶部海拔
                        height: 50,//分层底部海拔
                    }),
                    attributes: {
@@ -1221,6 +1225,12 @@
            global.viewer.scene.primitives.add(curPolygon)
        },
        // 建筑高亮切换显示隐藏
        switchThreeDimensions (boolean) {
            if (!curPolygon) return
            curPolygon.show = boolean
        },
        // 清除建筑3D
        clearHouse3D () {
            global.viewer.scene.primitives.remove(curPolygon)
src/styles/media/index.scss
@@ -551,6 +551,17 @@
                                                            height: countSizeVh(36);
                                                            line-height: countSizeVh(36);
                                                            border: countSizeVh(1) solid #ccc;
                                                            .el-checkbox .el-checkbox__inner {
                                                                width: countSizeVh(12);
                                                                height: countSizeVh(12);
                                                                border-radius: countSizeVh(1);
                                                            }
                                                            .el-checkbox .el-checkbox__inner::after {
                                                                height: countSizeVh(7);
                                                                left: countSizeVw(5, 1920);
                                                            }
                                                        }
                                                    }
                                                }
src/views/house/index.vue
@@ -99,7 +99,7 @@
                                                {{
                                                    item.name
                                                }}
                                                <div @click.stop>
                                                <div @click.stop title="显示/隐藏楼栋高亮">
                                                    <el-checkbox v-model="isBuildHighLightchecked"
                                                        v-show="buildingChoosed.name == item.name"
                                                        @change="changeBuildHighLightchecked"></el-checkbox>
@@ -195,7 +195,7 @@
                                                :class="{ on: floorChoosed == value.properties.fojcu }">
                                                {{ value.properties.fojcu }}
                                                <!-- <div class="flow"></div>
                                                                                                                                                                                                                                                                                                                                                        <div class="warning"></div>-->
                                                                                                                                                                                                                                                                                                                                                                        <div class="warning"></div>-->
                                            </div>
                                        </div>
                                    </div>
@@ -657,7 +657,7 @@
    methods: {
        changeBuildHighLightchecked (e) {
            console.log('changeBuildHighLightchecked-----------------------------------', e)
            this.$EventBus.$emit("switchThreeDimensions", e)
        },
        // 获取半年前时间
@@ -862,7 +862,7 @@
            this.pictLoading = true
            this.buildingList = []
            getSearchExtensivelyBgAoiDeepdata(ak, region, ids, infos).then((res) => {
                console.log('res', res)
                console.log('getSearchExtensivelyBgAoiDeepdata---then', res)
                let baseUrl
                if (process.env.NODE_ENV == "development") {
                    // 开发
@@ -1131,7 +1131,6 @@
            this.unitHouseChoosed = []
            this.pictLoading = true
            if (!aoiArr) {
                console.log('if (!aoiArr)')
                this.$EventBus.$emit("clearHouse3D")
                this.$EventBus.$emit("toPosition", {
                    ...item,
@@ -1148,10 +1147,8 @@
            // 获取户籍人口重点人口数据
            this.choosedBuildId = item.build_id
            // 重点人口户籍人口
            console.log('before--getVillagePersonStatisticInfoByBuildId')
            this.getVillagePersonStatisticInfoByBuildId(item.build_id)
            // 楼栋单元楼层户室查询
            console.log('before--getHouses')
            this.getHouses(item.build_id, "361102", aoiArr)
            this.floorsType = 1
            document.querySelector(".floor-num").style.left = "0px"