bug修复

This commit is contained in:
jiayu 2025-06-09 18:40:38 +08:00
parent b57db28bef
commit 0265c66715
3 changed files with 7 additions and 2 deletions

View File

@ -118,6 +118,7 @@ export default {
visible(val) {
if (val) {
this.reset()
this.resetCar()
}
}
},

View File

@ -172,6 +172,7 @@ export default {
openEditDialog(item) {
this.fenceCreateShow = true
this.addForm = item
this.locationList = JSON.parse(item.fenceShapeArr)
},
handleCancel() {
this.fenceCreateShow = false

View File

@ -112,8 +112,11 @@ export default {
}
},
async savePointPosition(item) {
const api = item.monitorId ? editDevicePositionApi : addDevicePositionApi
api({ ...item, projectSn: this.$store.state.projectSn }).then(res => {
let markerItem = this.pointList.find(val => val.devSn === item.devSn)
markerItem.lng = item.lng
markerItem.lat = item.lat
const api = markerItem.monitorId ? editDevicePositionApi : addDevicePositionApi
api({ ...markerItem, projectSn: this.$store.state.projectSn }).then(res => {
if (res.success) {
this.$message.success(res.message)
this.getPointList()