shuishen
2022-09-22 1179f590143f1477b0f5f86d8d35325a35042d7b
Merge branch 'master' of http://192.168.0.105:10010/r/srs-police-affairs
2 files modified
48 ■■■■ changed files
src/components/map/index.vue 3 ●●●● patch | view | raw | blame | history
src/views/activity/index.vue 45 ●●●● patch | view | raw | blame | history
src/components/map/index.vue
@@ -333,7 +333,7 @@
        this.$EventBus.$on('layerPointAdd', (params) => {
            // eslint-disable-next-line no-unused-vars
            console.log(params.incident)
            // console.log(params.incident)
            that.layerPointAdd(params.layerName, params.type, params.params, params.incident)
        })
@@ -545,7 +545,6 @@
                material: material,
                clampToGround: false
            })
            layersObjcect[layerName].addOverlay(polyline)
        },
src/views/activity/index.vue
@@ -82,14 +82,7 @@
            </div>
        </div>
        <div class="second-container">
            <el-tree
                :data="treeData"
                show-checkbox
                node-key="id"
                :default-expanded-keys="[2, 3]"
                :default-checked-keys="[5]"
                @node-click="treeNodeClick"
            ></el-tree>
            <el-tree :data="treeData" show-checkbox node-key="id" @check="treeCheckClick"></el-tree>
        </div>
    </div>
</template>
@@ -131,16 +124,19 @@
                        label: 'BOOM',
                        lng: 116.033595,
                        lat: 28.702225,
                        alt: 100,
                    }, {
                        id: 8,
                        label: 'MDM',
                        lng: 116.007370,
                        lat: 28.662075,
                        alt: 100,
                    }, {
                        id: 9,
                        label: 'pdds',
                        lng: 116.009054,
                        lat: 28.674692,
                        alt: 100,
                    }]
                }, {
                    id: 3,
@@ -153,18 +149,21 @@
                        label: '卡点',
                        lng: 115.984703,
                        lat: 28.673435,
                        alt: 100,
                    },
                    {
                        id: 11,
                        label: '电警点',
                        lng: 115.998703,
                        lat: 28.691435,
                        alt: 100,
                    },
                    {
                        id: 12,
                        label: '岗亭',
                        lng: 116.027002,
                        lat: 28.683302,
                        alt: 100,
                    }]
                }, {
                    id: 5,
@@ -174,30 +173,35 @@
                        label: '大中型商超',
                        lng: 116.018293,
                        lat: 28.624986,
                        alt: 100,
                    },
                    {
                        id: 14,
                        label: '幼儿园',
                        lng: 116.0145001,
                        lat: 28.694361,
                        alt: 100,
                    },
                    {
                        id: 15,
                        label: '政府事业单位',
                        lng: 116.025398,
                        lat: 28.663066,
                        alt: 100,
                    },
                    {
                        id: 16,
                        label: '机场',
                        lng: 115.99685299,
                        lat: 28.70599572,
                        alt: 100,
                    },
                    {
                        id: 17,
                        label: '银行',
                        lng: 116.033595,
                        lat: 28.702225,
                        alt: 100,
                    }]
                },
                {
@@ -208,24 +212,28 @@
                        label: '印刷店',
                        lng: 116.007370,
                        lat: 28.662075,
                        alt: 100,
                    },
                    {
                        id: 19,
                        label: '废旧金属收购',
                        lng: 116.009054,
                        lat: 28.674692,
                        alt: 100,
                    },
                    {
                        id: 20,
                        label: '开锁店',
                        lng: 115.984703,
                        lat: 28.673435,
                        alt: 100,
                    },
                    {
                        id: 21,
                        label: '酒店',
                        lng: 115.998703,
                        lat: 28.691435,
                        alt: 100,
                    }]
                }]
            }],
@@ -239,7 +247,6 @@
    },
    mounted () {
    },
    updated () {
@@ -251,9 +258,23 @@
        currentChange (val) {
            console.log(`当前页: ${val}`)
        },
        treeNodeClick (e) {
            console.log('第一个参数:', e)
        }
        treeCheckClick (e1, e2) {
            this.$EventBus.$emit('mapClearLayer', {
                layerName: 'activeLayer',
                type: 'VectorLayer'
            })
            e2.checkedNodes.forEach(item => {
                if (item.lng) {
                    item.url = '/img/icon/position.png'
                    this.$EventBus.$emit('layerPointAdd', {
                        layerName: 'activeLayer',
                        type: "billboard",
                        params: item
                    })
                }
            })
        },
    }
}
</script>