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