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) { visible(val) {
if (val) { if (val) {
this.reset() this.reset()
this.resetCar()
} }
} }
}, },

View File

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

View File

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