liuminjian 3 anni fa
parent
commit
50c36c94cd
1 ha cambiato i file con 20 aggiunte e 3 eliminazioni
  1. +20
    -3
      src/views/homestead/index.vue

+ 20
- 3
src/views/homestead/index.vue Vedi File

@@ -1140,9 +1140,26 @@ export default {
drawMapPolygonFun() {
let drawMapPolygon = this.draw.drawMapPolygon;
if (drawMapPolygon == false) {
this.coordinateList = "";
this.$set(this.draw, "drawMapPolygon", true);
$("#drawPolygon").trigger("click");
console.log(this.coordinateList);
if (this.coordinateList == "") {
this.$set(this.draw, "drawMapPolygon", true);
$("#drawPolygon").trigger("click");
} else {
this.$dialog
.confirm({
title: "提示",
message: "是否重新绘制画图",
})
.then(() => {
// on confirm
this.coordinateList = "";
this.$set(this.draw, "drawMapPolygon", true);
$("#drawPolygon").trigger("click");
})
.catch(() => {
// on cancel
});
}
} else {
$("#drawRemove").trigger("click");
this.$set(this.draw, "drawMapPolygon", false);


Caricamento…
Annulla
Salva