Browse Source

fix:修改bug

wangsisi 4 months ago
parent
commit
9cd90a1bc6
1 changed files with 6 additions and 7 deletions
  1. 6 7
      src/views/authentic/Pdf.vue

+ 6 - 7
src/views/authentic/Pdf.vue

@@ -45,8 +45,8 @@
               </tr>
             </table>
             <div class="a4_sub_title">地块四至图</div>
-            <img :key="imgUrl" v-show="imgUrl" class="img-content img" style="z-index: 999" width="595" height="500" v-if="imgUrl"  :src="imgUrl" />
-            <div :key="imgUrl" v-show="!imgUrl" class="img-content" v-if="!imgUrl" ref="mapRef" id="mapRefId"></div>
+            <img :key="imgUrl" v-show="imgUrl" class="img-content img" style="z-index: 999" width="595" height="500" :src="imgUrl" />
+            <div :key="imgUrl" v-show="!imgUrl" class="img-content" ref="mapRef" id="mapRefId"></div>
             <div class="signature">签名:______________</div>
           </div>
         </div>
@@ -139,11 +139,10 @@ onMounted(()=>{
     data.createDate = dateFormat(new Date(), "YYYY-mm-dd HH:MM:SS");
     data.area = getAreaByWkt(data.geom)
     rowData.value = data
-    pdfMap.initMap(data,mapRef.value)
-    ;
-    // setTimeout(()=>{
-    //   toImg(pdfMap.kmap.map)
-    // },500)
+    pdfMap.initMap(data,mapRef.value);
+    setTimeout(()=>{
+      toImg(pdfMap.kmap.map)
+    },500)
   })
 })
 </script>