mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-10 02:57:47 +00:00
perf: Translate account
This commit is contained in:
parent
eba323fb64
commit
a0382dc984
@ -32,7 +32,7 @@ export default {
|
|||||||
tableConfig: {
|
tableConfig: {
|
||||||
url: '/api/v1/accounts/account-templates/',
|
url: '/api/v1/accounts/account-templates/',
|
||||||
columns: null,
|
columns: null,
|
||||||
columnsExclude: ['spec_info'],
|
columnsExclude: ['spec_info', 'password_rules', 'push_params'],
|
||||||
columnsShow: {
|
columnsShow: {
|
||||||
min: ['name', 'actions'],
|
min: ['name', 'actions'],
|
||||||
default: ['name', 'username', 'secret_type', 'has_secret', 'privileged', 'actions']
|
default: ['name', 'username', 'secret_type', 'has_secret', 'privileged', 'actions']
|
||||||
|
@ -116,7 +116,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('SuEnabled'),
|
title: this.$t('EnableDomain'),
|
||||||
type: 'switch',
|
type: 'switch',
|
||||||
attrs: {
|
attrs: {
|
||||||
model: object['su_enabled'],
|
model: object['su_enabled'],
|
||||||
|
@ -63,6 +63,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
updateSuccessNextRoute: { name: 'UserGuide' },
|
updateSuccessNextRoute: { name: 'UserGuide' },
|
||||||
|
hasReset: false,
|
||||||
cleanFormValue(value) {
|
cleanFormValue(value) {
|
||||||
value = Object.assign({}, value, { is_first_login: false })
|
value = Object.assign({}, value, { is_first_login: false })
|
||||||
if (value.mfa_level === 2) {
|
if (value.mfa_level === 2) {
|
||||||
|
@ -73,6 +73,7 @@ export default {
|
|||||||
label: this.$t('Date')
|
label: this.$t('Date')
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
|
width: '160px',
|
||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
hasUpdate: false,
|
hasUpdate: false,
|
||||||
hasDelete: false,
|
hasDelete: false,
|
||||||
|
@ -142,7 +142,7 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: 'title',
|
value: 'title',
|
||||||
label: this.$t('title')
|
label: this.$t('Title')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: 'type',
|
value: 'type',
|
||||||
|
Loading…
Reference in New Issue
Block a user