From 8bb68369e4796c26e6134aa27f14fdff5f94d81d Mon Sep 17 00:00:00 2001 From: jym503558564 <503558564@qq.com> Date: Thu, 28 May 2020 18:56:30 +0800 Subject: [PATCH 1/3] =?UTF-8?q?[Update]=20=E9=9C=80=E6=94=B9=E6=8E=88?= =?UTF-8?q?=E6=9D=83=E5=88=97=E8=A1=A8=E7=BB=84=E4=BB=B6=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E5=88=B0=E6=8C=87=E5=AE=9Atab=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AssetPermission/AssetPermissionList.vue | 18 +++++++++++++++--- .../DatabaseAppPermissionList.vue | 6 +++++- .../RemoteAppPermissionList.vue | 6 +++++- 3 files changed, 25 insertions(+), 5 deletions(-) diff --git a/src/views/perms/AssetPermission/AssetPermissionList.vue b/src/views/perms/AssetPermission/AssetPermissionList.vue index bb3a6a176..e2bce4233 100644 --- a/src/views/perms/AssetPermission/AssetPermissionList.vue +++ b/src/views/perms/AssetPermission/AssetPermissionList.vue @@ -50,7 +50,11 @@ export default { } }, user_groups_amount: { - label: this.$t('perms.UserGroups') + label: this.$t('perms.UserGroups'), + formatter: DetailFormatter, + routeQuery: { + activeTab: 'AssetPermissionUser' + } }, assets_amount: { label: this.$t('perms.Asset'), @@ -60,10 +64,18 @@ export default { } }, nodes_amount: { - label: this.$t('perms.Node') + label: this.$t('perms.Node'), + formatter: DetailFormatter, + routeQuery: { + activeTab: 'AssetPermissionAsset' + } }, system_users_amount: { - label: this.$t('perms.SystemUser') + label: this.$t('perms.SystemUser'), + formatter: DetailFormatter, + routeQuery: { + activeTab: 'AssetPermissionAsset' + } } }, actions: { diff --git a/src/views/perms/DatabaseAppPermission/DatabaseAppPermissionList.vue b/src/views/perms/DatabaseAppPermission/DatabaseAppPermissionList.vue index de1dd3ec1..3e060d0fb 100644 --- a/src/views/perms/DatabaseAppPermission/DatabaseAppPermissionList.vue +++ b/src/views/perms/DatabaseAppPermission/DatabaseAppPermissionList.vue @@ -43,7 +43,11 @@ export default { } }, system_users_amount: { - label: this.$t('perms.SystemUser') + label: this.$t('perms.SystemUser'), + formatter: DetailFormatter, + routeQuery: { + activeTab: 'DatabaseAppPermissionDatabaseApp' + } } } }, diff --git a/src/views/perms/RemoteAppPermission/RemoteAppPermissionList.vue b/src/views/perms/RemoteAppPermission/RemoteAppPermissionList.vue index 6d262b0d8..365f3e64b 100644 --- a/src/views/perms/RemoteAppPermission/RemoteAppPermissionList.vue +++ b/src/views/perms/RemoteAppPermission/RemoteAppPermissionList.vue @@ -42,7 +42,11 @@ export default { } }, system_users_amount: { - label: this.$t('assets.SystemUsers') + label: this.$t('assets.SystemUsers'), + formatter: DetailFormatter, + routeQuery: { + activeTab: 'RemoteAppPermissionRemoteApp' + } } } }, From e92d29c2a768daca58a9e9e40126d2a426cede7b Mon Sep 17 00:00:00 2001 From: OrangeM21 Date: Thu, 28 May 2020 20:31:39 +0800 Subject: [PATCH 2/3] =?UTF-8?q?[fix]=E6=B7=BB=E5=8A=A0=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=AF=A6=E6=83=85=E9=A1=B5=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E8=BF=87=E6=BB=A4=E5=8D=A1=E7=89=87=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/langs/cn.json | 1 + src/i18n/langs/en.json | 1 + .../SystemUser/SystemUserCreateUpdate.vue | 17 ++- .../SystemUser/SystemUserDetail/AssetList.vue | 138 ++++++++++++++---- .../SystemUser/SystemUserDetail/Detail.vue | 55 ++++++- 5 files changed, 177 insertions(+), 35 deletions(-) diff --git a/src/i18n/langs/cn.json b/src/i18n/langs/cn.json index dae9036e3..426885885 100644 --- a/src/i18n/langs/cn.json +++ b/src/i18n/langs/cn.json @@ -10,6 +10,7 @@ }, "assets": { "Action": "动作", + "CmdFilter": "命令过滤器", "UpdateAssetUserToken": "更新资产用户认证信息", "Password": "密码", "RefreshHardware": "更新硬件信息", diff --git a/src/i18n/langs/en.json b/src/i18n/langs/en.json index 721263d78..8ac8c70e8 100644 --- a/src/i18n/langs/en.json +++ b/src/i18n/langs/en.json @@ -10,6 +10,7 @@ }, "assets": { "Action": "Action", + "CmdFilter": "CmdFilter", "UpdateAssetUserToken": "Update asset user auth", "Password": "Password", "RefreshHardware": "Refresh hardware", diff --git a/src/views/assets/SystemUser/SystemUserCreateUpdate.vue b/src/views/assets/SystemUser/SystemUserCreateUpdate.vue index 9bf40a8da..3f3eb2db9 100644 --- a/src/views/assets/SystemUser/SystemUserCreateUpdate.vue +++ b/src/views/assets/SystemUser/SystemUserCreateUpdate.vue @@ -4,8 +4,8 @@