diff --git a/src/modules/03_logs/components/LogTable.vue b/src/modules/03_logs/components/LogTable.vue index cc11e523..950eece5 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%" >
-