diff --git a/public/production_address_config.js b/public/production_address_config.js
index 4a8e0cd..95b6abb 100644
--- a/public/production_address_config.js
+++ b/public/production_address_config.js
@@ -11,7 +11,7 @@ window._CONFIG["staticDomainURL"] = window._CONFIG["domianURL"] + "/sys/common/d
window._CONFIG["pdfDomainURL"] = window._CONFIG["domianURL"] + "/sys/common/pdf/pdfPreviewIframe";
window._CONFIG["casPrefixUrl"] = "http://cas.example.org:8443/cas";
// 预览文件地址
-window._CONFIG["onlinePreviewDomainURL"] = "http://cwp.catarc.org.cn:8092/onlinePreview";
+window._CONFIG["onlinePreviewDomainURL"] = "http://cwp.catarc.org.cn:8092/perview/onlinePreview";
// 会议报名页面-报名二维码网址 -生成小程序二维码使用
window._CONFIG['singUpQRCodeURL'] = 'https://cwp.catarc.org.cn/signupentrance'
diff --git a/src/api/standardsAssociationApi.js b/src/api/standardsAssociationApi.js
index 3c0796e..e2fe4cd 100644
--- a/src/api/standardsAssociationApi.js
+++ b/src/api/standardsAssociationApi.js
@@ -22,6 +22,8 @@ const emailCheck = (params) => getAction('/sys/user/emailCheck', params)
const getMemberBaseInfo = (param) => incomeGetAction('/company/payContactsManagement/baseInfo', param)
// pdf预览网址
+// eslint-disable-next-line
+const Base64 = require('js-base64').Base64
const previewPdf = (file) => {
// const url = `${window._CONFIG['memberURL']}/sys/common/static/${id}?type=view&${TokenKey}=${Vue.ls.get(ACCESS_TOKEN)}`
// return `${process.env.BASE_URL}pdfjs/web/viewer.html?file=` + encodeURIComponent(url) + '&.pdf'
@@ -31,7 +33,7 @@ const previewPdf = (file) => {
const fileFullUrl = `${window._CONFIG['memberDomianWebSocketURL']}/sys/common/static/${file.id}?type=view&token=${token}&fullfilename=${fileName}`
console.log(fileFullUrl, '$$$$$$$$')
- let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}`
+ let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(Base64.encode(fileFullUrl))}`
return url
}
diff --git a/src/components/detailPage/FileList.vue b/src/components/detailPage/FileList.vue
index d3e9dc4..57b9c0d 100644
--- a/src/components/detailPage/FileList.vue
+++ b/src/components/detailPage/FileList.vue
@@ -56,6 +56,9 @@ const columns = [
scopedSlots: { customRender: 'action' }
}
]
+// eslint-disable-next-line
+const Base64 = require('js-base64').Base64
+
export default {
name: 'FileList',
props: {
@@ -92,7 +95,7 @@ export default {
preview(record) {
if (record && record.fileId) {
const fileFullUrl = `${ window._CONFIG['domianWebSocketURL'] }/sys/common/download/${ record.fileId }?token=${ Vue.ls.get(ACCESS_TOKEN) }&fullfilename=${ record.fileName }&type=view`
- let url = `${ window._CONFIG['onlinePreviewDomainURL'] }?url=${ encodeURIComponent(fileFullUrl) }`
+ let url = `${ window._CONFIG['onlinePreviewDomainURL'] }?url=${ encodeURIComponent(Base64.encode(fileFullUrl)) }`
// let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}`
window.open(url)
}
@@ -103,4 +106,4 @@ export default {
\ No newline at end of file
+
diff --git a/src/components/jero/JImageUpload.vue b/src/components/jero/JImageUpload.vue
index 5cf1146..afa9f41 100644
--- a/src/components/jero/JImageUpload.vue
+++ b/src/components/jero/JImageUpload.vue
@@ -35,7 +35,7 @@
import { getFileAccessHttpUrl } from '@/api/manage'
import {getFileInfo} from '@api/api'
// eslint-disable-next-line
- // const Base64 = require('js-base64').Base64
+ const Base64 = require('js-base64').Base64
const uidGenerator=()=>{
return '-'+parseInt(Math.random()*10000+1,10)
@@ -229,7 +229,7 @@
// &fullfilename=${file.name}
var fileFullUrl = `${window._CONFIG['domianWebSocketURL']}/sys/common/download/${file.response.result.id}?token=${Vue.ls.get(ACCESS_TOKEN)}`
// let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(Base64.encode(fileFullUrl))}`
- let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}`
+ let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(Base64.encode(fileFullUrl))}`
window.open(url)
}
},
diff --git a/src/components/jero/PreviewFile.vue b/src/components/jero/PreviewFile.vue
index 48e871c..b811075 100644
--- a/src/components/jero/PreviewFile.vue
+++ b/src/components/jero/PreviewFile.vue
@@ -20,7 +20,7 @@ import {getFileInfo} from '@/api/api'
import {downloadFile} from '@api/manage'
import JEllipsis from '@comp/jero/JEllipsis'
// eslint-disable-next-line
-// const Base64 = require('js-base64').Base64
+const Base64 = require('js-base64').Base64
export default {
@@ -106,7 +106,7 @@ export default {
handlePreview(file) {
if (file && file.id) {
const fileFullUrl = `${window._CONFIG['domianWebSocketURL']}/sys/common/download/${file.id}?token=${Vue.ls.get(ACCESS_TOKEN)}&fullfilename=${file.name}&type=view`
- let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}`
+ let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(Base64.encode(fileFullUrl))}`
// let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}`
window.open(url)
}
@@ -150,4 +150,4 @@ export default {
}
}
}
-
\ No newline at end of file
+
diff --git a/src/components/signUpForm/JUpload.vue b/src/components/signUpForm/JUpload.vue
index a774193..abcb676 100644
--- a/src/components/signUpForm/JUpload.vue
+++ b/src/components/signUpForm/JUpload.vue
@@ -56,7 +56,7 @@ import {getFileAccessHttpUrl, downloadFile} from '@/api/manage'
import {getFileInfo} from '@/api/api'
// eslint-disable-next-line no-undef
-// const Base64 = require('js-base64').Base64
+const Base64 = require('js-base64').Base64
const FILE_TYPE_ALL = 'all'
const FILE_TYPE_IMG = 'image'
@@ -384,7 +384,7 @@ export default {
// eslint-disable-next-line no-unreachable
if (file && file.url) {
const fileFullUrl = `${window._CONFIG['domianWebSocketURL']}/sys/common/download/${file.response.result.id}?token=${Vue.ls.get(ACCESS_TOKEN)}&fullfilename=${file.name}`
- let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}`
+ let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(Base64.encode(fileFullUrl))}`
// let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}`
window.open(url)
}
@@ -438,7 +438,7 @@ export default {
myPreview(file) {
if (file && file.url) {
const fileFullUrl = `${window._CONFIG['domianWebSocketURL']}/sys/common/download/${file.response.result.id}?token=${Vue.ls.get(ACCESS_TOKEN)}&fullfilename=${file.name}`
- let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}`
+ let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(Base64.encode(fileFullUrl))}`
// let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}`
window.open(url)
}
diff --git a/src/components/standardsAssociation/JUpload.vue b/src/components/standardsAssociation/JUpload.vue
index 2bc083a..8ee63d4 100644
--- a/src/components/standardsAssociation/JUpload.vue
+++ b/src/components/standardsAssociation/JUpload.vue
@@ -56,7 +56,7 @@ import {getFileAccessHttpUrl, downloadFile} from '@/api/memberManage'
import {getFilesByIds} from '@/api/standardsAssociationApi'
// eslint-disable-next-line no-undef
-// const Base64 = require('js-base64').Base64
+const Base64 = require('js-base64').Base64
const FILE_TYPE_ALL = 'all'
const FILE_TYPE_IMG = 'image'
@@ -385,7 +385,7 @@ export default {
// eslint-disable-next-line no-unreachable
if (file && file.url) {
const fileFullUrl = `${window._CONFIG['domianWebSocketURL']}/sys/common/download/${file.response.result.id}?token=${Vue.ls.get(ACCESS_TOKEN)}&fullfilename=${file.name}`
- let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}`
+ let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(Base64.encode(fileFullUrl))}`
// let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}`
window.open(url)
}
@@ -440,7 +440,7 @@ export default {
myPreview(file) {
if (file && file.url) {
const fileFullUrl = `${window._CONFIG['domianWebSocketURL']}/sys/common/static/${file.response.result.id}?token=${Vue.ls.get(ACCESS_TOKEN)}&fullfilename=${file.name}`
- let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}`
+ let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(Base64.encode(fileFullUrl))}`
// let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}`
window.open(url)
}
diff --git a/src/views/MessagePage/modules/FileTable.vue b/src/views/MessagePage/modules/FileTable.vue
index 86952a4..652d7a8 100644
--- a/src/views/MessagePage/modules/FileTable.vue
+++ b/src/views/MessagePage/modules/FileTable.vue
@@ -45,6 +45,8 @@ const columns = [
width: 100
}
]
+// eslint-disable-next-line
+const Base64 = require('js-base64').Base64
export default {
name: 'FileTable',
@@ -137,7 +139,7 @@ export default {
handlePreview(file) {
if (file && file.id) {
const fileFullUrl = `${window._CONFIG['domianWebSocketURL']}/sys/common/download/${file.id}?token=${Vue.ls.get(ACCESS_TOKEN)}&fullfilename=${file.name}&type=view`
- let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}`
+ let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(Base64.encode(fileFullUrl))}`
// let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}`
window.open(url)
}
diff --git a/src/views/MessagePage/modules/UnderStudyFilesModal.vue b/src/views/MessagePage/modules/UnderStudyFilesModal.vue
index e5732f3..6fb73a3 100644
--- a/src/views/MessagePage/modules/UnderStudyFilesModal.vue
+++ b/src/views/MessagePage/modules/UnderStudyFilesModal.vue
@@ -50,6 +50,9 @@ import Vue from 'vue'
import { ACCESS_TOKEN } from '@/store/mutation-types'
import { processingTimestamp } from '@/utils/util'
+// eslint-disable-next-line
+const Base64 = require('js-base64').Base64
+
export default {
name: 'UnderStudyFilesModal',
props: {
@@ -99,13 +102,13 @@ export default {
if (this.isCommittee) {
if (record && record.FILE_ID) {
const fileFullUrl = `${window._CONFIG['domianWebSocketURL']}/payResearchProject/payResearchProject/download/?fileId=${record.FILE_ID}&token=${Vue.ls.get(ACCESS_TOKEN)}&fullfilename=${record.FILE_NAME}`
- let url = `${ window._CONFIG['onlinePreviewDomainURL'] }?url=${ encodeURIComponent(fileFullUrl) }`
+ let url = `${ window._CONFIG['onlinePreviewDomainURL'] }?url=${ encodeURIComponent(Base64.encode(fileFullUrl)) }`
window.open(url)
}
} else {
if (record && record.fileId) {
const fileFullUrl = `${ window._CONFIG['domianWebSocketURL'] }/sys/common/download/${ record.fileId }?token=${ Vue.ls.get(ACCESS_TOKEN) }&fullfilename=${ record.fileName }`
- let url = `${ window._CONFIG['onlinePreviewDomainURL'] }?url=${ encodeURIComponent(fileFullUrl) }`
+ let url = `${ window._CONFIG['onlinePreviewDomainURL'] }?url=${ encodeURIComponent(Base64.encode(fileFullUrl)) }`
window.open(url)
}
}
@@ -120,4 +123,4 @@ export default {
\ No newline at end of file
+
diff --git a/src/views/subBidCommittee/modules/SubBidCommitteeDetail.vue b/src/views/subBidCommittee/modules/SubBidCommitteeDetail.vue
index 6bd863e..cb30a0d 100644
--- a/src/views/subBidCommittee/modules/SubBidCommitteeDetail.vue
+++ b/src/views/subBidCommittee/modules/SubBidCommitteeDetail.vue
@@ -43,7 +43,7 @@ import { getFileInfo } from '@api/api'
import Vue from 'vue'
import { ACCESS_TOKEN } from '@/store/mutation-types'
// eslint-disable-next-line
-// const Base64 = require('js-base64').Base64
+const Base64 = require('js-base64').Base64
export default {
name: 'SubBidCommitteeDetail',
@@ -129,7 +129,7 @@ export default {
if (file && file.id) {
const fileFullUrl = `${ window._CONFIG['domianWebSocketURL'] }/sys/common/download/${ file.id }?token=${ Vue.ls.get(ACCESS_TOKEN) }&fullfilename=${ file.name }`
// let url = `${ window._CONFIG['onlinePreviewDomainURL'] }?url=${ encodeURIComponent(Base64.encode(fileFullUrl)) }`
- let url = `${ window._CONFIG['onlinePreviewDomainURL'] }?url=${ encodeURIComponent(fileFullUrl) }`
+ let url = `${ window._CONFIG['onlinePreviewDomainURL'] }?url=${ encodeURIComponent(Base64.encode(fileFullUrl)) }`
// let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}`
window.open(url)
}
@@ -157,4 +157,4 @@ h3.title::before {
color: #069f99;
cursor: pointer;
}
-
\ No newline at end of file
+