From 6def378d7aa9889644f01bafdb663ff9736430a4 Mon Sep 17 00:00:00 2001
From: lideqin <694785430@qq.com>
Date: Fri, 5 Jan 2024 14:03:05 +0800
Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BC=81=E6=A0=87=E8=AF=A6=E6=83=85?=
=?UTF-8?q?=E6=8E=88=E6=9D=83=E9=83=A8=E9=97=A8=E6=9C=89=E5=80=BC=E7=9A=84?=
=?UTF-8?q?=E8=AF=9D=E6=98=BE=E7=A4=BA=E6=9F=A5=E7=9C=8B=E5=85=A8=E9=83=A8?=
=?UTF-8?q?=E6=8C=89=E9=92=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
(cherry picked from commit f31c857f9c765ba0125c3f74478ab7ece2bf9798)
---
.../lang/enterpriseStandardLibrary/zh.js | 3 +-
.../detail/EnterpriseStandardDetail.vue | 18 +++++++-
.../detail/module/TextContentModal.vue | 42 +++++++++++++++++++
3 files changed, 60 insertions(+), 3 deletions(-)
create mode 100644 src/views/enterpriseStandardLibrary/standard/detail/module/TextContentModal.vue
diff --git a/src/common/lang/enterpriseStandardLibrary/zh.js b/src/common/lang/enterpriseStandardLibrary/zh.js
index 6a68acbb..209a4479 100644
--- a/src/common/lang/enterpriseStandardLibrary/zh.js
+++ b/src/common/lang/enterpriseStandardLibrary/zh.js
@@ -35,7 +35,8 @@ module.exports = {
cancelAuthor: '解除授权',
authorizationDate: '授权日期',
authorizationStandard: '授权企标',
- confirmCancelAuthor: '确认解除授权?'
+ confirmCancelAuthor: '确认解除授权?',
+ viewAll: '查看全部'
},
// 评审会记录
reviewMeeting: {
diff --git a/src/views/enterpriseStandardLibrary/standard/detail/EnterpriseStandardDetail.vue b/src/views/enterpriseStandardLibrary/standard/detail/EnterpriseStandardDetail.vue
index 654af382..8d39a0f2 100644
--- a/src/views/enterpriseStandardLibrary/standard/detail/EnterpriseStandardDetail.vue
+++ b/src/views/enterpriseStandardLibrary/standard/detail/EnterpriseStandardDetail.vue
@@ -47,6 +47,12 @@
—
+
+
+ {{ $t('enterpriseStandardLibrary.standard.viewAll')}}
+
{{ detailData[formItem.dbFieldName + '_dictText'] }}
{{ detailData[formItem.dbFieldName] }}
—
@@ -126,6 +132,7 @@
+
@@ -144,6 +151,7 @@ import { getFileInfo } from '../../../../api/api'
import UserSelectModal from '@comp/selection/UserSelectModal'
import StandardResolutionSheetModal from '@views/standardRegulationLibrary/commonPage/modules/StandardResolutionSheetModal'
import { kkFilePreview } from '@/utils/kkFilePreview'
+import TextContentModal from './module/TextContentModal'
// 支持预览的文件后缀
const CAN_PREVIEW_FILE_SUFFIX = ['jpg', 'jpeg', 'png', 'pdf', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx']
@@ -152,7 +160,7 @@ const FILE_TYPE_PDF = 'pdf'
export default {
name: 'EnterpriseStandardDetail',
- components: { StandardResolutionSheetModal, UserSelectModal, EnterpriseStandardEvaluateModal, SubmitQuestionModal, UpdateRecordModal },
+ components: { TextContentModal, StandardResolutionSheetModal, UserSelectModal, EnterpriseStandardEvaluateModal, SubmitQuestionModal, UpdateRecordModal },
data () {
return {
FieldType,
@@ -197,7 +205,8 @@ export default {
], // 稽查内容表格列参数
dataSource: [], // 稽查内容数据
image: false,
- imageUrl: ''
+ imageUrl: '',
+ showViewAllField: ['auth_dept'] // 需要显示展示查看全部按钮的字段
}
},
created () {
@@ -326,6 +335,11 @@ export default {
previewStandardResolutionSheet (id) {
this.$refs.standardResolutionSheetModal.open(id)
},
+ // 查看全部
+ viewAll (fieldName) {
+ const data = this.detailData[fieldName + '_dictText'] || this.detailData[fieldName]
+ this.$refs.textContentModal.open(data)
+ }
}
}
diff --git a/src/views/enterpriseStandardLibrary/standard/detail/module/TextContentModal.vue b/src/views/enterpriseStandardLibrary/standard/detail/module/TextContentModal.vue
new file mode 100644
index 00000000..ae68fe07
--- /dev/null
+++ b/src/views/enterpriseStandardLibrary/standard/detail/module/TextContentModal.vue
@@ -0,0 +1,42 @@
+
+
+ {{ content }}
+
+
+
+
+
+