更改编辑围栏覆盖
parent
bd7ff2e6d1
commit
2d1fd3e90f
|
@ -133,6 +133,9 @@ export default {
|
|||
// },
|
||||
|
||||
methods: {
|
||||
handleSelectionChange(val) {
|
||||
this.dis = val;
|
||||
},
|
||||
updialog(data) {
|
||||
this.dialogVisible=true
|
||||
setTimeout(() => {
|
||||
|
@ -141,10 +144,18 @@ export default {
|
|||
)
|
||||
this.updateFences = data
|
||||
|
||||
this.updateFences.fenceLocation = ""
|
||||
},
|
||||
handleSelectionChange(val) {
|
||||
this.dis = val;
|
||||
|
||||
updateFence() {
|
||||
this.updateFences.fenceLocation = this.mapAddr
|
||||
console.log(this.updateFences)
|
||||
updateFenceMapAddr(this.updateFences).then(res =>{
|
||||
this.dialogVisible=false
|
||||
this.getFenceList()
|
||||
this.updateFences = {}
|
||||
this.mapAddr = ''
|
||||
// location.reload()
|
||||
})
|
||||
},
|
||||
initMap() {
|
||||
AMapLoader.load({
|
||||
|
@ -214,21 +225,13 @@ export default {
|
|||
}
|
||||
})
|
||||
},
|
||||
updateFence() {
|
||||
this.updateFences.fenceLocation = ""
|
||||
this.updateFences.fenceLocation = this.mapAddr
|
||||
console.log(this.updateFences)
|
||||
updateFenceMapAddr(this.updateFences).then(res =>{
|
||||
this.dialogVisible=false
|
||||
this.getFenceList()
|
||||
})
|
||||
},
|
||||
//删除
|
||||
deleteFence(id) {
|
||||
deleteFenceById(id).then(res =>{
|
||||
this.getFenceList()
|
||||
})
|
||||
},
|
||||
|
||||
upiInsertDialog() {
|
||||
this.dialogVisibleTwo = true
|
||||
},
|
||||
|
@ -236,6 +239,7 @@ export default {
|
|||
insertFence(this.insertFences).then(res =>{
|
||||
this.dialogVisibleTwo = false
|
||||
this.getFenceList()
|
||||
this.insertFences={}
|
||||
})
|
||||
},
|
||||
getFenceList() {
|
||||
|
@ -246,6 +250,9 @@ export default {
|
|||
},
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
drawPolygon () {
|
||||
this.mouseTool.polygon({
|
||||
strokeColor: "#FF33FF",
|
||||
|
|
Loading…
Reference in New Issue