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 }}
+
+
+
+
+
+