From 16ae213889a93c871fe47adff7151d21d7aa04d1 Mon Sep 17 00:00:00 2001 From: Tang Date: Tue, 2 Jan 2024 10:47:25 -0800 Subject: [PATCH 1/3] fixed contacts not showing --- frontend/src/views/ContactsView.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/ContactsView.vue b/frontend/src/views/ContactsView.vue index b9eaaad..a4876b9 100644 --- a/frontend/src/views/ContactsView.vue +++ b/frontend/src/views/ContactsView.vue @@ -151,14 +151,16 @@ onMounted(() => { > - + > From 80a1a216ece4505702e7767ec06900e4b8298584 Mon Sep 17 00:00:00 2001 From: Tang Date: Wed, 3 Jan 2024 16:18:37 -0800 Subject: [PATCH 2/3] show all district contacts --- frontend/src/views/ContactsView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/ContactsView.vue b/frontend/src/views/ContactsView.vue index a4876b9..6caea00 100644 --- a/frontend/src/views/ContactsView.vue +++ b/frontend/src/views/ContactsView.vue @@ -11,7 +11,7 @@ const dialog = ref(false) const filteredContacts = ref([]) const selectedContactType = ref(null) const results = ref(0) -const itemsPerPage = ref(100) +const itemsPerPage = ref(4000) const itemsSort = ref('') const totalPages = ref(1) const headers = [ From 4f4baa43c966a3cf04432d2480b5aa95fabe46c7 Mon Sep 17 00:00:00 2001 From: Tang Date: Fri, 5 Jan 2024 09:10:41 -0800 Subject: [PATCH 3/3] added the fiters for contact dates --- frontend/src/views/ContactsView.vue | 36 +++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/frontend/src/views/ContactsView.vue b/frontend/src/views/ContactsView.vue index 6caea00..833d340 100644 --- a/frontend/src/views/ContactsView.vue +++ b/frontend/src/views/ContactsView.vue @@ -63,6 +63,27 @@ const searchContact = async () => { } ] if (selectedContactType.value) { + params[0].searchCriteriaList.push({ + key: 'expiryDate', + operation: 'eq', + value: null, + valueType: 'STRING', + condition: 'OR' + }) + params[0].searchCriteriaList.push({ + key: 'expiryDate', + operation: 'gte', + value: currentDate, + valueType: 'DATE_TIME', + condition: 'OR' + }) + params[0].searchCriteriaList.push({ + key: 'effectiveDate', + operation: 'lte', + value: currentDate, + valueType: 'DATE_TIME', + condition: 'AND' + }) params[0].searchCriteriaList.push({ key: 'districtContactTypeCode', operation: 'eq', @@ -70,11 +91,26 @@ const searchContact = async () => { valueType: 'STRING', condition: 'AND' }) + } else { params[0].searchCriteriaList.push({ key: 'expiryDate', operation: 'eq', value: null, valueType: 'STRING', + condition: 'OR' + }) + params[0].searchCriteriaList.push({ + key: 'expiryDate', + operation: 'gte', + value: currentDate, + valueType: 'DATE_TIME', + condition: 'OR' + }) + params[0].searchCriteriaList.push({ + key: 'effectiveDate', + operation: 'lte', + value: currentDate, + valueType: 'DATE_TIME', condition: 'AND' }) }