diff --git a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsDetailPage.vue b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsDetailPage.vue index c736e00..95f9e7c 100644 --- a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsDetailPage.vue +++ b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsDetailPage.vue @@ -10,7 +10,7 @@ - {{ model.country_dictText || global.emptyLine }} + {{ (isChinese() ? model.country_dictText : model.country_dictTextEn) || global.emptyLine }} @@ -25,12 +25,12 @@ - {{ model.drivePosition_dictText || global.emptyLine }} + {{ (isChinese() ? model.drivePosition_dictText : model.drivePosition_dictTextEn) || global.emptyLine }} - {{ model.securityLevel_dictText || global.emptyLine }} + {{ (isChinese() ? model.securityLevel_dictText : model.securityLevel_dictTextEn) || global.emptyLine }} @@ -246,21 +246,21 @@ export default { title: this.$t('standardRegulationLibrary.marketListField.applicableCountryRegion'), align: 'center', width: 180, - dataIndex: 'country_dictText', + dataIndex: this.isChinese() ? 'country_dictText' : 'country_dictTextEn', scopedSlots: { customRender: 'text' } }, { // 适用车型 title: this.$t('standardRegulationLibrary.marketListField.applicableVehicleType'), align: 'center', width: 180, - dataIndex: 'applicableVehicle_dictText', + dataIndex: this.isChinese() ? 'applicableVehicle_dictText' : 'applicableVehicle_dictTextEn', scopedSlots: { customRender: 'text' } }, { // 认证对象 title: this.$t('standardRegulationLibrary.marketListField.authenticationObject'), align: 'center', width: 180, - dataIndex: 'authenticationObject_dictText', + dataIndex: this.isChinese() ? 'authenticationObject_dictText' : 'authenticationObject_dictTextEn', scopedSlots: { customRender: 'text' } }, { // 认证交付物 @@ -274,14 +274,14 @@ export default { title: this.$t('standardRegulationLibrary.marketListField.type'), align: 'center', width: 180, - dataIndex: 'type_dictText', + dataIndex: this.isChinese() ? 'type_dictText' : 'type_dictTextEn', scopedSlots: { customRender: 'text' } }, { // 动力类型 title: this.$t('standardRegulationLibrary.marketListField.dynamicType'), align: 'center', width: 180, - dataIndex: 'dynamicType_dictText', + dataIndex: this.isChinese() ? 'dynamicType_dictText' : 'dynamicType_dictTextEn', scopedSlots: { customRender: 'text' } }, { // 主控部门 @@ -295,7 +295,7 @@ export default { title: this.$t('standardRegulationLibrary.marketListField.masterControlDepartmentProfessionalModule'), align: 'center', width: 180, - dataIndex: 'mainDeptProfMode_dictText', + dataIndex: this.isChinese() ? 'mainDeptProfMode_dictText' : 'mainDeptProfMode_dictTextEn', scopedSlots: { customRender: 'text' } }, { // 关联部门 @@ -309,28 +309,28 @@ export default { title: this.$t('standardRegulationLibrary.marketListField.associateDepartmentSpecializedModules'), align: 'center', width: 180, - dataIndex: 'associateDeptProfMode_dictText', + dataIndex: this.isChinese() ? 'associateDeptProfMode_dictText' : 'associateDeptProfMode_dictTextEn', scopedSlots: { customRender: 'text' } }, { // 批量限制 title: this.$t('standardRegulationLibrary.marketListField.batchRestriction'), align: 'center', width: 180, - dataIndex: 'batchLimit_dictText', + dataIndex: this.isChinese() ? 'batchLimit_dictText' : 'batchLimit_dictTextEn', scopedSlots: { customRender: 'text' } }, { // 自动驾驶等级 title: this.$t('standardRegulationLibrary.marketListField.automaticDrivingLevel'), align: 'center', width: 180, - dataIndex: 'autopilotLevel_dictText', + dataIndex: this.isChinese() ? 'autopilotLevel_dictText' : 'autopilotLevel_dictTextEn', scopedSlots: { customRender: 'text' } }, { // 要求类型 title: this.$t('standardRegulationLibrary.marketListField.requirementType'), align: 'center', width: 180, - dataIndex: 'requireType_dictText', + dataIndex: this.isChinese() ? 'requireType_dictText' : 'requireType_dictTextEn', scopedSlots: { customRender: 'text' } }, { // 备注 diff --git a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsFormPage.vue b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsFormPage.vue index 45026c9..d0574cb 100644 --- a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsFormPage.vue +++ b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsFormPage.vue @@ -19,6 +19,7 @@ :tree-data="countryOptions" tree-checkable treeCheckStrictly + :replaceFields="{title: isChinese() ? 'title' : 'enTitle'}" @change="countryChange" :placeholder="$t('pleaseSelect')+$t('standardRegulationLibrary.marketRegulationsList.countryRegion')" /> @@ -364,21 +365,21 @@ export default { title: this.$t('standardRegulationLibrary.marketListField.applicableCountryRegion'), align: 'center', width: 180, - dataIndex: 'country_dictText', + dataIndex: this.isChinese() ? 'country_dictText' : 'country_dictTextEn', scopedSlots: { customRender: 'text' } }, { // 适用车型 title: this.$t('standardRegulationLibrary.marketListField.applicableVehicleType'), align: 'center', width: 180, - dataIndex: 'applicableVehicle_dictText', + dataIndex: this.isChinese() ? 'applicableVehicle_dictText' : 'applicableVehicle_dictTextEn', scopedSlots: { customRender: 'text' } }, { // 认证对象 title: this.$t('standardRegulationLibrary.marketListField.authenticationObject'), align: 'center', width: 180, - dataIndex: 'authenticationObject_dictText', + dataIndex: this.isChinese() ? 'authenticationObject_dictText' : 'authenticationObject_dictTextEn', scopedSlots: { customRender: 'text' } }, { // 认证交付物 @@ -392,14 +393,14 @@ export default { title: this.$t('standardRegulationLibrary.marketListField.type'), align: 'center', width: 180, - dataIndex: 'type_dictText', + dataIndex: this.isChinese() ? 'type_dictText' : 'type_dictTextEn', scopedSlots: { customRender: 'text' } }, { // 动力类型 title: this.$t('standardRegulationLibrary.marketListField.dynamicType'), align: 'center', width: 180, - dataIndex: 'dynamicType_dictText', + dataIndex: this.isChinese() ? 'dynamicType_dictText' : 'dynamicType_dictTextEn', scopedSlots: { customRender: 'text' } }, { // 主控部门 @@ -413,7 +414,7 @@ export default { title: this.$t('standardRegulationLibrary.marketListField.masterControlDepartmentProfessionalModule'), align: 'center', width: 180, - dataIndex: 'mainDeptProfMode_dictText', + dataIndex: this.isChinese() ? 'mainDeptProfMode_dictText' : 'mainDeptProfMode_dictTextEn', scopedSlots: { customRender: 'text' } }, { // 关联部门 @@ -427,28 +428,28 @@ export default { title: this.$t('standardRegulationLibrary.marketListField.associateDepartmentSpecializedModules'), align: 'center', width: 180, - dataIndex: 'associateDeptProfMode_dictText', + dataIndex: this.isChinese() ? 'associateDeptProfMode_dictText' : 'associateDeptProfMode_dictTextEn', scopedSlots: { customRender: 'text' } }, { // 批量限制 title: this.$t('standardRegulationLibrary.marketListField.batchRestriction'), align: 'center', width: 180, - dataIndex: 'batchLimit_dictText', + dataIndex: this.isChinese() ? 'batchLimit_dictText' : 'batchLimit_dictTextEn', scopedSlots: { customRender: 'text' } }, { // 自动驾驶等级 title: this.$t('standardRegulationLibrary.marketListField.automaticDrivingLevel'), align: 'center', width: 180, - dataIndex: 'autopilotLevel_dictText', + dataIndex: this.isChinese() ? 'autopilotLevel_dictText' : 'autopilotLevel_dictTextEn', scopedSlots: { customRender: 'text' } }, { // 要求类型 title: this.$t('standardRegulationLibrary.marketListField.requirementType'), align: 'center', width: 180, - dataIndex: 'requireType_dictText', + dataIndex: this.isChinese() ? 'requireType_dictText' : 'requireType_dictTextEn', scopedSlots: { customRender: 'text' } }, { // 备注 diff --git a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsList.vue b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsList.vue index fa44873..0e7b493 100644 --- a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsList.vue +++ b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsList.vue @@ -35,6 +35,7 @@ :placeholder="$t('pleaseSelect')+$t('standardRegulationLibrary.marketRegulationsList.countryRegion')" show-search allowClear + :replaceFields="{title: isChinese() ? 'title' : 'enTitle'}" :filterTreeNode="filterTreeOption" /> @@ -151,7 +152,7 @@ export default { title: this.$t('standardRegulationLibrary.marketRegulationsList.countryRegion'), align: 'center', width: 180, - dataIndex: 'country_dictText', + dataIndex: this.isChinese() ? 'country_dictText' : 'country_dictTextEn', scopedSlots: { customRender: 'text' } }, { // 清单编号 @@ -172,7 +173,7 @@ export default { title: this.$t('standardRegulationLibrary.marketRegulationsList.drivingPosition'), align: 'center', width: 180, - dataIndex: 'drivePosition_dictText', + dataIndex: this.isChinese() ? 'drivePosition_dictText' : 'drivePosition_dictTextEn', scopedSlots: { customRender: 'text' } }, { // 清单版本 @@ -200,7 +201,7 @@ export default { title: this.$t('standardRegulationLibrary.marketRegulationsList.listState'), align: 'center', width: 180, - dataIndex: 'manifestStatus_dictText', + dataIndex: this.isChinese() ? 'manifestStatus_dictText' : 'manifestStatus_dictTextEn', scopedSlots: { customRender: 'text' } }, { diff --git a/src/views/standardRegulationLibrary/marketRegulationsList/modules/MarketRegulationsModal.vue b/src/views/standardRegulationLibrary/marketRegulationsList/modules/MarketRegulationsModal.vue index 976adb2..1ce0e56 100644 --- a/src/views/standardRegulationLibrary/marketRegulationsList/modules/MarketRegulationsModal.vue +++ b/src/views/standardRegulationLibrary/marketRegulationsList/modules/MarketRegulationsModal.vue @@ -66,6 +66,7 @@ :tree-data="countryOptions" tree-checkable treeCheckStrictly + :replaceFields="{title: isChinese() ? 'title' : 'enTitle'}" :placeholder="$t('pleaseSelect')+$t('standardRegulationLibrary.marketListField.applicableCountryRegion')" />