|
|
@@ -57,7 +57,7 @@
|
|
|
import { TRANSFER_DATA } from '@/constant'
|
|
|
import fView from './editFile/fView.vue'
|
|
|
import { SYSTEM_URL, BASE_API } from '@/api/baseUrl'
|
|
|
-
|
|
|
+ const specialField = ['报告文件', '报告文档', '已盖章报告']
|
|
|
export default {
|
|
|
components: {
|
|
|
IbpsFileAttachmentSelector,
|
|
|
@@ -195,6 +195,13 @@
|
|
|
lineHeight: `${height}px`,
|
|
|
display: 'inline'
|
|
|
}
|
|
|
+ },
|
|
|
+ pdfPreviewType() {
|
|
|
+ const t = specialField.some(i => this.elFormItem.label && this.elFormItem.label.includes(i))
|
|
|
+ if (this.elFormItem.label && t) {
|
|
|
+ return 'PDFH5'
|
|
|
+ }
|
|
|
+ return 'ONLYOFFICE'
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
@@ -522,6 +529,7 @@
|
|
|
this.optionFileView.fileType = this.attachment.ext // 类型
|
|
|
this.optionFileView.data = this.attachment // 记录编制的位置,需要替换。
|
|
|
this.optionFileView.data.index = index
|
|
|
+ this.optionFileView.previewType = this.pdfPreviewType
|
|
|
this.filePreviewVisible = true
|
|
|
},
|
|
|
/**
|