소스 검색

提示

wulanhaote
liuminjian 3 년 전
부모
커밋
50c36c94cd
1개의 변경된 파일20개의 추가작업 그리고 3개의 파일을 삭제
  1. +20
    -3
      src/views/homestead/index.vue

+ 20
- 3
src/views/homestead/index.vue 파일 보기

@@ -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);


불러오는 중...
취소
저장