查看返回参数
parent
284f128f3e
commit
f104e4205e
|
@ -222,13 +222,12 @@ export default {
|
||||||
alert("围栏编辑成功!")
|
alert("围栏编辑成功!")
|
||||||
this.dialogVisible=false
|
this.dialogVisible=false
|
||||||
}
|
}
|
||||||
this.getFenceList()
|
this.$router.push("/car/fence")
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//删除
|
//删除
|
||||||
deleteFence(id) {
|
deleteFence(id) {
|
||||||
deleteFenceById(id).then(res =>{
|
deleteFenceById(id).then(res =>{
|
||||||
console.log(res)
|
|
||||||
this.getFenceList()
|
this.getFenceList()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -238,11 +237,10 @@ export default {
|
||||||
onSubmit() {
|
onSubmit() {
|
||||||
insertFence(this.insertFences).then(res =>{
|
insertFence(this.insertFences).then(res =>{
|
||||||
this.dialogVisibleTwo = false
|
this.dialogVisibleTwo = false
|
||||||
if (res.data.code === 500){
|
if (res.code === 500){
|
||||||
alert("添加围栏失败!");
|
alert("添加围栏失败!");
|
||||||
}
|
}
|
||||||
alert("添加围栏成功!")
|
this.$router.push("/car/fence")
|
||||||
this.getFenceList()
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getFenceList() {
|
getFenceList() {
|
||||||
|
|
Loading…
Reference in New Issue