bill 4 anni fa
parent
commit
0f747cdf4c
1 ha cambiato i file con 7 aggiunte e 2 eliminazioni
  1. 7 2
      locat/addDataSet.html

+ 7 - 2
locat/addDataSet.html

@@ -164,7 +164,7 @@
             <div class="rightBox">
                 <div class="map-layer">
                     <div id="map" class="map"></div>
-                    <image-tranform :map-ol="map" v-if="map" ref="imageTranform" />
+                    <image-tranform :map-ol="map" v-if="map && showImageTranform" ref="imageTranform" />
                 </div>
             </div>
 
@@ -206,7 +206,7 @@
             el: '#app',
             data() {
                 return {
-
+                    showImageTranform: true,
                     pointLayerArray: [],
                     map: null,
                     gaodeMapLayer: {},
@@ -270,10 +270,15 @@
             },
             methods: {
                 getImageTransform() {
+
                     // 地图数据上传  如果用户没有选择数据直接返回true  如果有数据要上传返回promise
                     this.$refs.imageTranform.uploadData()
                         .then(res => {
                             alert('成功')
+                            this.showImageTranform = false
+                            this.$nextTick(() => {
+                                this.showImageTranform = true
+                            })
                         })
                         .catch(() => {
                             alert('失败')