From fa55e33b548d531b03fabd2f00f4ad835b92a27a Mon Sep 17 00:00:00 2001 From: Jon Date: Thu, 13 Jun 2024 07:43:49 +0200 Subject: [PATCH 1/3] fix: refs #7566 fixed summary cards and table --- src/components/ui/CardSummary.vue | 4 +- src/pages/Customer/Card/CustomerSummary.vue | 6 +- .../components/CustomerSummaryTable.vue | 131 ++++++++++-------- 3 files changed, 76 insertions(+), 65 deletions(-) diff --git a/src/components/ui/CardSummary.vue b/src/components/ui/CardSummary.vue index ae9a43578..cab5b98be 100644 --- a/src/components/ui/CardSummary.vue +++ b/src/components/ui/CardSummary.vue @@ -159,9 +159,9 @@ function existSummary(routes) { margin-top: 2px; .label { color: var(--vn-label-color); - width: 8em; + width: 9em; overflow: hidden; - white-space: nowrap; + white-space: wrap; text-overflow: ellipsis; margin-right: 10px; flex-grow: 0; diff --git a/src/pages/Customer/Card/CustomerSummary.vue b/src/pages/Customer/Card/CustomerSummary.vue index f386b0359..5a003dc85 100644 --- a/src/pages/Customer/Card/CustomerSummary.vue +++ b/src/pages/Customer/Card/CustomerSummary.vue @@ -306,10 +306,8 @@ const creditWarning = computed(() => { :value="entity.recommendedCredit" /> - -
- {{ t('Latest tickets') }} -
+ + diff --git a/src/pages/Customer/components/CustomerSummaryTable.vue b/src/pages/Customer/components/CustomerSummaryTable.vue index 6a33ebc88..c5449f539 100644 --- a/src/pages/Customer/components/CustomerSummaryTable.vue +++ b/src/pages/Customer/components/CustomerSummaryTable.vue @@ -171,67 +171,80 @@ const navigateToticketSummary = (id) => { auto-load url="Tickets" /> - - + + + + + + + + + + +
From 546b43ffcfcac348a846c786d6441a29f2ed314e Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 18 Jun 2024 13:29:17 +0200 Subject: [PATCH 2/3] refactor: refs #7566 fix customer summary --- .../components/CustomerSummaryTable.vue | 24 ++++++------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/src/pages/Customer/components/CustomerSummaryTable.vue b/src/pages/Customer/components/CustomerSummaryTable.vue index c5449f539..8c4e93362 100644 --- a/src/pages/Customer/components/CustomerSummaryTable.vue +++ b/src/pages/Customer/components/CustomerSummaryTable.vue @@ -162,6 +162,7 @@ const navigateToticketSummary = (id) => { params: { id }, }); }; +const commonColumns = (col) => ['date', 'state', 'total'].includes(col);