forked from mt-fe-group/mt-yd-ui
update 完成设备页面的国际化
This commit is contained in:
@@ -93,7 +93,7 @@ import { pick } from 'lodash/object'
|
||||
|
||||
// 标题 for i18n
|
||||
const title = {
|
||||
detail: '详情',
|
||||
detail: i18n.t('detail'),
|
||||
add: i18n.t('add'),
|
||||
edit: '编辑'
|
||||
}
|
||||
|
||||
@@ -201,7 +201,7 @@ export default {
|
||||
deleteHandle(id) {
|
||||
var ids = id ? [id] : []
|
||||
|
||||
this.$confirm(`确定对id=${ids.join(',')}进行${id ? i18n.t('delete') : i18n.t('deleteBatch')}操作?`, '提示', {
|
||||
this.$confirm(`确定对id=${ids.join(',')}进行${id ? i18n.t('delete') : i18n.t('deleteBatch')}操作?`, i18n.t('prompt.title'), {
|
||||
confirmButtonText: i18n.t('confirm'),
|
||||
cancelButtonText: i18n.t('cancel'),
|
||||
type: 'warning'
|
||||
@@ -213,7 +213,7 @@ export default {
|
||||
}).then(({ data }) => {
|
||||
if (data && data.code === 0) {
|
||||
this.$message({
|
||||
message: '操作成功',
|
||||
message: i18n.t('prompt.success'),
|
||||
type: 'success',
|
||||
duration: 1500,
|
||||
onClose: () => {
|
||||
@@ -246,7 +246,7 @@ export default {
|
||||
}).then(({ data }) => {
|
||||
if (data && data.code === 0) {
|
||||
this.$message({
|
||||
message: '操作成功',
|
||||
message: i18n.t('prompt.success'),
|
||||
type: 'success',
|
||||
duration: 1500,
|
||||
onClose: () => {
|
||||
|
||||
@@ -108,7 +108,7 @@ import { pick } from 'lodash/object'
|
||||
import i18n from '@/i18n'
|
||||
// 标题 for i18n
|
||||
const title = {
|
||||
detail: '详情',
|
||||
detail: i18n.t('detail'),
|
||||
add: i18n.t('add'),
|
||||
edit: '编辑'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user