update i18n

This commit is contained in:
2022-09-01 15:01:25 +08:00
parent 666059af6e
commit 70303f3f06
54 changed files with 642 additions and 532 deletions

View File

@@ -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')
// : '请输入'
}
},

View File

@@ -48,6 +48,7 @@
</template>
<script>
import i18n from '@/i18n'
import BaseTable from '@/components/base-table'
import { pick } from 'lodash/object'
@@ -200,9 +201,9 @@ export default {
deleteHandle(id) {
var ids = id ? [id] : []
this.$confirm(`确定对id=${ids.join(',')}进行${id ? '删除' : '批量删除'}操作?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
this.$confirm(`确定对id=${ids.join(',')}进行${id ? i18n.t('delete') : i18n.t('deleteBatch')}操作?`, '提示', {
confirmButtonText: i18n.t('confirm'),
cancelButtonText: i18n.t('cancel'),
type: 'warning'
}).then(() => {
this.$http({
@@ -281,4 +282,4 @@ export default {
.attr-form >>> .el-form .el-form-item__label {
padding: 0;
}
</style>
</style>

View File

@@ -105,11 +105,11 @@
<script>
import AttrForm from '../AttrForm'
import { pick } from 'lodash/object'
import i18n from '@/i18n'
// 标题 for i18n
const title = {
detail: '详情',
add: '新增',
add: i18n.t('add'),
edit: '编辑'
}
@@ -127,7 +127,7 @@ const btnName = {
save: '保存',
update: '更新',
reset: '重置',
cancel: '取消'
cancel: i18n.t('cancel')
// add more...
}
@@ -157,8 +157,8 @@ export default {
const defaultNames = {
name: '名称',
code: '编码',
remark: '备注',
description: '描述',
remark: i18n.t('remark'),
description: i18n.t('desc'),
specifications: '规格'
// add more...
}
@@ -181,8 +181,8 @@ export default {
defaultNames: {
name: '名称',
code: '编码',
remark: '备注',
description: '描述',
remark: i18n.t('remark'),
description: i18n.t('desc'),
specifications: '规格'
// add more...
},
@@ -335,11 +335,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')
// : '请输入'
}
},