|
@@ -184,6 +184,7 @@ import tuningApi from '~api/archiveConfig/tuning.js'
|
|
|
import archiveQueryApi from '~api/using/query.js'
|
|
|
import inspectApi from '~api/transfer/inspects.js'
|
|
|
import tuning from '../../../api/modules/archiveConfig/tuning'
|
|
|
+import encodeFullUrl from '~src/utils/safe-url-encoder'
|
|
|
|
|
|
//变量
|
|
|
const useAppState = useAppStore()
|
|
@@ -324,16 +325,18 @@ const tableRowClick = async ({ row }) => {
|
|
|
// checkId.value = ''
|
|
|
|
|
|
|
|
|
- const url = await viewPdf(row.id)
|
|
|
- pdfUrl.value = url
|
|
|
- if (pdfUrl.value && pdfUrl?.value.length > 0 && isCarrySpotChecksDrawer.value) {
|
|
|
- setTimeout(() => {
|
|
|
- if (isCarrySpotChecksDrawer.value) {
|
|
|
- serReviewFile()
|
|
|
- }
|
|
|
+ // const url = await viewPdf(row.id)
|
|
|
+ // pdfUrl.value = url
|
|
|
+ console.log(row, 'row')
|
|
|
+
|
|
|
+ // if (pdfUrl.value && pdfUrl?.value.length > 0 && isCarrySpotChecksDrawer.value) {
|
|
|
+ // setTimeout(() => {
|
|
|
+ // if (isCarrySpotChecksDrawer.value) {
|
|
|
+ // serReviewFile()
|
|
|
+ // }
|
|
|
|
|
|
- }, 30000)
|
|
|
- }
|
|
|
+ // }, 30000)
|
|
|
+ // }
|
|
|
}
|
|
|
//获取卷内文件数据
|
|
|
const getArchiveFileListData = async ()=>{
|
|
@@ -348,9 +351,9 @@ 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 || ''
|
|
|
let rawUrl = cscTableData1.value[0]?.pdfFileUrl || ''
|
|
|
- const encodedUrl = encodeURIComponent(rawUrl)
|
|
|
+
|
|
|
+ const encodedUrl = encodeFullUrl(rawUrl)
|
|
|
pdfUrl.value = encodedUrl
|
|
|
console.log(encodedUrl, 'encodedUrl')
|
|
|
|
|
@@ -394,7 +397,7 @@ const changePdf = (row)=>{
|
|
|
// pdfUrl.value = row['pdfFileUrl'] || ''
|
|
|
|
|
|
let rawUrl = row['pdfFileUrl'] || ''
|
|
|
- const encodedUrl = encodeURIComponent(rawUrl)
|
|
|
+ const encodedUrl = encodeFullUrl(rawUrl)
|
|
|
pdfUrl.value = encodedUrl
|
|
|
checkId.value = row.id
|
|
|
checkmetaFileId.value = row.id
|