From 7c1d1278f6c3c0d2ff735fb8dada98001b9b4032 Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 11 Mar 2025 10:57:55 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BF=AE=E6=94=B9=20panel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Apps/AccountListTable/AccountList.vue | 4 ++-- src/components/Table/InfoCardTable/Info.vue | 5 +---- src/components/Table/InfoCardTable/Panel.vue | 8 +++++++- src/views/accounts/Integration/components/AccountList.vue | 2 +- src/views/accounts/Integration/components/CallRecords.vue | 8 ++++++++ 5 files changed, 19 insertions(+), 8 deletions(-) diff --git a/src/components/Apps/AccountListTable/AccountList.vue b/src/components/Apps/AccountListTable/AccountList.vue index 877dcada8..6a99429bd 100644 --- a/src/components/Apps/AccountListTable/AccountList.vue +++ b/src/components/Apps/AccountListTable/AccountList.vue @@ -259,14 +259,14 @@ export default { connectivity: connectivityMeta, actions: { formatter: ActionsFormatter, - has: false, + has: this.showActions, formatterArgs: { hasUpdate: false, // can set function(row, value) hasDelete: true, // can set function(row, value) hasClone: false, canDelete: () => vm.$hasPerm('accounts.delete_account'), moreActionsTitle: this.$t('More'), - extraActions: this.showActions ? accountOtherActions(this) : [] + extraActions: accountOtherActions(this) } }, ...this.columnsMeta diff --git a/src/components/Table/InfoCardTable/Info.vue b/src/components/Table/InfoCardTable/Info.vue index c8436a617..4c75bc9a6 100644 --- a/src/components/Table/InfoCardTable/Info.vue +++ b/src/components/Table/InfoCardTable/Info.vue @@ -2,7 +2,7 @@
- {{ item.title }}: + {{ item.title }}

{{ item.content }}

@@ -21,9 +21,6 @@ export default { }, data() { return {} - }, - mounted() { - console.log('INfo: ', this.infos) } } diff --git a/src/components/Table/InfoCardTable/Panel.vue b/src/components/Table/InfoCardTable/Panel.vue index 411bdbaf3..9d34ed889 100644 --- a/src/components/Table/InfoCardTable/Panel.vue +++ b/src/components/Table/InfoCardTable/Panel.vue @@ -5,7 +5,7 @@
{{ object.name }} - {{ object.provider.label }} + {{ object.provider.label }}
- +