查看返回参数2
parent
f104e4205e
commit
34beab231d
|
@ -218,10 +218,8 @@ export default {
|
||||||
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 =>{
|
||||||
if (res.data.code === 200){
|
|
||||||
alert("围栏编辑成功!")
|
this.dialogVisible=false
|
||||||
this.dialogVisible=false
|
|
||||||
}
|
|
||||||
this.$router.push("/car/fence")
|
this.$router.push("/car/fence")
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -237,10 +235,7 @@ export default {
|
||||||
onSubmit() {
|
onSubmit() {
|
||||||
insertFence(this.insertFences).then(res =>{
|
insertFence(this.insertFences).then(res =>{
|
||||||
this.dialogVisibleTwo = false
|
this.dialogVisibleTwo = false
|
||||||
if (res.code === 500){
|
this.getFenceList()
|
||||||
alert("添加围栏失败!");
|
|
||||||
}
|
|
||||||
this.$router.push("/car/fence")
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getFenceList() {
|
getFenceList() {
|
||||||
|
|
Loading…
Reference in New Issue