消防模块支持

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> <template>
<el-dialog <div class="bi-different-dialog">
:visible="visible" <el-dialog
:title="title" id="eldig"
:width="width" :visible="visible"
append-to-body :title="title"
custom-class="bi_enterprise_dialog" :width="width"
top="5vh" append-to-body
@close="handlerClose"> custom-class="bi_enterprise_dialog"
弹出框体内容 top="5vh"
</el-dialog> @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> </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) //
}, },