bug 修复
This commit is contained in:
parent
618be7bf0c
commit
d6b503931c
|
|
@ -25,12 +25,7 @@
|
||||||
:style="{ transform: `translate(${offsetX}px, ${offsetY}px)` }"
|
:style="{ transform: `translate(${offsetX}px, ${offsetY}px)` }"
|
||||||
>
|
>
|
||||||
<!-- 图片,宽高 100% 跟随 SVG -->
|
<!-- 图片,宽高 100% 跟随 SVG -->
|
||||||
<image
|
<image width="100%" height="100%" :href="demoImg" preserveAspectRatio="none" />
|
||||||
width="100%"
|
|
||||||
height="100%"
|
|
||||||
:href="mapInfo.mapBase64"
|
|
||||||
preserveAspectRatio="none"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<!-- 标记的点位 -->
|
<!-- 标记的点位 -->
|
||||||
<circle
|
<circle
|
||||||
|
|
@ -563,6 +558,11 @@ const handleModifyPoint = () => {
|
||||||
id: point.id,
|
id: point.id,
|
||||||
isAdd: point.isAdd,
|
isAdd: point.isAdd,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (point.markerAngle === null) {
|
||||||
|
message.warning('请先选择角度')
|
||||||
|
return
|
||||||
|
}
|
||||||
emits('onHandleAddMarker', markerInfo)
|
emits('onHandleAddMarker', markerInfo)
|
||||||
}
|
}
|
||||||
closeContextMenu()
|
closeContextMenu()
|
||||||
|
|
@ -597,7 +597,7 @@ const addDevicePoint = (x, y, y1) => {
|
||||||
markerY: y, // 直接存储逻辑坐标
|
markerY: y, // 直接存储逻辑坐标
|
||||||
markerY1: y1, // 直接存储逻辑坐标
|
markerY1: y1, // 直接存储逻辑坐标
|
||||||
markerName: '',
|
markerName: '',
|
||||||
markerAngle: '', // 角度
|
markerAngle: null, // 角度
|
||||||
markerPreset: '', // 摄像头预置位
|
markerPreset: '', // 摄像头预置位
|
||||||
isAdd: true,
|
isAdd: true,
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue