shuishen
2022-09-21 d4679587adbc32b9b424918db3744f81226a06c6
首页调整
4 files modified
91 ■■■■■ changed files
src/components/map/index.vue 22 ●●●● patch | view | raw | blame | history
src/views/activity/index.vue 6 ●●●● patch | view | raw | blame | history
src/views/home/index.vue 61 ●●●●● patch | view | raw | blame | history
src/views/lyout/index.vue 2 ●●● patch | view | raw | blame | history
src/components/map/index.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-08-18 17:00:30
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2022-09-20 17:19:17
 * @LastEditTime: 2022-09-21 10:13:38
 * @FilePath: \srs-police-affairs\src\components\map\index.vue
 * @Description: 公用地图组件
 * 
@@ -350,7 +350,7 @@
        })
        this.$EventBus.$on('flyToPosition', (params) => {
            that.flyToPosition(params.siteJd, params.siteWd, params.siteGd = 2000, params.siteHeading = 0, params.sitePitch = -90, params.siteRoll = 0, params.time = 3)
            that.flyToPosition(params.siteJd, params.siteWd, params.siteGd, params.siteHeading, params.sitePitch, params.siteRoll, params.time)
        })
@@ -363,9 +363,21 @@
            // eslint-disable-next-line no-unused-vars
            that.removeMxTileset(params.titlesetName, params.incident)
        })
        this.$EventBus.$emit('addMxTileset', {
            titlesetName: 'sdOrrTilesetLayer',
            titlesetUrl: "/sd/tileset.json",
            incident: this.tilesetClick
        })
    },
    methods: {
        // 模型的点击事件
        tilesetClick (e) {
            if (this.$route.path != "/lyout/house") {
                this.$router.push({ path: '/lyout/house', query: { searchName: 'xxx小区' } })
            }
        },
        /**
         * @description: 全屏控制
         * @return {*} 无返回值
@@ -561,7 +573,7 @@
         * @param {*} siteRoll 翻转角度,默认0
         * @param {*} time 飞行时间,默认3秒
         */
        flyToPosition (siteJd, siteWd, siteGd, siteHeading, sitePitch, siteRoll, time) {
        flyToPosition (siteJd, siteWd, siteGd = 2000, siteHeading = 0, sitePitch = -90, siteRoll = 0, time = 3) {
            global.viewer.flyToPosition(
                new global.DC.Position(
                    Number(siteJd),
@@ -599,7 +611,9 @@
            tilesetLayer.addOverlay(tilesetObject[titlesetName])
            global.viewer.flyTo(tilesetObject[titlesetName])
            // global.viewer.flyTo(tilesetObject[titlesetName])
            this.flyToPosition(116.027212, 28.678499, 600, -3, -45)
            tilesetObject[titlesetName].on(global.DC.MouseEventType.CLICK, incident)
        },
src/views/activity/index.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-08-18 16:18:17
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2022-09-19 17:42:50
 * @LastEditTime: 2022-09-21 10:03:28
 * @FilePath: \srs-police-affairs\src\views\activity\index.vue
 * @Description: 安保活动
 * 
@@ -339,10 +339,10 @@
        // height: 70%;
        color: #fff;
        background: rgba(7, 22, 37, 0.8);
        ::v-deep .el-tree-node__content {
        :deep(.el-tree-node__content) {
            background: transparent;
        }
        ::v-deep .el-tree-node {
        :deep(.el-tree-node) {
            background: #0f1e2d;
        }
    }
src/views/home/index.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-08-18 16:18:17
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2022-09-20 17:22:42
 * @LastEditTime: 2022-09-21 10:27:15
 * @FilePath: \srs-police-affairs\src\views\home\index.vue
 * @Description: 小区-栋-层-房屋
 * 
@@ -162,72 +162,75 @@
            phoneLayerShow: false,
            monitoringLayerShow: false,
            panoramaLayerShow: false,
            carList: [{
                name: '1号警车',
                lng: 115.998703,
                lat: 28.691435,
                lng: 116.022877,
                lat: 28.685077,
                alt: 100,
                url: '/img/icon/car.png'
            }, {
                name: '2号警车',
                lng: 115.984703,
                lat: 28.673435,
                lng: 116.029917,
                lat: 28.685360,
                alt: 100,
                url: '/img/icon/car.png'
            }, {
                name: '3号警车',
                lng: 116.009054,
                lat: 28.674692,
                lng: 116.031044,
                lat: 28.679445,
                alt: 100,
                url: '/img/icon/car.png'
            }],
            phoneList: [{
                name: '1号手台',
                lng: 116.007370,
                lat: 28.662075,
                lng: 116.026804,
                lat: 28.678568,
                alt: 100,
                url: '/img/icon/phone.png'
            }, {
                name: '2号手台',
                lng: 116.033595,
                lat: 28.702225,
                lng: 116.027659,
                lat: 28.678623,
                alt: 100,
                url: '/img/icon/phone.png'
            }, {
                name: '3号手台',
                lng: 115.99685299,
                lat: 28.70599572,
                lng: 116.026759,
                lat: 28.680071,
                alt: 100,
                url: '/img/icon/phone.png'
            }],
            monitoringList: [{
                name: '1号监控',
                lng: 116.025398,
                lat: 28.663066,
                lng: 116.026984,
                lat: 28.682241,
                alt: 100,
                url: '/img/icon/video.png'
            }, {
                name: '2号监控',
                lng: 116.0145001,
                lat: 28.694361,
                lng: 116.021069,
                lat: 28.678791,
                alt: 100,
                url: '/img/icon/video.png'
            }, {
                name: '3号监控',
                lng: 116.018293,
                lat: 28.624986,
                lng: 116.031208,
                lat: 28.684966,
                alt: 100,
                url: '/img/icon/video.png'
            }],
            panoramaList: [{
                name: '1号全景',
                lng: 116.027002,
                lat: 28.683302,
                lng: 116.027625,
                lat: 28.677213,
                alt: 100,
                url: '/img/icon/map-panorama.png'
            }],
            arr: [{ 'type': '孤寡老人', 'num': '0', 'radio': '0.00%' }, { 'type': '邪教人员', 'num': '1', 'radio': '2.00%' }, { 'type': '上访人员', 'num': '8', 'radio': '14.00%' }, { 'type': '涉毒', 'num': '15', 'radio': '27.00%' }, { 'type': '留守儿童', 'num': '6', 'radio': '11.00%' }, { 'type': '重点青少年', 'num': '5', 'radio': '9.00%' }],
            chooseData: {},
            oneSelected: '',
@@ -725,17 +728,17 @@
        },
        getChooseData () {
            let arr1 = ['一区', '二区', '三区']
            let arr2 = ['1所', '2所', '3所']
            let arr1 = ['信州区车站派出所', '信州区沙溪派出所', '信州区灵溪派出所', '信州区北门派出所', '信州区江光派出所', '信州区水南派出所', '信州区秦峰派出所', '信州区茅家岭派出所', '信州区西市派出所', '信州区朝阳派出所']
            let arr2 = ['辖区1', '辖区2', '辖区3', '辖区4', '辖区5', '辖区6', '辖区7', '辖区8']
            let arr3 = ['A小区', 'B小区', 'C小区']
            var obj = {}
            for (let i = 0; i < 3; i++) {
            for (let i = 0; i < arr1.length; i++) {
                obj[arr1[i]] = {}
                for (let j = 0; j < 3; j++) {
                for (let j = 0; j < arr2.length; j++) {
                    let str = arr1[i] + arr2[j]
                    console.log('str', str)
                    obj[arr1[i]][str] = []
                    for (let k = 0; k < 3; k++) {
                    for (let k = 0; k < arr3.length; k++) {
                        obj[arr1[i]][str].push(str + arr3[k])
                    }
                }
@@ -755,6 +758,12 @@
                this.houseLayerShow = true
                this.houseChange(this.houseLayerShow)
            }
            this.$EventBus.$on('flyToPosition', {
                siteJd: 116.026912,
                siteWd: 28.683599,
                siteGd: 400
            })
        },
    },
src/views/lyout/index.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-08-18 16:18:24
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2022-09-17 11:56:45
 * @LastEditTime: 2022-09-21 10:42:58
 * @FilePath: \srs-police-affairs\src\views\lyout\index.vue
 * @Description: 
 *