From 4e59108e27262f86879a2dbf6a6775207a629cff Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 11 Mar 2025 17:51:15 +0700 Subject: [PATCH] fix interface --- .../components/detail/DialogHistory.vue | 7 ++-- .../04_registryPerson/interface/index/Main.ts | 34 +++++++++++-------- 2 files changed, 23 insertions(+), 18 deletions(-) diff --git a/src/modules/04_registryPerson/components/detail/DialogHistory.vue b/src/modules/04_registryPerson/components/detail/DialogHistory.vue index 231b9beab..7207f5a8b 100644 --- a/src/modules/04_registryPerson/components/detail/DialogHistory.vue +++ b/src/modules/04_registryPerson/components/detail/DialogHistory.vue @@ -2,7 +2,8 @@ import { ref, watch } from "vue"; import { useCounterMixin } from "@/stores/mixin"; -import type { QTableColumn, QTableProps } from "quasar"; +import type { QTableColumn } from "quasar"; +import type { DataHistory } from "@/modules/04_registryPerson/interface/index/Main"; import DialogHeader from "@/components/DialogHeader.vue"; @@ -22,8 +23,8 @@ const props = defineProps({ }); const filter = ref(""); -const rows = ref([]); -const dataMain = ref([]); +const rows = ref([]); +const dataMain = ref([]); const visibleColumns = ref([]); const pagination = ref({ sortBy: "lastUpdatedAt", diff --git a/src/modules/04_registryPerson/interface/index/Main.ts b/src/modules/04_registryPerson/interface/index/Main.ts index 8a4b1d88e..43b44645e 100644 --- a/src/modules/04_registryPerson/interface/index/Main.ts +++ b/src/modules/04_registryPerson/interface/index/Main.ts @@ -97,19 +97,19 @@ interface InsigniasType { } interface InsigniasTypeSub { - id:string; - createdAt:Date; - createdUserId:string; - lastUpdatedAt:Date; - lastUpdateUserId:string; - createdFullName:string; - lastUpdateFullName:string; - name:string; - shortName:string; - level:string; - isActive:string; - note:string; - insigniaTypeId:string; + id: string; + createdAt: Date; + createdUserId: string; + lastUpdatedAt: Date; + lastUpdateUserId: string; + createdFullName: string; + lastUpdateFullName: string; + name: string; + shortName: string; + level: string; + isActive: string; + note: string; + insigniaTypeId: string; } interface ResFileData { @@ -118,6 +118,10 @@ interface ResFileData { path: string; pathname: string; } + +interface DataHistory { + [key: string]: string | number | Date | boolean; +} export type { Pagination, DataOption, @@ -132,8 +136,8 @@ export type { DataOptionEducation, DataOptionEducationLevel, Request, - InsigniasType, InsigniasTypeSub, - ResFileData + ResFileData, + DataHistory, };