From 14000317b9354b4d3ace0c847c5b6f75dfe1cf26 Mon Sep 17 00:00:00 2001 From: Orange Date: Tue, 23 Mar 2021 17:01:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=81=A2=E5=A4=8DRDP=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E7=94=A8=E6=88=B7user=5Fgroup=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/assets/SystemUser/SystemUserCreate/rdp.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/assets/SystemUser/SystemUserCreate/rdp.vue b/src/views/assets/SystemUser/SystemUserCreate/rdp.vue index c7c3945c3..b4dea5032 100644 --- a/src/views/assets/SystemUser/SystemUserCreate/rdp.vue +++ b/src/views/assets/SystemUser/SystemUserCreate/rdp.vue @@ -23,7 +23,7 @@ export default { }, fields: [ [this.$t('common.Basic'), ['name', 'login_mode', 'username', 'username_same_with_user', 'priority', 'protocol']], - [this.$t('assets.AutoPush'), ['auto_push']], + [this.$t('assets.AutoPush'), ['auto_push', 'system_groups']], [this.$t('common.Auth'), ['update_password', 'password', 'ad_domain']], [this.$t('common.Other'), ['comment']] ], @@ -133,6 +133,11 @@ export default { } return !form.update_password } + }, + system_groups: { + label: this.$t('assets.LinuxUserAffiliateGroup'), + hidden: (item) => ['ssh', 'rdp'].indexOf(item.protocol) === -1 || !item.auto_push || item.username_same_with_user, + helpText: this.$t('assets.GroupsHelpMessage') } }, url: '/api/v1/assets/system-users/',