From f559987e0c3526e9726f37e8ecc8bba1dde2a65d Mon Sep 17 00:00:00 2001 From: puriphatt Date: Wed, 29 Jan 2025 17:07:43 +0700 Subject: [PATCH] refactor: 04 => screen.xs fetch scroll --- src/pages/04_flow-managment/MainPage.vue | 368 ++++---- src/pages/04_product-service/MainPage.vue | 1036 +++++++++++---------- 2 files changed, 733 insertions(+), 671 deletions(-) diff --git a/src/pages/04_flow-managment/MainPage.vue b/src/pages/04_flow-managment/MainPage.vue index 5e0a8042..d5003bcd 100644 --- a/src/pages/04_flow-managment/MainPage.vue +++ b/src/pages/04_flow-managment/MainPage.vue @@ -276,7 +276,10 @@ async function fetchWorkflowList() { : 'INACTIVE', }); if (res) { - workflowData.value = res.result; + $q.screen.xs + ? workflowData.value.push(...res.result) + : (workflowData.value = res.result); + workflowPageMax.value = Math.ceil(res.total / workflowPageSize.value); if (pageState.inputSearch || statusFilter.value !== 'all') return; pageState.total = res.total; @@ -351,7 +354,7 @@ watch([() => pageState.inputSearch, workflowPageSize], fetchWorkflowList);
-
+
pageState.inputSearch, workflowPageSize], fetchWorkflowList);
- - - - - - @@ -2438,7 +2485,8 @@ watch(
-
+
@@ -2451,31 +2499,7 @@ watch( {{ $t('general.recordPerPage') }}
- - - - - {{ v }} - - - - +
@@ -2506,7 +2530,7 @@ watch( " /> - + @@ -2673,479 +2697,513 @@ watch(
- - - + + - - + + - +
- -
+
@@ -3220,7 +3248,7 @@ watch( " /> - +