更改编辑围栏2

master
ZhiShuo_Lou 2023-11-23 11:29:41 +08:00
parent 08d50400d2
commit bd7ff2e6d1
1 changed files with 3 additions and 1 deletions

View File

@ -140,6 +140,8 @@ export default {
500 500
) )
this.updateFences = data this.updateFences = data
this.updateFences.fenceLocation = ""
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.dis = val; this.dis = val;
@ -213,13 +215,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.getFenceList() this.getFenceList()
}) })
this.updateFences.fenceLocation = ""
}, },
// //
deleteFence(id) { deleteFence(id) {