diff --git a/src/views/projectLibrary/specialProjectLibrary/modules/BasisDescriptionModal.vue b/src/views/projectLibrary/specialProjectLibrary/modules/BasisDescriptionModal.vue
index 46da5144..1a6ae559 100644
--- a/src/views/projectLibrary/specialProjectLibrary/modules/BasisDescriptionModal.vue
+++ b/src/views/projectLibrary/specialProjectLibrary/modules/BasisDescriptionModal.vue
@@ -52,21 +52,16 @@
{{ global.emptyLine }}
-
-
- {{ text || text === 0 ? text : global.emptyLine }}
- {{ text }}
- {{ global.emptyLine }}
-
+
+
+ {{ $t('view') }}
+ {{ global.emptyLine }}
-
-
-
![]()
-
-
+
+
@@ -78,12 +73,12 @@ import Vue from 'vue'
import { ACCESS_TOKEN } from '../../../../store/mutation-types'
import { downloadFile, getFileAccessHttpUrl } from '../../../../api/manage'
import { previewPdf } from '../../../../utils/previewPdf'
-import { Base64 } from 'js-base64'
import { kkFilePreview } from '../../../../utils/kkFilePreview'
+import UploadFile from '../../../../components/UploadFile'
export default {
name: 'BasisDescriptionModal',
- components: { JTable },
+ components: { UploadFile, JTable },
mixins: [JeroListMixin],
data () {
return {
@@ -126,7 +121,8 @@ export default {
{
dataIndex: 'fileId',
title: this.$t('projectLibrary.specialProjectLibrary.supportingMaterial'),
- width: 120
+ width: 120,
+ scopedSlots: { customRender: 'file' }
}
],
image: false,
@@ -201,6 +197,9 @@ export default {
}
// 如果都不能预览就下载
downloadFile(`/sys/common/download/${file.id}`, file.fileName)
+ },
+ displayFile (text) {
+ this.$refs.fileDisplayModal.open(text)
}
}
}