From c132b077c036d9ce84c4a1c468c20f2c170fb5b9 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Wed, 28 Jan 2026 23:41:17 +0700 Subject: [PATCH] fix: rootId to orgRootDnaId --- src/modules/03_logs/components/LogTable.vue | 24 ++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/modules/03_logs/components/LogTable.vue b/src/modules/03_logs/components/LogTable.vue index dcda6e7f..bd778908 100644 --- a/src/modules/03_logs/components/LogTable.vue +++ b/src/modules/03_logs/components/LogTable.vue @@ -235,7 +235,7 @@ async function selectedOrg(id: string) { endDate: new Date(endDate.value) ?? undefined, searchStatus: searchStatus.value ?? undefined, }, - true + true, ); } @@ -272,7 +272,7 @@ async function fatchOrg(id: string) { nodeTree.value = data; searchAfter.value = undefined; if (data.length === 1) { - selectedOrg(data[0].orgTreeId); + selectedOrg(data[0].orgRootDnaId); } else { await storeData.fetchLog({ size: size.value, @@ -298,7 +298,7 @@ function handleScroll() { if ( Math.abs( - element.scrollHeight - element.clientHeight - element.scrollTop + element.scrollHeight - element.clientHeight - element.scrollTop, ) <= 1 ) { scrollFlag = true; @@ -314,7 +314,7 @@ function handleScroll() { endDate: new Date(endDate.value) ?? undefined, searchStatus: searchStatus.value ?? undefined, }, - true + true, ); await new Promise((resolve) => setTimeout(resolve, 1000)); scrollFlag = false; @@ -350,7 +350,7 @@ function selectedDate() { startDate: new Date(startDate.value), endDate: new Date(endDate.value), }, - true + true, ); } @@ -395,7 +395,7 @@ function onItemClick(labal: string, type: string) { endOfDay ? 23 : 0, endOfDay ? 59 : 0, endOfDay ? 59 : 0, - endOfDay ? 999 : 0 + endOfDay ? 999 : 0, ); return date.toISOString(); }; @@ -474,7 +474,7 @@ async function downloadTxt() { if (currentlogData.value?.id) { await generateTxt( currentlogData.value?.id, - `LOG_${date2Thai(new Date(startDate.value))}` + `LOG_${date2Thai(new Date(startDate.value))}`, ); } } @@ -520,9 +520,9 @@ onMounted(async () => {
@@ -560,7 +560,7 @@ onMounted(async () => { { style="max-width: 100%" >
-