消防模块支持

liujun0703-新项目开发
liujun 2024-08-09 18:12:20 +08:00
parent 2579966357
commit e7ae621e42
2 changed files with 31 additions and 13 deletions

View File

@ -1,5 +1,7 @@
<template> <template>
<div class="bi-different-dialog">
<el-dialog <el-dialog
id="eldig"
:visible="visible" :visible="visible"
:title="title" :title="title"
:width="width" :width="width"
@ -7,12 +9,18 @@
custom-class="bi_enterprise_dialog" custom-class="bi_enterprise_dialog"
top="5vh" top="5vh"
@close="handlerClose"> @close="handlerClose">
弹出框体内容 <xf-point v-if="value.otherInfo.type === 'point'" :id="id" :type="value.otherInfo.type" :gangkou="gangkou"/>
<xf-control v-if="value.otherInfo.type === 'xfbf01' || value.otherInfo.type ==='xfkzs01' || value.otherInfo.type ==='xfjyd01' || value.otherInfo.type ==='xfsy01'" :id="value.id" :type="value.otherInfo.type" :gangkou="gangkou"/>
</el-dialog> </el-dialog>
</div>
</template> </template>
<script> <script>
import XfControl from '../../../map/dialog/xfControl.vue'
import XfPoint from '../../../map/dialog/xfPoint.vue'
export default { export default {
components: { XfPoint, XfControl },
props: { props: {
visible: { visible: {
type: Boolean, type: Boolean,
@ -33,7 +41,12 @@ export default {
} }
}, },
data() { data() {
return {} return {
gangkou: '0003'
}
},
mounted() {
console.log(this.value)
}, },
methods: { methods: {
handlerClose() { handlerClose() {

View File

@ -46,7 +46,7 @@
</div> </div>
</div> </div>
<dialog-index :visible.sync="infoDialog.visible" :value="{ id:infoDialog.id }" title="企业信息"/> <dialog-index :visible.sync="infoDialog.visible" :value="{ ...infoDialog.info }" :title="infoDialog.title"/>
</div> </div>
</template> </template>
@ -70,7 +70,9 @@ export default {
chatData: [], chatData: [],
infoDialog: { infoDialog: {
visible: false, visible: false,
id: '' id: '',
info: {},
title: ''
}, },
activeIndex: 0, activeIndex: 0,
rangeList: [20, 50, 100, 500, 1000, 5000], rangeList: [20, 50, 100, 500, 1000, 5000],
@ -339,6 +341,9 @@ export default {
const marker = new window.BMapGL.Marker(point, { icon }) // const marker = new window.BMapGL.Marker(point, { icon }) //
marker.addEventListener('click', async() => { marker.addEventListener('click', async() => {
this.infoDialog.visible = true this.infoDialog.visible = true
this.infoDialog.info = anchor
this.infoDialog.title = anchor.typeName
console.log(anchor)
}) })
mapInstance.addOverlay(marker) // mapInstance.addOverlay(marker) //
}, },