update 企标稽查流程预览文件
This commit is contained in:
+1
-2
@@ -152,7 +152,7 @@ export default {
|
|||||||
// pdf预览
|
// pdf预览
|
||||||
const url = previewPdf(file.id)
|
const url = previewPdf(file.id)
|
||||||
this.iframeSrc = url
|
this.iframeSrc = url
|
||||||
} else if (fileSuffix === 'docx') {
|
} else if (['doc', 'docx'].includes(fileSuffix)) {
|
||||||
const fileFullUrl = `${window._CONFIG.domianWebSocketURL}/sys/common/view/${file.id}?token=${Vue.ls.get(ACCESS_TOKEN)}&fullfilename=${file.fileName}`
|
const fileFullUrl = `${window._CONFIG.domianWebSocketURL}/sys/common/view/${file.id}?token=${Vue.ls.get(ACCESS_TOKEN)}&fullfilename=${file.fileName}`
|
||||||
// word文件仍使用KKFile进行预览
|
// word文件仍使用KKFile进行预览
|
||||||
const url = `${window._CONFIG.onlinePreviewDomainURL}?url=${encodeURIComponent(Base64.encode(fileFullUrl))}`
|
const url = `${window._CONFIG.onlinePreviewDomainURL}?url=${encodeURIComponent(Base64.encode(fileFullUrl))}`
|
||||||
@@ -232,7 +232,6 @@ export default {
|
|||||||
.content-left {
|
.content-left {
|
||||||
width: 60%;
|
width: 60%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow-y: scroll;
|
|
||||||
iframe {
|
iframe {
|
||||||
height: calc(100% - 20px) !important;
|
height: calc(100% - 20px) !important;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user