feat: 业务功能前端国际化

This commit is contained in:
2024-04-16 13:53:43 +08:00
parent 67ae97d6da
commit eb08f3f43f
43 changed files with 1387 additions and 304 deletions

View File

@@ -610,7 +610,7 @@ export default {
// 改变状态
changeEnabled(row) {
const satus = this.enabledTypeOptions.find(item => { return item.key !== row.is_used })
this.$confirm(i18n.t('User.msg.m3_1') + satus.display_name + i18n.t('User.msg.m3_2') + row.username + i18n.t('User.msg.m3_3'), i18n.t('common.Tips'), {
this.$confirm(i18n.t('User.msg.m3', {display_name: satus.display_name, username: row.username}), i18n.t('common.Tips'), {
confirmButtonText: i18n.t('common.Confirm'),
cancelButtonText: i18n.t('common.Cancel'),
type: 'warning'
@@ -618,7 +618,7 @@ export default {
row.is_used = satus.key
crudUser.edit(row).then(res => {
this.crud.toQuery()
this.crud.notify(i18n.t('User.msg.m3_2') + row.username + i18n.t('User.msg.m3_4') + satus.display_name)
this.crud.notify(i18n.t('User.msg.m4', { display_name: satus.display_name, username: row.username }))
})
})
},