mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-14 04:45:42 +00:00
perf: account translate
This commit is contained in:
parent
e2d7d8edd8
commit
009770bb04
@ -53,7 +53,7 @@ export default {
|
|||||||
title: {
|
title: {
|
||||||
type: String,
|
type: String,
|
||||||
default: function() {
|
default: function() {
|
||||||
return this.$t('AddAccount')
|
return this.$t('Add')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -139,7 +139,7 @@ export default {
|
|||||||
showAddDialog: false,
|
showAddDialog: false,
|
||||||
showAddTemplateDialog: false,
|
showAddTemplateDialog: false,
|
||||||
createAccountResults: [],
|
createAccountResults: [],
|
||||||
accountCreateUpdateTitle: this.$t('AddAccount'),
|
accountCreateUpdateTitle: this.$t('Create'),
|
||||||
iAsset: this.asset,
|
iAsset: this.asset,
|
||||||
account: {},
|
account: {},
|
||||||
secretUrl: '',
|
secretUrl: '',
|
||||||
@ -311,7 +311,7 @@ export default {
|
|||||||
extraActions: [
|
extraActions: [
|
||||||
{
|
{
|
||||||
name: 'add',
|
name: 'add',
|
||||||
title: this.$t('Add'),
|
title: this.$t('Create'),
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
can: () => {
|
can: () => {
|
||||||
return vm.$hasPerm('accounts.add_account') && !this.$store.getters.currentOrgIsRoot
|
return vm.$hasPerm('accounts.add_account') && !this.$store.getters.currentOrgIsRoot
|
||||||
@ -321,7 +321,7 @@ export default {
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
vm.iAsset = this.asset
|
vm.iAsset = this.asset
|
||||||
vm.account = {}
|
vm.account = {}
|
||||||
vm.accountCreateUpdateTitle = this.$t('AddAccount')
|
vm.accountCreateUpdateTitle = this.$t('Create')
|
||||||
vm.showAddDialog = true
|
vm.showAddDialog = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -338,7 +338,7 @@ export default {
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
vm.iAsset = this.asset
|
vm.iAsset = this.asset
|
||||||
vm.account = {}
|
vm.account = {}
|
||||||
vm.accountCreateUpdateTitle = this.$t('AddAccount')
|
vm.accountCreateUpdateTitle = this.$t('Create')
|
||||||
vm.showAddTemplateDialog = true
|
vm.showAddTemplateDialog = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -347,8 +347,8 @@ export default {
|
|||||||
],
|
],
|
||||||
extraMoreActions: [
|
extraMoreActions: [
|
||||||
{
|
{
|
||||||
name: 'BulkVerify',
|
name: 'BatchTest',
|
||||||
title: this.$t('BulkVerify'),
|
title: this.$t('BatchTest'),
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
icon: 'fa-handshake-o',
|
icon: 'fa-handshake-o',
|
||||||
can: ({ selectedRows }) => {
|
can: ({ selectedRows }) => {
|
||||||
@ -366,7 +366,7 @@ export default {
|
|||||||
}.bind(this)
|
}.bind(this)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'ClearSecrets',
|
name: 'ClearSecret',
|
||||||
title: this.$t('ClearSecret'),
|
title: this.$t('ClearSecret'),
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
icon: 'clean',
|
icon: 'clean',
|
||||||
|
@ -86,7 +86,7 @@ export default {
|
|||||||
title: {
|
title: {
|
||||||
type: String,
|
type: String,
|
||||||
default: function() {
|
default: function() {
|
||||||
return this.$tc('AccountDetail')
|
return this.$tc('Detail')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
showPasswordRecord: {
|
showPasswordRecord: {
|
||||||
|
@ -137,7 +137,7 @@ export default [
|
|||||||
name: 'AccountPushCreate',
|
name: 'AccountPushCreate',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
meta: {
|
meta: {
|
||||||
title: i18n.t('AccountPushCreate'),
|
title: i18n.t('Create'),
|
||||||
permissions: ['accounts.add_pushaccountautomation']
|
permissions: ['accounts.add_pushaccountautomation']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -147,7 +147,7 @@ export default [
|
|||||||
name: 'AccountPushUpdate',
|
name: 'AccountPushUpdate',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
meta: {
|
meta: {
|
||||||
title: i18n.t('AccountPushUpdate'),
|
title: i18n.t('Update'),
|
||||||
permissions: ['accounts.change_pushaccountautomation']
|
permissions: ['accounts.change_pushaccountautomation']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -208,7 +208,7 @@ export default [
|
|||||||
name: 'AccountGatherTaskCreate',
|
name: 'AccountGatherTaskCreate',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
meta: {
|
meta: {
|
||||||
title: i18n.t('AccountGatherTaskCreate'),
|
title: i18n.t('Create'),
|
||||||
permissions: ['accounts.add_gatheraccountsautomation']
|
permissions: ['accounts.add_gatheraccountsautomation']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -228,7 +228,7 @@ export default [
|
|||||||
name: 'AccountGatherTaskUpdate',
|
name: 'AccountGatherTaskUpdate',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
meta: {
|
meta: {
|
||||||
title: i18n.t('AccountGatherTaskUpdate'),
|
title: i18n.t('Update'),
|
||||||
action: 'update',
|
action: 'update',
|
||||||
permissions: ['accounts.change_gatheraccountsautomation'],
|
permissions: ['accounts.change_gatheraccountsautomation'],
|
||||||
activeMenu: '/accounts/account-gather'
|
activeMenu: '/accounts/account-gather'
|
||||||
@ -352,7 +352,7 @@ export default [
|
|||||||
component: () => import('@/views/accounts/AccountBackup/AccountBackupCreateUpdate.vue'),
|
component: () => import('@/views/accounts/AccountBackup/AccountBackupCreateUpdate.vue'),
|
||||||
name: 'AccountBackupPlanCreate',
|
name: 'AccountBackupPlanCreate',
|
||||||
meta: {
|
meta: {
|
||||||
title: i18n.t('AccountBackupCreate'),
|
title: i18n.t('Create'),
|
||||||
action: 'create'
|
action: 'create'
|
||||||
},
|
},
|
||||||
hidden: true
|
hidden: true
|
||||||
@ -362,7 +362,7 @@ export default [
|
|||||||
component: () => import('@/views/accounts/AccountBackup/AccountBackupCreateUpdate.vue'),
|
component: () => import('@/views/accounts/AccountBackup/AccountBackupCreateUpdate.vue'),
|
||||||
name: 'AccountBackupPlanUpdate',
|
name: 'AccountBackupPlanUpdate',
|
||||||
meta: {
|
meta: {
|
||||||
title: i18n.t('AccountBackupUpdate'),
|
title: i18n.t('Update'),
|
||||||
action: 'update'
|
action: 'update'
|
||||||
},
|
},
|
||||||
hidden: true
|
hidden: true
|
||||||
|
@ -46,7 +46,7 @@ const clouds = {
|
|||||||
name: 'AccountCreate',
|
name: 'AccountCreate',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
meta: {
|
meta: {
|
||||||
title: i18n.t('AccountCreate'),
|
title: i18n.t('Create'),
|
||||||
action: 'create',
|
action: 'create',
|
||||||
permissions: ['xpack.add_account']
|
permissions: ['xpack.add_account']
|
||||||
}
|
}
|
||||||
@ -57,7 +57,7 @@ const clouds = {
|
|||||||
name: 'AccountUpdate',
|
name: 'AccountUpdate',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
meta: {
|
meta: {
|
||||||
title: i18n.t('AccountUpdate'),
|
title: i18n.t('Update'),
|
||||||
action: 'update',
|
action: 'update',
|
||||||
permissions: ['xpack.change_account']
|
permissions: ['xpack.change_account']
|
||||||
}
|
}
|
||||||
@ -68,7 +68,7 @@ const clouds = {
|
|||||||
name: 'AccountDetail',
|
name: 'AccountDetail',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
meta: {
|
meta: {
|
||||||
title: i18n.t('AccountDetail'),
|
title: i18n.t('Detail'),
|
||||||
permissions: ['xpack.view_account']
|
permissions: ['xpack.view_account']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
:destroy-on-close="true"
|
:destroy-on-close="true"
|
||||||
:show-cancel="false"
|
:show-cancel="false"
|
||||||
:show-confirm="false"
|
:show-confirm="false"
|
||||||
:title="$tc('AddAccount')"
|
:title="$tc('Add')"
|
||||||
:visible.sync="iVisible"
|
:visible.sync="iVisible"
|
||||||
width="800px"
|
width="800px"
|
||||||
>
|
>
|
||||||
|
@ -27,7 +27,7 @@ export default {
|
|||||||
activeMenu: 'AccountDetail',
|
activeMenu: 'AccountDetail',
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
title: this.$t('AccountDetail'),
|
title: this.$t('Detail'),
|
||||||
name: 'AccountDetail'
|
name: 'AccountDetail'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user