[update] 法规符合性评估库和不符合项库翻译

This commit is contained in:
lideqin
2024-08-08 11:36:00 +08:00
parent 99215cf637
commit c8c718791c
3 changed files with 14 additions and 6 deletions
@@ -165,7 +165,7 @@ export default {
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'modelStatus_dictText', dataIndex: 'modelStatus_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'dictText' }
}, },
{ // 标准编号 { // 标准编号
title: this.$t('standardNumber'), title: this.$t('standardNumber'),
@@ -215,14 +215,14 @@ export default {
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'problemType_dictText', dataIndex: 'problemType_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'dictText' }
}, },
{ // 整改状态 { // 整改状态
title: this.$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationState'), title: this.$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationState'),
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'rectifyStatus_dictText', dataIndex: 'rectifyStatus_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'dictText' }
}, },
{ // PCR编号 { // PCR编号
title: this.$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.pcrNumber'), title: this.$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.pcrNumber'),
@@ -144,7 +144,7 @@ export default {
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'applicableMarket_dictText', dataIndex: 'applicableMarket_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'dictText' }
}, },
{ // 评估日期 { // 评估日期
title: this.$t('regulatoryComplianceAssessmentDatabase.assessmentLibrary.dateOfEvaluation'), title: this.$t('regulatoryComplianceAssessmentDatabase.assessmentLibrary.dateOfEvaluation'),
@@ -83,6 +83,14 @@
:scroll="{x: '100%', y: 'calc(100vh - 500px)'}" :scroll="{x: '100%', y: 'calc(100vh - 500px)'}"
@change="handleTableChange"> @change="handleTableChange">
<!--增加数据字典双语翻译的插槽-->
<template slot="dictText" slot-scope="text, record, index, column">
<a-tooltip overlay-class-name="tooltip-style">
<template slot="title">{{ (isChinese() ? text : record[column.key + 'En']) || (isChinese() ? text : record[column.key + 'En']) === 0 ? (isChinese() ? text : record[column.key + 'En']) : global.emptyLine }}</template>
<div class="table-text">{{ (isChinese() ? text : record[column.key + 'En']) || (isChinese() ? text : record[column.key + 'En']) === 0 ? (isChinese() ? text : record[column.key + 'En']) : global.emptyLine }}</div>
</a-tooltip>
</template>
<template slot="text" slot-scope="text"> <template slot="text" slot-scope="text">
<a-tooltip overlay-class-name="tooltip-style"> <a-tooltip overlay-class-name="tooltip-style">
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template> <template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
@@ -154,7 +162,7 @@ export default {
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'modelStatus_dictText', dataIndex: 'modelStatus_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'dictText' }
}, },
{ // 责任部门 { // 责任部门
title: this.$t('regulatoryComplianceAssessmentDatabase.assessmentLibrary.responsibleDepartment'), title: this.$t('regulatoryComplianceAssessmentDatabase.assessmentLibrary.responsibleDepartment'),
@@ -175,7 +183,7 @@ export default {
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'result_dictText', dataIndex: 'result_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'dictText' }
}, },
{ // 不满足要求的现状 { // 不满足要求的现状
title: this.$t('regulatoryComplianceAssessmentDatabase.assessmentLibrary.theStatusNotMeetRequirements'), title: this.$t('regulatoryComplianceAssessmentDatabase.assessmentLibrary.theStatusNotMeetRequirements'),