消防模块支持

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

View File

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