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 @@