From a1fcdb39b917d1592ccb4f4d49f41f523291269f Mon Sep 17 00:00:00 2001 From: ibuler Date: Sun, 28 Apr 2024 19:10:22 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BF=AE=E6=94=B9=20v4=20=E8=A1=A8?= =?UTF-8?q?=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Table/CardTable.vue | 57 +++++++++++++++---------- src/router/console/accounts.js | 8 +--- src/router/console/acls.js | 6 +-- src/styles/index.scss | 6 +++ src/views/accounts/Automation/index.vue | 3 ++ src/views/acl/index.vue | 3 ++ src/views/tickets/index.vue | 17 ++++---- 7 files changed, 60 insertions(+), 40 deletions(-) diff --git a/src/components/Table/CardTable.vue b/src/components/Table/CardTable.vue index cf0df53ed..153d6408d 100644 --- a/src/components/Table/CardTable.vue +++ b/src/components/Table/CardTable.vue @@ -11,6 +11,7 @@ diff --git a/src/router/console/accounts.js b/src/router/console/accounts.js index 85ed94ce6..83765b142 100644 --- a/src/router/console/accounts.js +++ b/src/router/console/accounts.js @@ -1,6 +1,5 @@ import i18n from '@/i18n/i18n' import empty from '@/layout/empty' -import store from '@/store' export default [ { @@ -121,16 +120,13 @@ export default [ meta: { title: i18n.t('Automations'), name: 'Automations', - permissions: [], - licenseRequired: true + permissions: [] } }, { path: 'account-push', component: empty, - hidden: () => { - return store.getters.hasValidLicense - }, + hidden: true, redirect: '', name: 'AccountPush', meta: { diff --git a/src/router/console/acls.js b/src/router/console/acls.js index cae4a26cd..c521e582e 100644 --- a/src/router/console/acls.js +++ b/src/router/console/acls.js @@ -1,6 +1,5 @@ import i18n from '@/i18n/i18n' import empty from '@/layout/empty' -import store from '@/store' const globalSubmenu = () => import('@/layout/globalOrg.vue') @@ -11,15 +10,14 @@ export default [ component: () => import('@/views/acl/index.vue'), meta: { title: i18n.t('ACLs'), - permissions: [], - licenseRequired: true + permissions: [] } }, { path: 'cmd-acls', component: empty, redirect: '', - hidden: () => store.getters.hasValidLicense, + hidden: true, meta: { title: i18n.t('CommandFilterAclList'), app: 'acls', diff --git a/src/styles/index.scss b/src/styles/index.scss index 5af1cd421..73fcb41eb 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -465,3 +465,9 @@ $tooltip-arrow-color: #c2d1e1; color: #1c84c6; } } + +.el-tooltip__popper.is-dark { + background: rgba(58, 60, 62, 0.9) !important; + color: #FFF; + line-height: 1.5; +} diff --git a/src/views/accounts/Automation/index.vue b/src/views/accounts/Automation/index.vue index aa6734300..2fcd39d90 100644 --- a/src/views/accounts/Automation/index.vue +++ b/src/views/accounts/Automation/index.vue @@ -33,6 +33,7 @@ export default { name: 'AccountChangeSecretList', comment: this.$t('ChangeCredentialsHelpText'), icon: 'change-password', + edition: 'enterprise', tags: ['ansible'] }, { @@ -41,6 +42,7 @@ export default { name: 'AccountGatherList', comment: this.$t('GatherAccountsHelpText'), icon: 'gather-account', + edition: 'enterprise', tags: ['ansible'] }, { @@ -49,6 +51,7 @@ export default { name: 'AccountBackupList', comment: this.$t('BackupAccountsHelpText'), icon: 'backup-account', + edition: 'enterprise', tags: ['email', 'SFTP'] } ], diff --git a/src/views/acl/index.vue b/src/views/acl/index.vue index 459d7bbb1..06f935bab 100644 --- a/src/views/acl/index.vue +++ b/src/views/acl/index.vue @@ -33,6 +33,7 @@ export default { name: 'AssetAclList', comment: this.$t('AssetLoginACLHelpText'), icon: 'assets', + edition: 'enterprise', tags: ['asset'] }, { @@ -41,6 +42,7 @@ export default { name: 'ConnectMethodAclList', comment: this.$t('ConnectMethodACLHelpText'), icon: 'client', + edition: 'enterprise', tags: ['client', 'cli'] }, { @@ -49,6 +51,7 @@ export default { name: 'UserLoginAclList', comment: this.$t('UserLoginACLHelpText'), icon: 'login', + edition: 'enterprise', tags: ['login'] } ], diff --git a/src/views/tickets/index.vue b/src/views/tickets/index.vue index b5a5298ed..fff0e0287 100644 --- a/src/views/tickets/index.vue +++ b/src/views/tickets/index.vue @@ -1,13 +1,14 @@