duy vor 3 Monaten
Ursprung
Commit
3e82a92089

+ 1 - 1
src/router/modules/base.js

@@ -85,7 +85,7 @@ export default [
         path: '/file',
         name: 'file',
         redirect: '/file/collection',
-        meta: { title: '资料收集' },
+        meta: { title: '档案收集' },
         component: Layout,
         children: [
             {

+ 5 - 1
src/utils/btn-auth.js

@@ -23,9 +23,13 @@ export const toPdfPage = (url) => {
         window.$message.warning('pdf地址为空')
         return
     }
+    let rawUrl = url
+    const encodedUrl = encodeURIComponent(rawUrl)
+console.log(encodedUrl, 'encodedUrl')
+
     fullDrawer({
         type: 'url',
-        content: '/#/pdf?url=' + url,
+        content: '/#/pdf?url=' + encodedUrl,
     }).then()
     //window.open('/#/pdf?code=' + encode(url), '_blank')
 }

+ 11 - 2
src/views/archives/manage/inspects.vue

@@ -340,7 +340,12 @@ const getArchiveFileListData = async ()=>{
         cscTableData1.value = getArrValue(data['approvalFileList'])
         if (cscTableData1.value.length > 0) {
             checkmetaFileId.value = cscTableData1.value[0].id
-            pdfUrl.value = cscTableData1.value[0]?.pdfFileUrl || ''
+            // pdfUrl.value = cscTableData1.value[0]?.pdfFileUrl || ''
+            let rawUrl = cscTableData1.value[0]?.pdfFileUrl || ''
+        const encodedUrl = encodeURIComponent(rawUrl)
+        pdfUrl.value = encodedUrl
+        console.log(encodedUrl, 'encodedUrl')
+        
             checkId.value = cscTableData1.value[0].id
            
             
@@ -372,7 +377,11 @@ const changePdf = (row)=>{
     setTimeout(() => {
         isshowPdf.value = true
     }, 100)
-    pdfUrl.value = row['pdfFileUrl'] || ''
+    // pdfUrl.value = row['pdfFileUrl'] || ''
+
+    let rawUrl = row['pdfFileUrl'] || ''
+        const encodedUrl = encodeURIComponent(rawUrl)
+        pdfUrl.value = encodedUrl
     checkId.value = row.id
     checkmetaFileId.value = row.id
     getmetaInfo()

+ 12 - 4
src/views/archives/manage/query.vue

@@ -1123,7 +1123,10 @@ const getArchiveFileListData = async () => {
         fileInfo.value.pageNumber = data.pageNumber
         tableFileData.value = getArrValue(data['approvalFileList'])
         cscTableData1.value = getArrValue(data['approvalFileList'])
-        pdfUrl.value = tableFileData.value[0]?.pdfFileUrl
+        // pdfUrl.value = tableFileData.value[0]?.pdfFileUrl
+        let rawUrl = tableFileData.value[0]?.pdfFileUrl
+        const encodedUrl = encodeURIComponent(rawUrl)
+        pdfUrl.value = encodedUrl
         checkId.value = tableFileData.value[0]?.id
 
     } else {
@@ -1194,7 +1197,10 @@ const consultFileClick = async (row, type) => {
 
     } else if (type == 2) {//查阅卷内文件
         checkId.value = row.id
-        pdfUrl.value = row.pdfFileUrl
+        // pdfUrl.value = row.pdfFileUrl
+        let rawUrl = row.pdfFileUrl
+        const encodedUrl = encodeURIComponent(rawUrl)
+        pdfUrl.value = encodedUrl
         getmetaInfo(checkId.value)
         isCarrySpotChecksDrawer.value = true
     }
@@ -1223,9 +1229,11 @@ const changePdf = (row, index) => {
     setTimeout(() => {
         isShowPdf.value = true
     }, 100)
-    pdfUrl.value = row['pdfFileUrl'] || ''
+    // pdfUrl.value = row['pdfFileUrl'] || ''
  
-    
+    let rawUrl = row['pdfFileUrl'] || ''
+        const encodedUrl = encodeURIComponent(rawUrl)
+        pdfUrl.value = encodedUrl
     checkId.value = row.id
     isFile.value = 2
     getmetaInfo(checkId.value)

+ 1 - 1
src/views/home/auth.vue

@@ -91,7 +91,7 @@ const loginByTokenApi = async (form) => {
             if (website.ex_role_id.includes(role_id)) {
                 router.push({ name: 'transfer-initial-expert' })
             } else {
-                router.push({ name: 'file' })
+                router.push({ name: 'statistics-stats' })
             }
             } else {
                 //甬台温,跳转大屏

+ 1 - 1
src/views/login/index.vue

@@ -166,7 +166,7 @@ const formValidateClick = async () => {
             if (website.ex_role_id.includes(role_id)) {
                 router.push({ name: 'transfer-initial-expert' })
             } else {
-                router.push({ name: 'file' })
+                router.push({ name: 'statistics-stats' })
             }
         } else {
             //甬台温,跳转大屏

+ 1 - 1
src/views/login/new.vue

@@ -149,7 +149,7 @@ const formValidateClick = async () => {
             if (website.ex_role_id.includes(role_id)) {
                 router.push({ name: 'transfer-initial-expert' })
             } else {
-                router.push({ name: 'file' })
+                router.push({ name: 'statistics-stats' })
             }
         } else {
             //甬台温,跳转大屏

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

@@ -326,7 +326,10 @@ const getArchiveFileListData = async () => {
         cscTableData1.value = getArrValue(data['approvalFileList'])
         if (cscTableData1.value.length > 0) {
             checkmetaFileId.value = cscTableData1.value[0].id
-            pdfUrl.value = cscTableData1.value[0].pdfFileUrl
+            // pdfUrl.value = cscTableData1.value[0].pdfFileUrl
+            let rawUrl = cscTableData1.value[0].pdfFileUrl
+        const encodedUrl = encodeURIComponent(rawUrl)
+        pdfUrl.value = encodedUrl
             checkId.value = cscTableData1.value[0].id
             getmetaInfo()
         }
@@ -362,7 +365,10 @@ const changePdf = (row) => {
     setTimeout(() => {
         ishowPdf.value = true
     }, 100)
-    pdfUrl.value = row['pdfFileUrl'] || ''
+    // pdfUrl.value = row['pdfFileUrl'] || ''
+    let rawUrl = row['pdfFileUrl'] || ''
+    const encodedUrl = encodeURIComponent(rawUrl)
+    pdfUrl.value = encodedUrl
     checkId.value = row.id
     checkmetaFileId.value = row.id
     getmetaInfo()

+ 1 - 1
src/views/user/auth.vue

@@ -105,7 +105,7 @@ const useAppLoginApi = async (form) => {
             if (website.ex_role_id.includes(role_id)) {
                 router.push({ name: 'transfer-initial-expert' })
             } else {
-                router.push({ name: 'file' })
+                router.push({ name: 'statistics-stats' })
             }
         } else {
             //甬台温,跳转大屏