mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-25 14:34:46 +00:00
Merge pull request #3992 from jumpserver/pr@v4@translate
perf: translate
This commit is contained in:
@@ -281,7 +281,6 @@ export default [
|
||||
path: 'account-gather',
|
||||
component: empty,
|
||||
redirect: '',
|
||||
hidden: true,
|
||||
name: 'AccountGather',
|
||||
meta: {
|
||||
title: i18n.t('AccountGatherList'),
|
||||
|
||||
@@ -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' },
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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>
|
||||
}
|
||||
|
||||
@@ -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
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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>
|
||||
}
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -62,7 +62,7 @@ export default {
|
||||
}
|
||||
},
|
||||
asset_amount: {
|
||||
label: this.$t('AssetAmount'),
|
||||
label: this.$t('AssetsOfNumber'),
|
||||
formatter: (row) => {
|
||||
return row.assets.length
|
||||
}
|
||||
|
||||
@@ -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 + '' : ''
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user