From 0d04c984e5719a160d3c0e8433c13f78de5cefe2 Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Tue, 19 Jul 2022 17:27:13 +0800
Subject: [PATCH] 1
---
src/components/map/mainInThere.vue | 32 ++++++++++++++++----------------
1 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/src/components/map/mainInThere.vue b/src/components/map/mainInThere.vue
index ab41e1c..ef202d9 100644
--- a/src/components/map/mainInThere.vue
+++ b/src/components/map/mainInThere.vue
@@ -58,13 +58,10 @@
</el-button-group>
</div>
<el-button-group id="dataConfirm" style="display: none">
- <el-button
- type="success"
- icon="el-icon-check"
- @click="useMapData"
- v-show="notNow"
+ <el-button type="success" icon="el-icon-check" @click="useMapData"
>确定选择</el-button
>
+ <!-- v-show="notNow" -->
<el-button
type="danger"
@click="clearUseMapData"
@@ -478,6 +475,7 @@
} else {
this.notNow = true;
}
+ //notNow来确定是修改值还是增加值 是否显示$("#dataConfirm").show(100);
this.nowIndex = num;
if (val.indexOf("路径") != -1) {
// console.log("加载路径按钮");
@@ -488,6 +486,7 @@
}
},
controlBut(openName, notNow) {
+ //判断哪个dom打开
this.closeOurBut();
this[openName] = true;
$("#" + openName).show();
@@ -497,6 +496,7 @@
}
},
closeOurBut(open) {
+ //整体关闭dom
$("#dataConfirm").hide();
$("#openDrawPoint").hide();
$("#openDrawLine").hide();
@@ -506,6 +506,7 @@
if (open) {
this.openTitle = "";
this.$parent.closeOpenedMap(); //开放按钮
+ this.drawLayerRoom();
}
},
//取消按钮
@@ -517,14 +518,13 @@
//返回用数据
// console.log(this.openDrawChiose, this.nowIndex);
this.$parent.MapDataShow = false;
- let val;
- if (this.openDrawChiose == "openDrawLine") {
- val = "line";
- } else if (this.openDrawChiose == "openDrawPoint") {
- val = "point";
- } else {
- val = "notData";
- }
+ let val =
+ this.openDrawChiose == "openDrawLine"
+ ? "line"
+ : this.openDrawChiose == "openDrawPoint"
+ ? "point"
+ : "notData";
+ // console.log(val);
this.$parent.backMapDataOurData(val, this.nowIndex);
// 返回后关闭操作按钮
this.closeOurBut();
@@ -662,9 +662,9 @@
);
that.peopleLineAddlayer.getSource().addFeature(feature_LineString);
that.butTitle = "重新绘画";
- if (!this.fromView) {
- $("#dataConfirm").show(100);
- }
+ // if (!this.fromView) {
+ $("#dataConfirm").show(100);
+ // }
if (that.draw != null) {
that.beginDraw = false;
that.draw.controlDrawing(true);
--
Gitblit v1.9.3