guanqb
2023-02-11 c161bd781d6a6696e4ee9be70067b7fcd824767c
src/components/map/components/mapPopup.vue
@@ -1,6 +1,6 @@
<template>
    <div>
        <div v-if="detailsPopup" class="divForms-dom" id="divFormsDomBox">
        <div v-if="detailsPopup.showBox" class="divForms-dom" id="divFormsDomBox">
            <div style="width: 100%; height: 100%; transform: translate(0, 50%);">
                <div class="divForms divForms-theme" :class="{ 'scale-dom': scaleDomFlag }">
                    <div class="divForms-wrap">
@@ -17,7 +17,7 @@
                                    <div class="details-btn" @click="popupDetailShow">详情>>></div>
                                    <div class="close" @click="closePopup" title="关闭"></div>
                                </div>
                                <div class="change-btn">
                                <div class="change-btn" v-show="showBtn">
                                    <div @click="currentBtn = '接警信息'" :class="{ on: currentBtn == '接警信息' }">接警信息</div>
                                    <div @click="currentBtnChange('出警信息')" :class="{ on: currentBtn == '出警信息' }">出警信息
                                    </div>
@@ -156,7 +156,10 @@
    methods: {
        closePopup () {
            this.currentBtn = '接警信息'
            this.$store.commit('SET_DETAILSPOPUP', false)
            this.$store.commit('SET_DETAILSPOPUP', {
                showBox: false,
                showBtn: false
            })
        },
        currentBtnChange (type) {
@@ -172,7 +175,11 @@
        },
        popupDetailShow () {
            this.$EventBus.$emit('policeSituationSiteClick', this.dataPopup)
            if (this.detailsPopup.showBtn == true) {
                this.$EventBus.$emit('policeSituationSiteClick', this.dataPopup)
            } else {
                this.$EventBus.$emit('housingPoliceSiteClick', this.dataPopup)
            }
        }
    }
}