|
@@ -8,7 +8,7 @@
|
|
|
<canvasFun @fit='fit' @savePng='savePng' @saveSvg='saveSvg' @saveJson='saveJson' @scale='scale' @showText='showText' ref='canvasFun'></canvasFun>
|
|
|
</div>
|
|
|
<room-box ref='boxRoom'></room-box>
|
|
|
- <equip-detail ref='equipDetail'></equip-detail>
|
|
|
+ <equip-detail ref='equipDetail' :key='equipKey'></equip-detail>
|
|
|
<el-popover ref='popover' placement='right' trigger='manual' v-model='visible' width='380'>
|
|
|
<!-- <div style="text-align: right;margin-bottom: 10px;">
|
|
|
<span style="float: left;">对应的工程信息化信息</span>
|
|
@@ -138,6 +138,7 @@ export default {
|
|
|
activeItem: null,
|
|
|
showBtnWell: false,
|
|
|
count: 0, // 顶楼为多张图时计数器
|
|
|
+ equipKey: 1, //设备弹窗使用key值,解决打开弹窗数据为上次弹窗的数据
|
|
|
}
|
|
|
},
|
|
|
props: {
|
|
@@ -216,7 +217,10 @@ export default {
|
|
|
// 查看浮层设备详情
|
|
|
handleClickEquipDetail(row) {
|
|
|
if (row.assetnum) {
|
|
|
- this.$refs.equipDetail.open({ row: JSON.stringify(row) })
|
|
|
+ this.equipKey++
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.equipDetail.open({ row: JSON.stringify(row) })
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
// handleClickEquipDetail(row) {
|