shuishen
2023-05-02 baeccd915fd0e49dce965013b4ccef54a9c0baae
src/views/home/components/dialog/keyPersonBox.vue
@@ -182,22 +182,19 @@
        },
        rowClick (row) {
            if (row.x == '' || row.y == '') {
                this.$message({
                    message: '暂无位置信息',
                    type: 'warning'
                })
                return
            }
            this.$store.commit('SET_MAPSEARCHPOPUP', true)
            this.$store.commit('SET_MAPSEARCHPOPUPDATA', {
                name: row.realName
            this.$EventBus.$emit('toPosition', {
                siteJd: row.x,
                siteWd: row.y,
                siteGd: 200
            })
            this.$store.commit('SET_ARCHITECTUREPOPUP', true)
            this.$store.commit('SET_ARCHITECTUREDATAPOPUP', { ...row, curDataTitle: '重点人员' })
            // eslint-disable-next-line no-redeclare
            var popup = new global.DC.DivForms(global.viewer, {
                domId: 'mapSearchPopup',
                domId: 'architectureDivElementDom',
                position: [
                    global.DC.Transform.transformWGS84ToCartesian(
                        new global.DC.Position(
@@ -207,13 +204,6 @@
                        )
                    )
                ]
            })
            this.$EventBus.$emit('toPosition', {
                layerName: 'carLayers',
                siteJd: row.x,
                siteWd: row.y,
                siteGd: 200
            })
            this.keyPersonVisible = false
@@ -309,7 +299,7 @@
    },
    destroyed () {
        this.$store.commit('SET_MAPSEARCHPOPUP', false)
        this.$store.commit('SET_ARCHITECTUREPOPUP', false)
    },
}
</script>