From fc074dc7c3fd93879652377e7beebd6d3053116d Mon Sep 17 00:00:00 2001 From: puriphatt Date: Wed, 24 Apr 2024 02:38:54 +0000 Subject: [PATCH] fix: stat card on customer main --- src/pages/03_customer-management/MainPage.vue | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/pages/03_customer-management/MainPage.vue b/src/pages/03_customer-management/MainPage.vue index dac7ce61..8a734533 100644 --- a/src/pages/03_customer-management/MainPage.vue +++ b/src/pages/03_customer-management/MainPage.vue @@ -95,17 +95,13 @@ const customerStats = [ { id: 1, count: 2, - name: 'นายจ้าง 1', - nameEN: 'Employer 1', - isEmployer: true, + name: 'customerLegalEntity', }, { id: 2, count: 3, - name: 'นายจ้าง 2', - nameEN: 'Employer 2', - isEmployer: true, + name: 'customerNaturalPerson', }, ]; @@ -172,8 +168,8 @@ function onClose() { :branch=" customerStats.map((v) => ({ count: v.count, - label: $i18n.locale === 'en-US' ? v.nameEN : v.name, - color: v.isEmployer ? 'pink' : 'purple', + label: v.name, + color: v.name === 'customerLegalEntity' ? 'purple' : 'green', })) " :dark="$q.dark.isActive"