[update] 市场清单发布流程翻译

This commit is contained in:
lideqin
2024-08-08 14:04:14 +08:00
parent 70f285b638
commit 40f271e855
3 changed files with 32 additions and 14 deletions
@@ -90,6 +90,14 @@
</a-tooltip> </a-tooltip>
</template> </template>
<!--增加数据字典双语翻译的插槽-->
<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 v-slot:toDetail="text, record"> <template v-slot:toDetail="text, record">
<a-tooltip overlay-class-name="tooltip-style"> <a-tooltip overlay-class-name="tooltip-style">
@@ -198,7 +206,7 @@ export default {
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'country_dictText', dataIndex: 'country_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'dictText' }
}, },
{ // 清单编号 { // 清单编号
title: this.$t('standardRegulationLibrary.marketRegulationsList.listNumber'), title: this.$t('standardRegulationLibrary.marketRegulationsList.listNumber'),
@@ -219,7 +227,7 @@ export default {
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'drivePosition_dictText', dataIndex: 'drivePosition_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'dictText' }
}, },
{ // 清单版本 { // 清单版本
title: this.$t('standardRegulationLibrary.marketRegulationsList.listVersion'), title: this.$t('standardRegulationLibrary.marketRegulationsList.listVersion'),
@@ -247,7 +255,7 @@ export default {
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'manifestStatus_dictText', dataIndex: 'manifestStatus_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'dictText' }
} }
], ],
dataList: [] dataList: []
@@ -61,7 +61,10 @@
<template v-if="currentNode !== 1"> <template v-if="currentNode !== 1">
<!-- 清单编号 --> <!-- 清单编号 -->
<a-col :span="24"> <a-col :span="24">
<a-form-item :labelCol="longLabelCol" :wrapperCol="longWrapperCol" :label="$t('listNumber')" :colon="formItemColon"> <a-form-item
:labelCol="$i18n.locale === EN ? longLabelColEn : longLabelCol"
:wrapperCol="$i18n.locale === EN ? longWrapperColEn : longWrapperCol"
:label="$t('listNumber')" :colon="formItemColon">
<a-input placeholder="" <a-input placeholder=""
disabled disabled
:maxLength="50" :maxLength="50"
@@ -70,7 +73,10 @@
</a-col> </a-col>
<!-- 清单名称 --> <!-- 清单名称 -->
<a-col :span="24"> <a-col :span="24">
<a-form-item :labelCol="longLabelCol" :wrapperCol="longWrapperCol" :label="$t('listName')" :colon="formItemColon"> <a-form-item
:labelCol="$i18n.locale === EN ? longLabelColEn : longLabelCol"
:wrapperCol="$i18n.locale === EN ? longWrapperColEn : longWrapperCol"
:label="$t('listName')" :colon="formItemColon">
<a-input placeholder="" <a-input placeholder=""
disabled disabled
:maxLength="50" :maxLength="50"
@@ -79,7 +85,10 @@
</a-col> </a-col>
<!-- 国家/地区 --> <!-- 国家/地区 -->
<a-col :span="24"> <a-col :span="24">
<a-form-item :labelCol="longLabelCol" :wrapperCol="longWrapperCol" :label="$t('countryRegion')" :colon="formItemColon"> <a-form-item
:labelCol="$i18n.locale === EN ? longLabelColEn : longLabelCol"
:wrapperCol="$i18n.locale === EN ? longWrapperColEn : longWrapperCol"
:label="$t('countryRegion')" :colon="formItemColon">
<s-tree-select v-decorator="['country', validatorRules.country]" <s-tree-select v-decorator="['country', validatorRules.country]"
:getPopupContainer="triggerNode=> triggerNode.parentNode" :getPopupContainer="triggerNode=> triggerNode.parentNode"
style="width: 100%" style="width: 100%"
@@ -51,6 +51,7 @@
tree-checkable tree-checkable
treeCheckStrictly treeCheckStrictly
disabled disabled
:replaceFields="{title: isChinese() ? 'title' : 'enTitle'}"
:placeholder="disabled ? '' : $t('autoTakeout')" /> :placeholder="disabled ? '' : $t('autoTakeout')" />
</a-form-model-item> </a-form-model-item>
</div> </div>
@@ -213,21 +214,21 @@ export default {
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'country_dictText', dataIndex: 'country_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'dictText' }
}, },
{ // 适用车型 { // 适用车型
title: this.$t('workCenter.marketListReleaseProcess.applicableVehicleType'), title: this.$t('workCenter.marketListReleaseProcess.applicableVehicleType'),
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'applicableVehicle_dictText', dataIndex: 'applicableVehicle_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'dictText' }
}, },
{ // 认证对象 { // 认证对象
title: this.$t('workCenter.marketListReleaseProcess.authenticationObject'), title: this.$t('workCenter.marketListReleaseProcess.authenticationObject'),
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'authenticationObject_dictText', dataIndex: 'authenticationObject_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'dictText' }
}, },
{ // 认证交付物 { // 认证交付物
title: this.$t('workCenter.marketListReleaseProcess.certifiedDeliverables'), title: this.$t('workCenter.marketListReleaseProcess.certifiedDeliverables'),
@@ -241,14 +242,14 @@ export default {
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'type_dictText', dataIndex: 'type_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'dictText' }
}, },
{ // 动力类型 { // 动力类型
title: this.$t('workCenter.marketListReleaseProcess.dynamicType'), title: this.$t('workCenter.marketListReleaseProcess.dynamicType'),
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'dynamicType_dictText', dataIndex: 'dynamicType_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'dictText' }
}, },
{ // 主控部门 { // 主控部门
title: this.$t('workCenter.marketListReleaseProcess.mainControlDepartment'), title: this.$t('workCenter.marketListReleaseProcess.mainControlDepartment'),
@@ -262,7 +263,7 @@ export default {
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'mainDeptProfMode_dictText', dataIndex: 'mainDeptProfMode_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'dictText' }
}, },
{ // 关联部门 { // 关联部门
title: this.$t('workCenter.marketListReleaseProcess.relatedDepartment'), title: this.$t('workCenter.marketListReleaseProcess.relatedDepartment'),
@@ -276,14 +277,14 @@ export default {
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'associateDeptProfMode_dictText', dataIndex: 'associateDeptProfMode_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'dictText' }
}, },
{ // 要求类型 { // 要求类型
title: this.$t('workCenter.marketListReleaseProcess.requirementType'), title: this.$t('workCenter.marketListReleaseProcess.requirementType'),
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'requireType_dictText', dataIndex: 'requireType_dictText',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'dictText' }
}, },
{ // 备注 { // 备注
title: this.$t('remarks'), title: this.$t('remarks'),