更改编辑围栏覆盖

master
ZhiShuo_Lou 2023-11-23 14:15:19 +08:00
parent bd7ff2e6d1
commit 2d1fd3e90f
1 changed files with 19 additions and 12 deletions

View File

@ -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",