bug修复
This commit is contained in:
parent
b57db28bef
commit
0265c66715
@ -118,6 +118,7 @@ export default {
|
||||
visible(val) {
|
||||
if (val) {
|
||||
this.reset()
|
||||
this.resetCar()
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@ -172,6 +172,7 @@ export default {
|
||||
openEditDialog(item) {
|
||||
this.fenceCreateShow = true
|
||||
this.addForm = item
|
||||
this.locationList = JSON.parse(item.fenceShapeArr)
|
||||
},
|
||||
handleCancel() {
|
||||
this.fenceCreateShow = false
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user