perf: 修改 rdp

This commit is contained in:
ibuler
2022-07-19 18:58:44 +08:00
parent 6388eed6e3
commit 76d9a69220

View File

@@ -28,20 +28,26 @@ export default {
},
fields: [
[this.$t('common.Basic'), ['name', 'protocol', 'username', 'username_same_with_user']],
[this.$t('common.Auth'), ['login_mode', 'auto_generate_key', 'password', 'ad_domain']],
[this.$t('assets.AutoPush'), ['auto_push_account', 'system_groups']],
[this.$t('assets.Account'), [
'login_mode', 'account_template_enabled',
'auto_generate_key', 'password',
'auto_push_account', 'system_groups',
'ad_domain'
]],
[this.$t('common.Other'), ['priority', 'comment']]
],
fieldsMeta: {
login_mode: fields.login_mode,
auto_generate_key: fields.auto_generate_key,
account_template_enabled: fields.account_template_enabled,
username: fields.username,
username_same_with_user: fields.username_same_with_user,
auto_push_account: fields.auto_push_account,
protocol: fields.protocol,
ad_domain: {
label: this.$t('assets.AdDomain'),
helpText: this.$t('assets.AdDomainHelpText')
helpText: this.$t('assets.AdDomainHelpText'),
hidden: (item) => item.protocol !== 'ssh' || !item.auto_push_account
},
password: fields.password,
system_groups: fields.system_groups