更改编辑围栏

master
ZhiShuo_Lou 2023-11-23 10:53:17 +08:00
parent 34beab231d
commit 08d50400d2
1 changed files with 3 additions and 5 deletions

View File

@ -134,7 +134,6 @@ export default {
methods: { methods: {
updialog(data) { updialog(data) {
this.updateFences.fenceLocation=""
this.dialogVisible=true this.dialogVisible=true
setTimeout(() => { setTimeout(() => {
this.initMap();}, this.initMap();},
@ -214,14 +213,13 @@ export default {
}) })
}, },
updateFence() { updateFence() {
this.updateFences.fenceLocation = "" this.updateFences.fenceLocation = this.mapAddr
this.updateFences.fenceLocation = this.mapAddr
console.log(this.updateFences) console.log(this.updateFences)
updateFenceMapAddr(this.updateFences).then(res =>{ updateFenceMapAddr(this.updateFences).then(res =>{
this.dialogVisible=false this.dialogVisible=false
this.$router.push("/car/fence") this.getFenceList()
}) })
this.updateFences.fenceLocation = ""
}, },
// //
deleteFence(id) { deleteFence(id) {