修改删除路由请求方式
parent
072d26099a
commit
0937c24fcb
|
@ -32,6 +32,6 @@ export function fenceList(data) {
|
||||||
export function deleteFenceById(id) {
|
export function deleteFenceById(id) {
|
||||||
return request({
|
return request({
|
||||||
url: 'carBase/baseFence/deleteFence?fenceId='+ id,
|
url: 'carBase/baseFence/deleteFence?fenceId='+ id,
|
||||||
method: 'post'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -214,6 +214,7 @@ 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 =>{
|
||||||
|
@ -221,6 +222,7 @@ export default {
|
||||||
alert("围栏编辑成功!")
|
alert("围栏编辑成功!")
|
||||||
this.dialogVisible=false
|
this.dialogVisible=false
|
||||||
}
|
}
|
||||||
|
this.getFenceList()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//删除
|
//删除
|
||||||
|
|
Loading…
Reference in New Issue