From a43789fd8b9c1a0b46eb8862cdd07ed4b847c5c5 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Mon, 11 Nov 2024 14:46:07 +0700 Subject: [PATCH] UI --- .../03_logs/components/DialogDataDiff.vue | 12 ++++++++ src/modules/03_logs/components/LogTable.vue | 30 +++++++++++++++++-- src/modules/03_logs/stores/main.ts | 10 +++++-- 3 files changed, 48 insertions(+), 4 deletions(-) diff --git a/src/modules/03_logs/components/DialogDataDiff.vue b/src/modules/03_logs/components/DialogDataDiff.vue index 23c7dead..319bc963 100644 --- a/src/modules/03_logs/components/DialogDataDiff.vue +++ b/src/modules/03_logs/components/DialogDataDiff.vue @@ -9,6 +9,7 @@ const openDialog = defineModel("openDialog", { defineProps<{ title: string; close?: (...args: unknown[]) => void; + onSend: Function; }>(); @@ -25,6 +26,17 @@ defineProps<{ + + + ส่งออกเป็นไฟล์ TXT + diff --git a/src/modules/03_logs/components/LogTable.vue b/src/modules/03_logs/components/LogTable.vue index 6a2da252..2ce8dbc4 100644 --- a/src/modules/03_logs/components/LogTable.vue +++ b/src/modules/03_logs/components/LogTable.vue @@ -129,6 +129,16 @@ const columns = ref([ sort: (a: string, b: string) => a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, + { + name: "id", + align: "left", + label: "ID", + field: "id", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + sort: (a: string, b: string) => + a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), + }, { name: "dataDiff", align: "left", @@ -425,6 +435,13 @@ function updateDate() { } } +function onSendCSV() { + console.log(1); +} +function onSend() { + console.log(1); +} + onBeforeMount(async () => { await fetchOrganizationActive(); // ดึงข้อมูลโครงสร้างปัจจุบัน }); @@ -501,9 +518,9 @@ onMounted(async () => {
-
+
- +