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