yusheng 1 سال پیش
والد
کامیت
60fdddcc18
3فایلهای تغییر یافته به همراه12 افزوده شده و 5 حذف شده
  1. 9 2
      public/fromQRCode/designDrawing.html
  2. 1 1
      src/utils/file.js
  3. 2 2
      src/views/inspectionStatistics/qualityControlWorkOrder/index.vue

+ 9 - 2
public/fromQRCode/designDrawing.html

@@ -90,7 +90,7 @@
         var batchNo = document.querySelector('#batchNo');
         var createTime = document.querySelector('#createTime');
         var designDrawing = document.querySelector('#designDrawing');
-
+    
         if(queryObj.productName){
             productName.innerHTML = decodeURIComponent(queryObj.productName);
         }
@@ -107,7 +107,14 @@
             createTime.innerHTML = decodeURIComponent(queryObj.createTime);
         }
         if(queryObj.designDrawingImg) {
-            designDrawing.src =decodeURIComponent(queryObj.designDrawingImg) 
+let fileNames = decodeURIComponent(queryObj.designDrawingImg) .split('/');
+      let url =
+     'https://37xu1hy03623.vicp.fun/api/main/file/getFile?objectName=' +
+     decodeURIComponent(queryObj.designDrawingImg)  +
+    '&fullfilename=' +
+    fileNames[fileNames.length - 1];
+        return url;
+            designDrawing.src =url
  
         }
     </script>

+ 1 - 1
src/utils/file.js

@@ -8,7 +8,7 @@ export function getImageUrl(path) {
   }
   let fileNames = path.split('/');
   let url =
-    'https://37xu1hy03623.vicp.fun//api/main/file/getFile?objectName=' +
+    'https://37xu1hy03623.vicp.fun/api/main/file/getFile?objectName=' +
     path +
     '&fullfilename=' +
     fileNames[fileNames.length - 1];

+ 2 - 2
src/views/inspectionStatistics/qualityControlWorkOrder/index.vue

@@ -82,7 +82,7 @@
               <h4 class="level" style="font-family: '宋体'">优级</h4>
             </aside>
             <aside class="right">
-              <ele-qr-code :value="text" :size="120" />
+              <ele-qr-code :value="text" :size="120" level="L"  />
             </aside>
           </footer>
         </div>
@@ -549,7 +549,7 @@ export default {
         batchNo: this.currentRow?.batchNo,
         createTime: this.currentRow?.qualityTime?.split(' ')[0],
         designDrawingImg: encodeURIComponent(
-          getImageUrl(this.currentRow?.picture?.storePath)
+          this.currentRow?.picture?.storePath
         )
       });
       this.text ='https://37xu1hy03623.vicp.fun/qms/fromQRCode/designDrawing.html' +