diff --git a/src/components/FileEcho.vue b/src/components/FileEcho.vue
new file mode 100644
index 00000000..88f4a5cd
--- /dev/null
+++ b/src/components/FileEcho.vue
@@ -0,0 +1,159 @@
+
+
+
+
+
+
+
{{ file.fileName }}
+
+
+
+
{{ $t('download') }}
+
+
+
+
+
+
+
![]()
+
+
+
+
+
+
+
+
diff --git a/src/components/jero/JUpload.vue b/src/components/jero/JUpload.vue
index 627a59dc..7524db62 100644
--- a/src/components/jero/JUpload.vue
+++ b/src/components/jero/JUpload.vue
@@ -66,8 +66,8 @@ const Base64 = require('js-base64').Base64
// 支持预览的文件类型
const CAN_PREVIEW_FILE_TYPE = ['pdf', 'image']
-// 不支持预览的文件后缀
-const CAN_PREVIEW_FILE_SUFFIX = ['doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'txt', 'mp3', 'mp4', 'flv']
+// 支持预览的文件后缀
+const CAN_PREVIEW_FILE_SUFFIX = ['jpg', 'jpeg', 'png', 'raw', 'pdf']
const uidGenerator = () => {
return '-' + parseInt(Math.random() * 10000 + 1, 10)
}
@@ -401,7 +401,7 @@ export default {
}
const fileType = file.type
// 截取文件后缀名
- const fileSuffix = file.name ? file.name.split('.')[file.name.split('.').length - 1] : ''
+ const fileSuffix = file.name ? file.name.split('.')[file.name.split('.').length - 1].toLowerCase() : ''
const canPreview = fileType ? CAN_PREVIEW_FILE_TYPE.some(tt => fileType.indexOf(tt) !== -1) : CAN_PREVIEW_FILE_SUFFIX.some(tt => fileSuffix === tt)
// 判断是否为可预览格式的文件
if (!canPreview) {
diff --git a/src/views/standardRegulationLibrary/commonPage/StandardDetailPage.vue b/src/views/standardRegulationLibrary/commonPage/StandardDetailPage.vue
index 523023f5..9ca7c2ea 100644
--- a/src/views/standardRegulationLibrary/commonPage/StandardDetailPage.vue
+++ b/src/views/standardRegulationLibrary/commonPage/StandardDetailPage.vue
@@ -370,7 +370,7 @@ export default {
}
// pdf预览
if (canPreview && FILE_TYPE_PDF.includes(fileSuffix)) {
- const url = previewPdf(file.response.result.id)
+ const url = previewPdf(file.id)
window.open(url)
return
}
diff --git a/src/views/standardRegulationLibrary/dynamicMessage/DynamicMessageDetail.vue b/src/views/standardRegulationLibrary/dynamicMessage/DynamicMessageDetail.vue
index 3ead611e..e7655143 100644
--- a/src/views/standardRegulationLibrary/dynamicMessage/DynamicMessageDetail.vue
+++ b/src/views/standardRegulationLibrary/dynamicMessage/DynamicMessageDetail.vue
@@ -7,6 +7,28 @@
【{{ $t('standardRegulationLibrary.dynamicMessage.dynamicDetails') }}】{{ detailData.dynamicHeading }}
+
+
+
+
+ {{ detailData.readCount }}
+
+
+
+
+ {{ detailData.writer_dictText }}
+
+
+
+
+ {{ detailData.releaseTime }}
+
+
+
+
{{ $t('standardRegulationLibrary.dynamicMessage.dynamicDetails') }}
+
+
+
@@ -15,14 +37,16 @@