perf: account translate

This commit is contained in:
feng
2024-02-28 17:26:05 +08:00
parent e32c44aaa3
commit 5aeb57fb61
17 changed files with 28 additions and 28 deletions

View File

@@ -37,7 +37,7 @@ export const accountFieldsMeta = (vm) => {
on_invalid: {
rules: [Required],
label: vm.$t('AccountPolicy'),
helpText: vm.$t('BulkCreateStrategy'),
helpText: vm.$t('AccountPolicyHelpText'),
hidden: () => {
return vm.platform || vm.asset
}

View File

@@ -366,7 +366,7 @@ export default {
}.bind(this)
},
{
name: 'ClearSecret',
name: 'BatchClearSecret',
title: this.$t('ClearSecret'),
type: 'primary',
icon: 'clean',
@@ -380,13 +380,13 @@ export default {
{ account_ids: ids }).then(() => {
this.$message.success(this.$tc('ClearSuccessMsg'))
}).catch(err => {
this.$message.error(this.$tc('BulkClearErrorMsg' + ' ' + err))
this.$message.error(this.$tc('BatchClearErrorMsg' + ' ' + err))
})
}.bind(this)
},
{
name: 'actionUpdateSelected',
title: this.$t('AccountBatchUpdate'),
name: 'BatchUpdate',
title: this.$t('BatchUpdate'),
icon: 'batch-update',
can: ({ selectedRows }) => {
return selectedRows.length > 0 &&

View File

@@ -68,7 +68,7 @@ export default {
extraMoreActions: [
{
name: 'UnlockSelected',
title: this.$t('BulkUnblock'),
title: this.$t('BatchUnblock'),
type: 'primary',
can: ({ selectedRows }) => {
return selectedRows.length > 0

View File

@@ -91,7 +91,7 @@ export default {
return {
defaultMoreActions: [
{
title: this.$t('DeleteSelected'),
title: this.$t('BatchDelete'),
name: 'actionDeleteSelected',
has: this.hasBulkDelete,
icon: 'fa fa-trash-o',

View File

@@ -255,7 +255,7 @@ export default [
name: 'DomainDetail',
component: () => import('@/views/assets/Domain/DomainDetail'),
hidden: true,
meta: { title: i18n.t('DomainDetail') }
meta: { title: i18n.t('Detail') }
}
]
},

View File

@@ -72,11 +72,11 @@ export default {
},
children: [
{
path: 'bulk-Transfer',
name: 'BulkTransfer',
path: 'batch-Transfer',
name: 'BatchTransfer',
component: () => import('@/views/ops/File/index'),
meta: {
title: i18n.t('BulkTransfer'),
title: i18n.t('BatchTransfer'),
permissions: ['rbac.view_filemanager']
}
},

View File

@@ -47,6 +47,9 @@ export default {
return row.timedelta.toFixed(2) + 's'
}
},
is_success: {
width: '90px'
},
actions: {
formatterArgs: {
hasDelete: false,

View File

@@ -31,7 +31,7 @@ export default {
return {
quickActions: [
{
title: this.$t('ManualExecutePlan'),
title: this.$t('ManualExecution'),
attrs: {
type: 'primary',
label: this.$t('Execute')

View File

@@ -31,7 +31,7 @@ export default {
return {
quickActions: [
{
title: this.$t('ManualExecutePlan'),
title: this.$t('ManualExecution'),
attrs: {
type: 'primary',
label: this.$t('Execute'),

View File

@@ -71,9 +71,6 @@ export default {
present: {
width: '100px'
},
address_last_login: {
width: '120px'
},
date_updated: {
formatter: function(row, col, cell) {
return toSafeLocalDateStr(row.date_updated)
@@ -129,8 +126,8 @@ export default {
},
extraMoreActions: [
{
name: 'SyncSelected',
title: this.$t('SyncSelected'),
name: 'BatchSync',
title: this.$t('BatchSync'),
type: 'primary',
icon: 'fa fa-exchange',
can: ({ selectedRows }) => {
@@ -146,13 +143,13 @@ export default {
).then(() => {
this.$message.success(this.$tc('SyncSuccessMsg'))
}).catch(err => {
this.$message.error(this.$tc('BulkSyncErrorMsg' + ' ' + err))
this.$message.error(this.$tc('BatchSyncErrorMsg' + ' ' + err))
})
}.bind(this)
},
{
name: 'BulkSyncDelete',
title: this.$t('BulkSyncDelete'),
name: 'BatchSyncDelete',
title: this.$t('BatchSyncDelete'),
type: 'primary',
icon: 'fa fa-exchange',
can: ({ selectedRows }) => {

View File

@@ -31,7 +31,7 @@ export default {
return {
quickActions: [
{
title: this.$t('ManualExecutePlan'),
title: this.$t('ManualExecution'),
attrs: {
type: 'primary',
label: this.$t('Execute'),

View File

@@ -66,7 +66,7 @@ export default {
],
quickActions: [
{
title: this.$t('BulkVerify'),
title: this.$t('BatchTest'),
attrs: {
type: 'primary',
label: this.$tc('Test')

View File

@@ -57,7 +57,7 @@ export default {
{ required: false }
],
label: this.$t('Platform'),
helpText: this.$t('BulkUpdatePlatformHelpText')
helpText: this.$t('BatchUpdatePlatformHelpText')
},
nodes: {
...meta.nodes,

View File

@@ -27,7 +27,7 @@ export default {
activeMenu: 'Detail',
submenu: [
{
title: this.$t('DomainDetail'),
title: this.$t('Detail'),
name: 'Detail'
},
{

View File

@@ -123,7 +123,7 @@ import { formatFileSize } from '@/utils/common'
import store from '@/store'
export default {
name: 'BulkTransfer',
name: 'BatchTransfer',
components: {
TreeTable,
Page,

View File

@@ -110,7 +110,7 @@ export default {
extraMoreActions: [
{
name: 'OfflineSelected',
title: this.$t('BulkOffline'),
title: this.$t('BatchOffline'),
type: 'danger',
icon: 'clean',
can: ({ selectedRows }) => {

View File

@@ -35,7 +35,7 @@ export default {
extraMoreActions: [
{
name: 'SyncSelected',
title: this.$t('BulkDeploy'),
title: this.$t('BatchDeployment'),
type: 'primary',
can: ({ selectedRows }) => {
return selectedRows.length > 0