Merge pull request #3992 from jumpserver/pr@v4@translate

perf: translate
This commit is contained in:
feng626
2024-06-03 10:25:56 +08:00
committed by GitHub
12 changed files with 20 additions and 26 deletions

View File

@@ -281,7 +281,6 @@ export default [
path: 'account-gather',
component: empty,
redirect: '',
hidden: true,
name: 'AccountGather',
meta: {
title: i18n.t('AccountGatherList'),

View File

@@ -46,7 +46,6 @@ export default {
fieldsMeta: {
...getChangeSecretFields(),
assets: {
label: this.$t('Asset'),
type: 'assetSelect',
component: AssetSelect,
rules: [
@@ -62,7 +61,6 @@ export default {
}
},
nodes: {
label: this.$t('Node'),
el: {
value: [],
ajax: {
@@ -80,13 +78,11 @@ export default {
},
params: {
component: AutomationParams,
label: this.$t('ChangeSecretParams'),
el: {
method: 'change_secret_method',
assets: this.asset_ids,
nodes: this.node_ids
},
helpText: this.$t('ParamsHelpText')
}
}
},
createSuccessNextRoute: { name: 'AccountChangeSecretList' },

View File

@@ -30,11 +30,11 @@ export default {
value: this.object.snapshot.name
},
{
key: this.$t('AssetAmount'),
key: this.$t('AssetsOfNumber'),
value: this.object.snapshot.asset_amount
},
{
key: this.$t('NodeAmount'),
key: this.$t('NodeOfNumber'),
value: this.object.snapshot.node_amount
},
'trigger_display', 'date_start', 'date_finished',

View File

@@ -47,13 +47,13 @@ export default {
id: ({ row }) => row.automation
},
asset_amount: {
label: this.$t('AssetAmount'),
label: this.$t('AssetsOfNumber'),
formatter: function(row) {
return <span>{row.snapshot.asset_amount}</span>
}
},
node_amount: {
label: this.$t('NodeAmount'),
label: this.$t('NodeOfNumber'),
formatter: function(row) {
return <span>{row.snapshot.node_amount}</span>
}

View File

@@ -53,15 +53,15 @@ export default {
detailFields: [
'id', 'name',
{
key: this.$t('Username'),
key: this.$t('Accounts'),
value: this.object.accounts.join(', ')
},
{
key: this.$t('AssetAmount'),
key: this.$t('AssetsOfNumber'),
value: this.object.assets.length
},
{
key: this.$t('NodeAmount'),
key: this.$t('NodeOfNumber'),
value: this.object.nodes.length
},
{

View File

@@ -51,7 +51,6 @@ export const getChangeSecretFields = () => {
},
recipients: {
label: i18n.t('Recipient'),
helpText: i18n.t('OnlyMailSend'),
el: {
value: [],
ajax: {
@@ -66,7 +65,7 @@ export const getChangeSecretFields = () => {
crontab,
is_periodic,
accounts: {
label: i18n.t('Username'),
label: i18n.t('Accounts'),
component: TagInput
}
}

View File

@@ -53,15 +53,15 @@ export default {
detailFields: [
'id', 'name',
{
key: this.$t('Username'),
key: this.$t('Accounts'),
value: this.object.accounts.join(', ')
},
{
key: this.$t('AssetAmount'),
key: this.$t('AssetsOfNumber'),
value: this.object.assets.length
},
{
key: this.$t('NodeAmount'),
key: this.$t('NodeOfNumber'),
value: this.object.nodes.length
},
{

View File

@@ -30,11 +30,11 @@ export default {
value: this.object.snapshot.name
},
{
key: this.$t('AssetAmount'),
key: this.$t('AssetsOfNumber'),
value: this.object.snapshot.asset_amount
},
{
key: this.$t('NodeAmount'),
key: this.$t('NodeOfNumber'),
value: this.object.snapshot.node_amount
},
'trigger_display', 'date_start', 'date_finished',

View File

@@ -47,13 +47,13 @@ export default {
id: ({ row }) => row.automation
},
asset_amount: {
label: this.$t('AssetAmount'),
label: this.$t('AssetsOfNumber'),
formatter: function(row) {
return <span>{row.snapshot.asset_amount}</span>
}
},
node_amount: {
label: this.$t('NodeAmount'),
label: this.$t('NodeOfNumber'),
formatter: function(row) {
return <span>{row.snapshot.node_amount}</span>
}

View File

@@ -56,10 +56,10 @@ export default {
}
},
assets_amount: {
label: vm.$t('AssetAmount')
label: vm.$t('AssetsOfNumber')
},
nodes_amount: {
label: vm.$t('NodeAmount')
label: vm.$t('NodeOfNumber')
},
password_strategy_display: {
label: vm.$t('PasswordStrategy'),

View File

@@ -62,7 +62,7 @@ export default {
}
},
asset_amount: {
label: this.$t('AssetAmount'),
label: this.$t('AssetsOfNumber'),
formatter: (row) => {
return row.assets.length
}

View File

@@ -112,7 +112,7 @@ export default {
value: this.licenseData.date_expired
},
{
key: this.$t('AssetAmount'),
key: this.$t('AssetsOfNumber'),
value: this.licenseData.asset_count !== null ? this.licenseData.asset_count + '' : ''
},
{