|
@@ -546,7 +546,7 @@ import imageViewGui from '~src/assets/view/gui.png'
|
|
|
import imageViewGui1 from '~src/assets/view/gui1.png'
|
|
|
import imageViewGui2 from '~src/assets/view/gui2.png'
|
|
|
import { setTimeString } from '~src/utils/tools'
|
|
|
-import encodeFullUrl from '~src/utils/safe-url-encoder'
|
|
|
+
|
|
|
|
|
|
//变量
|
|
|
const useAppState = useAppStore()
|
|
@@ -1126,7 +1126,7 @@ const getArchiveFileListData = async () => {
|
|
|
cscTableData1.value = getArrValue(data['approvalFileList'])
|
|
|
// pdfUrl.value = tableFileData.value[0]?.pdfFileUrl
|
|
|
let rawUrl = tableFileData.value[0]?.pdfFileUrl
|
|
|
- const encodedUrl = encodeFullUrl(rawUrl)
|
|
|
+ const encodedUrl = encodeURIComponent(rawUrl)
|
|
|
pdfUrl.value = encodedUrl
|
|
|
checkId.value = tableFileData.value[0]?.id
|
|
|
|
|
@@ -1200,8 +1200,9 @@ const consultFileClick = async (row, type) => {
|
|
|
checkId.value = row.id
|
|
|
// pdfUrl.value = row.pdfFileUrl
|
|
|
let rawUrl = row.pdfFileUrl
|
|
|
- const encodedUrl = encodeFullUrl(rawUrl)
|
|
|
+ const encodedUrl = encodeURIComponent(rawUrl)
|
|
|
pdfUrl.value = encodedUrl
|
|
|
+ console.log(pdfUrl.value, '222222222222')
|
|
|
getmetaInfo(checkId.value)
|
|
|
isCarrySpotChecksDrawer.value = true
|
|
|
}
|
|
@@ -1233,8 +1234,10 @@ const changePdf = (row, index) => {
|
|
|
// pdfUrl.value = row['pdfFileUrl'] || ''
|
|
|
|
|
|
let rawUrl = row['pdfFileUrl'] || ''
|
|
|
- const encodedUrl = encodeFullUrl(rawUrl)
|
|
|
+
|
|
|
+ const encodedUrl = encodeURIComponent(rawUrl)
|
|
|
pdfUrl.value = encodedUrl
|
|
|
+ console.log( pdfUrl.value, ' pdfUrl.value')
|
|
|
checkId.value = row.id
|
|
|
isFile.value = 2
|
|
|
getmetaInfo(checkId.value)
|