duy 2 hete
szülő
commit
eede9bd14c

+ 1 - 1
package.json

@@ -25,7 +25,7 @@
         "dayjs": "^1.11.13",
         "echarts": "^5.5.1",
         "element-plus": "^2.8.5",
-        "hc-vue3-ui": "^4.7.5",
+        "hc-vue3-ui": "^4.7.8",
         "js-base64": "^3.7.7",
         "js-cookie": "^3.0.5",
         "js-fast-way": "^0.5.7",

+ 2 - 3
src/utils/btn-auth.js

@@ -26,12 +26,11 @@ export const toPdfPage = (url) => {
         return
     }
     let rawUrl = url
-    const encodedUrl = encodeURIComponent(rawUrl)
-console.log(encodedUrl, 'encodedUrl')
+
 
     fullDrawer({
         type: 'url',
-        content: '/#/pdf?url=' + encodedUrl,
+        content: '/#/pdf?url=' + rawUrl,
     }).then()
     //window.open('/#/pdf?code=' + encode(url), '_blank')
 }

+ 8 - 4
src/views/archives/manage/carryDrawer/carrySpotChecksDrawer.vue

@@ -298,8 +298,10 @@ const getArchiveFileListData = async () => {
                    checkmetaFileId.value = cscTableData1.value[0].id
             // pdfUrl.value = cscTableData1.value[0].pdfFileUrl
                 let rawUrl = cscTableData1.value[0].pdfFileUrl
-                const encodedUrl = encodeURIComponent(rawUrl)
-                pdfUrl.value = encodedUrl
+         
+                console.log( pdfUrl.value, ' pdfUrl.value')
+                
+                pdfUrl.value = rawUrl
                 checkId.value = cscTableData1.value[0].id
                 getmetaInfo()
             } else {
@@ -339,8 +341,10 @@ const changePdf = (row) => {
     }, 100)
 
     let rawUrl = row['pdfFileUrl'] || ''
-    const encodedUrl = encodeURIComponent(rawUrl)
-    pdfUrl.value = encodedUrl
+
+    pdfUrl.value = rawUrl
+    console.log( pdfUrl.value, ' pdfUrl.value')
+    
     checkId.value = row.id
     checkmetaFileId.value = row.id
     getmetaInfo()

+ 5 - 5
src/views/archives/manage/inspects.vue

@@ -353,9 +353,9 @@ const getArchiveFileListData = async ()=>{
             checkmetaFileId.value = cscTableData1.value[0].id
             let rawUrl = cscTableData1.value[0]?.pdfFileUrl || ''
 
-        const encodedUrl = encodeURIComponent(rawUrl)
-        pdfUrl.value = encodedUrl
-        console.log(encodedUrl, 'encodedUrl')
+  
+        pdfUrl.value = rawUrl
+        console.log(rawUrl, 'rawUrl')
         
             checkId.value = cscTableData1.value[0].id
            
@@ -397,8 +397,8 @@ const changePdf = (row)=>{
     // pdfUrl.value = row['pdfFileUrl'] || ''
 
     let rawUrl = row['pdfFileUrl'] || ''
-        const encodedUrl = encodeURIComponent(rawUrl)
-        pdfUrl.value = encodedUrl
+
+        pdfUrl.value = rawUrl
    
     checkId.value = row.id
     checkmetaFileId.value = row.id

+ 6 - 6
src/views/archives/manage/query.vue

@@ -1126,8 +1126,8 @@ const getArchiveFileListData = async () => {
         cscTableData1.value = getArrValue(data['approvalFileList'])
         // pdfUrl.value = tableFileData.value[0]?.pdfFileUrl
         let rawUrl = tableFileData.value[0]?.pdfFileUrl
-        const encodedUrl = encodeURIComponent(rawUrl)
-        pdfUrl.value = encodedUrl
+
+        pdfUrl.value = rawUrl
         checkId.value = tableFileData.value[0]?.id
 
     } else {
@@ -1200,8 +1200,8 @@ const consultFileClick = async (row, type) => {
         checkId.value = row.id
         // pdfUrl.value = row.pdfFileUrl
         let rawUrl = row.pdfFileUrl
-        const encodedUrl = encodeURIComponent(rawUrl)
-        pdfUrl.value = encodedUrl
+ 
+        pdfUrl.value = rawUrl
         console.log(pdfUrl.value, '222222222222')
         getmetaInfo(checkId.value)
         isCarrySpotChecksDrawer.value = true
@@ -1235,8 +1235,8 @@ const changePdf = (row, index) => {
  
     let rawUrl = row['pdfFileUrl'] || ''
   
-        const encodedUrl = encodeURIComponent(rawUrl)
-        pdfUrl.value = encodedUrl
+
+        pdfUrl.value = rawUrl
                 console.log( pdfUrl.value, ' pdfUrl.value')
     checkId.value = row.id
     isFile.value = 2

+ 4 - 4
src/views/transfer/components/carry-spot-checks.vue

@@ -329,8 +329,8 @@ const getArchiveFileListData = async () => {
             checkmetaFileId.value = cscTableData1.value[0].id
             // pdfUrl.value = cscTableData1.value[0].pdfFileUrl
             let rawUrl = cscTableData1.value[0].pdfFileUrl
-        const encodedUrl = encodeURIComponent(rawUrl)
-        pdfUrl.value = encodedUrl
+ 
+        pdfUrl.value = rawUrl
          if (pdfUrl.value && pdfUrl?.value.length > 0) {
                 setTimeout(() => {
 
@@ -377,8 +377,8 @@ const changePdf = (row) => {
     }, 100)
     // pdfUrl.value = row['pdfFileUrl'] || ''
     let rawUrl = row['pdfFileUrl'] || ''
-    const encodedUrl = encodeURIComponent(rawUrl)
-    pdfUrl.value = encodedUrl
+
+    pdfUrl.value = rawUrl
     checkId.value = row.id
     checkmetaFileId.value = row.id
     getmetaInfo()

+ 4 - 4
yarn.lock

@@ -2164,10 +2164,10 @@ has-flag@^4.0.0:
   resolved "http://219.151.181.73:9000/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b"
   integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==
 
-hc-vue3-ui@^4.7.5:
-  version "4.7.5"
-  resolved "http://219.151.181.73:9000/hc-vue3-ui/-/hc-vue3-ui-4.7.5.tgz#6add859bb1fb971e5478822d5dc7f57828043673"
-  integrity sha512-mSciFtK5wcQGxMGMA7ay4brlcCV1rWsp95fb90v5I3JL2GFSBiDV3Ie6MVibkuzEPsDVZgrUOUTRJXg8Pmxfrg==
+hc-vue3-ui@^4.7.8:
+  version "4.7.8"
+  resolved "http://219.151.181.73:9000/hc-vue3-ui/-/hc-vue3-ui-4.7.8.tgz#0e9f427d8e799c8f73211b06648f430673c81e46"
+  integrity sha512-Q/dRTj3ccnl9VGYv7tCn3zllsoB+8+hKpkcIzl5K7LPQmi1fNGupd6MlhHmct+ztapZX5uU6zTqzF6v47efOXQ==
   dependencies:
     axios "^1.7.7"
     dayjs "^1.11.13"