wangsisi před 5 měsíci
rodič
revize
0122c94dc9

+ 2 - 2
src/router/mainRoutes.js

@@ -8,8 +8,8 @@
  */
 export default [
     {
-        path: "/home",
-        name: "Home",
+        path: "/index",
+        name: "Index",
         // component: () => import("@/views/home/index.vue"),
         component: () => import("@/views/authentic/index.vue"),
     },

+ 1 - 1
src/utils/ol-map/Map.js

@@ -1056,7 +1056,7 @@ class Map {
 
 	/**
 	 * @description 设置地图指针样式
-	 * @param {String} cursorStyle 鼠标样式("default"默认指针,"pointer"小手,"move"移动指针, "text"文本指针,"wait"等待状态,"help"帮助),必填
+	 * @param {String} cursorStyle 鼠标样式("default"默认指针,"pointer"小手,"move"移动指针, "text"文本指针,"wait"等待状态,"help"帮助,"crosshair"十字指针),必填
 	 * @memberof Map
 	*/
 	setDefaultCursor(cursorStyle) {

+ 3 - 3
src/views/authentic/Pdf.vue

@@ -142,9 +142,9 @@ onMounted(()=>{
     data.area = getAreaByWkt(data.geom)
     rowData.value = data
     pdfMap.initMap(data,mapRef.value)
-    // setTimeout(()=>{
-    //   toImg(pdfMap.kmap.map)
-    // },500)
+    setTimeout(()=>{
+      toImg(pdfMap.kmap.map)
+    },500)
   })
 })
 </script>

+ 3 - 9
src/views/authentic/index.vue

@@ -207,7 +207,7 @@
             </div>
           </div>
           <div class="edit-footer">
-            <div @click="onCancel(true)" class="btn cancel">取消</div>
+            <div @click="onCancel()" class="btn cancel">取消</div>
             <div @click="onSubmit" class="btn save">保存</div>
           </div>
         </div>
@@ -419,18 +419,12 @@ const handleEdit = () => {
 
 // 取消
 const isUpdata = ref(true);
-const onCancel = (isCancel) => {
+const onCancel = () => {
   isEdit.value = false;
-  if (isUpdata.value || isCancel) {
+  if (isUpdata.value) {
     authenticMap.cancelDraw();
   } else {
-    // authenticMap.cancelDraw();
     getList((geoms) => {
-      //   const geometriesWkt = []
-      //   for(let item of geoms){
-      //     geometriesWkt.push(item.featureWkt)
-      //   }
-      //   authenticMap.fit(geometriesWkt)
       authenticMap.allUnSelect();
     });
   }