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