bug修复
This commit is contained in:
parent
b57db28bef
commit
0265c66715
@ -118,6 +118,7 @@ export default {
|
|||||||
visible(val) {
|
visible(val) {
|
||||||
if (val) {
|
if (val) {
|
||||||
this.reset()
|
this.reset()
|
||||||
|
this.resetCar()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user