yusheng 1 ماه پیش
والد
کامیت
08661ce8b7
1فایلهای تغییر یافته به همراه19 افزوده شده و 3 حذف شده
  1. 19 3
      src/components/addDoc/sealManagement.vue

+ 19 - 3
src/components/addDoc/sealManagement.vue

@@ -68,10 +68,23 @@
           id: this.restoreData.id,
           droppedImages
         });
-
+        // uploadFileNew({
+        //   module: 'fm',
+        //   multiPartFile: pdfFile
+        // })
+        //   .then((res) => {
+        //     this.$emit('save', {
+        //       stampStoragePath: res.data ? [res.data] : [],
+        //       id: this.restoreData.id,
+        //       droppedImages
+        //     });
+        //     this.showEditFlag = false;
+        //   })
+        //   .finally(() => {
+        //     this.loading = false;
+        //   });
       },
       setFileUrl(row) {
-        console.log(row,'row')
         let file = row.stampStoragePath[0] || row.storagePath[0];
         let fileNames = file.storePath.split('/');
         let url =
@@ -92,7 +105,10 @@
             console.log(container);
 
             this.$refs.sealRef.init(
-             '',
+              container[0].innerHTML.replace(
+                /src="https?:\/\/[^\/]+(\/[^"]*)"/g,
+                `src="${window.location.origin}$1"`
+              ),
               {
                 droppedImages:row.droppedImages||''
               }