From 70303f3f06d84268d337760f742eb120a5e5419b Mon Sep 17 00:00:00 2001 From: g7hoo Date: Thu, 1 Sep 2022 15:01:25 +0800 Subject: [PATCH] update i18n --- src/components/base-detail-page/index.vue | 16 +-- src/components/base-dialog/AttrForm/index.vue | 9 +- .../base-dialog/addOrUpdate/index.vue | 18 +-- src/i18n/en.js | 74 +++++++++++ src/i18n/zh-CN.js | 115 +++++++++++++++--- src/views/modules/monitoring/equipment.vue | 22 ++-- .../equipmentAlarmLog-add-or-update.vue | 26 ++-- .../modules/monitoring/equipmentAlarmLog.vue | 15 +-- .../equipmentAttr-add-or-update.vue | 26 ++-- .../equipmentFile-add-or-update.vue | 30 ++--- .../modules/monitoring/equipmentFile.vue | 17 +-- .../modules/monitoring/equipmentGroup.vue | 17 +-- .../monitoring/equipmentGroupAlarm.vue | 13 +- src/views/modules/monitoring/equipmentPlc.vue | 15 +-- .../monitoring/equipmentPlcConnect.vue | 29 ++--- .../equipmentPlcParam-add-or-update.vue | 30 ++--- .../modules/monitoring/equipmentPlcParam.vue | 15 +-- .../equipmentQuantity-add-or-update.vue | 26 ++-- .../modules/monitoring/equipmentQuantity.vue | 15 +-- .../equipmentStatusLog-add-or-update.vue | 26 ++-- .../modules/monitoring/equipmentStatusLog.vue | 15 +-- .../modules/monitoring/equipmentType.vue | 15 +-- .../equipmentTypeFile-add-or-update.vue | 30 ++--- .../modules/monitoring/equipmentTypeFile.vue | 17 +-- .../modules/monitoring/equipmentattr.vue | 13 +- src/views/modules/monitoring/factory.vue | 15 +-- src/views/modules/monitoring/product.vue | 17 +-- src/views/modules/monitoring/productArrt.vue | 17 +-- .../modules/monitoring/productionLine.vue | 17 +-- .../monitoring/productionLineRecSch.vue | 11 +- .../productionlinerecsch-add-or-update.vue | 2 +- .../monitoring/qualityInspectionCurrent.vue | 3 +- .../monitoring/qualityInspectionDet.vue | 15 +-- .../monitoring/qualityInspectionRecord.vue | 19 +-- .../monitoring/qualityInspectionType.vue | 15 +-- .../modules/monitoring/realtimeEquipment.vue | 3 +- .../monitoring/realtimeProductLine.vue | 1 + .../monitoring/realtimeQualityInspection.vue | 1 + .../modules/monitoring/reportCategory.vue | 13 +- src/views/modules/monitoring/reportDetail.vue | 13 +- .../monitoring/reportSheet-add-or-update.vue | 30 ++--- src/views/modules/monitoring/reportSheet.vue | 17 +-- .../reportSheetCategory-add-or-update.vue | 30 ++--- .../monitoring/reportSheetCategory.vue | 13 +- .../monitoring/sysfile-add-or-update.vue | 26 ++-- src/views/modules/monitoring/sysfile.vue | 15 +-- src/views/modules/monitoring/sysfileType.vue | 15 +-- .../monitoring/sysfiletype-add-or-update.vue | 26 ++-- .../modules/monitoring/testMultiBaseTable.vue | 1 + .../modules/monitoring/workShopSection.vue | 15 +-- .../monitoring/workShopSectionEquipment.vue | 15 +-- .../monitoring/workshopSectionDialog.vue | 92 +++----------- .../workshopSectionDialogAttrForm.vue | 47 +++---- ...workshopsectionequipment-add-or-update.vue | 26 ++-- 54 files changed, 642 insertions(+), 532 deletions(-) diff --git a/src/components/base-detail-page/index.vue b/src/components/base-detail-page/index.vue index 3c7947a..351d6a7 100644 --- a/src/components/base-detail-page/index.vue +++ b/src/components/base-detail-page/index.vue @@ -94,7 +94,7 @@ import { pick } from 'lodash/object' // 标题 for i18n const title = { detail: '详情', - add: '新增', + add: i18n.t('add'), edit: '编辑' } @@ -112,7 +112,7 @@ const btnName = { save: '保存', update: '更新', reset: '重置', - cancel: '取消' + cancel: i18n.t('cancel') // add more... } @@ -142,8 +142,8 @@ export default { const defaultNames = { name: '名称', code: '编码', - remark: '备注', - description: '描述', + remark: i18n.t('remark'), + description: i18n.t('desc'), specifications: '规格' // add more... } @@ -166,8 +166,8 @@ export default { defaultNames: { name: '名称', code: '编码', - remark: '备注', - description: '描述', + remark: i18n.t('remark'), + description: i18n.t('desc'), specifications: '规格' // add more... }, @@ -320,11 +320,11 @@ export default { : this.defaultPlaceholders[opt.name] ? this.defaultPlaceholders[opt.name] : opt.label - ? (opt.type === 'select' ? '请选择' : '请输入') + opt.label + ? (opt.type === 'select' ? i18n.t('choose') : '请输入') + opt.label : null // : opt.type === 'select' - // ? '请选择' + // ? i18n.t('choose') // : '请输入' } }, diff --git a/src/components/base-dialog/AttrForm/index.vue b/src/components/base-dialog/AttrForm/index.vue index 11d1c1d..d3718fe 100644 --- a/src/components/base-dialog/AttrForm/index.vue +++ b/src/components/base-dialog/AttrForm/index.vue @@ -48,6 +48,7 @@