liuyg
2022-03-24 d717492e9ff7dfd56762e1c55a97081a502c871f
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"
@@ -506,6 +503,7 @@
      if (open) {
        this.openTitle = "";
        this.$parent.closeOpenedMap(); //开放按钮
        this.drawLayerRoom();
      }
    },
    //取消按钮
@@ -517,14 +515,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 +659,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);