فهرست منبع

fix:修改打印bug和确权编辑时不让点击打印

wangsisi 5 ماه پیش
والد
کامیت
68f2c32e99
2فایلهای تغییر یافته به همراه11 افزوده شده و 12 حذف شده
  1. 4 12
      src/views/authentic/Pdf.vue
  2. 7 0
      src/views/authentic/index.vue

+ 4 - 12
src/views/authentic/Pdf.vue

@@ -45,10 +45,8 @@
               </tr>
             </table>
             <div class="a4_sub_title">地块四至图</div>
-            <div class="img_box" >
-              <img class="img-content" width="595" height="500" v-if="imgUrl"  :src="imgUrl" />
-              <div class="img-content" v-else ref="mapRef" id="mapRefId"></div>
-            </div>
+            <img class="img" width="595" height="500" v-if="imgUrl"  :src="imgUrl" />
+            <div class="img" v-else ref="mapRef" id="mapRefId"></div>
             <div class="signature">签名:______________</div>
           </div>
         </div>
@@ -100,7 +98,7 @@ let printObj = {
   id:"printTest",
   popTitle: 'good print',
   beforeOpenCallback (vue) {
-    toImg(pdfMap.kmap.map)
+    // toImg(pdfMap.kmap.map)
     console.log('打开之前')
   },
   openCallback (vue) {
@@ -266,16 +264,10 @@ $body-height:calc(100% - $title-height);
         font-weight: normal;
       }
     }
-    .img_box{
-      position: relative;
+    .img{
       width:595px;
       height: 500px;
       z-index: 1000;
-      .img-content{
-        position: absolute;
-        width:595px;
-        height: 500px;
-      }
     }
     .signature{
       width:595px;

+ 7 - 0
src/views/authentic/index.vue

@@ -133,6 +133,7 @@
               <div
                 v-show="mapData.selectPointArr.length > 0"
                 class="edit ml"
+                :class="{'disabled-button':!disabledForm}"
                 @click="handlePrint"
               >
                 打印
@@ -689,6 +690,12 @@ watch(
     }
   }
 
+  .disabled-button{
+    pointer-events: none;
+    opacity: 0.5;
+    cursor: not-allowed;
+  }
+
   .top {
     display: flex;
     justify-content: space-between;