| | |
| | | <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"> |
| | |
| | | <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> |
| | |
| | | methods: { |
| | | closePopup () { |
| | | this.currentBtn = '接警信息' |
| | | this.$store.commit('SET_DETAILSPOPUP', false) |
| | | this.$store.commit('SET_DETAILSPOPUP', { |
| | | showBox: false, |
| | | showBtn: false |
| | | }) |
| | | }, |
| | | |
| | | currentBtnChange (type) { |
| | |
| | | }, |
| | | |
| | | 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) |
| | | } |
| | | } |
| | | } |
| | | } |