From 8a472dc923e2c0f74f760100f65f1604b8978a0e Mon Sep 17 00:00:00 2001 From: oat Date: Thu, 8 Feb 2024 16:31:21 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1=E0=B8=B9?= =?UTF-8?q?=E0=B8=B9=E0=B8=A5=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A=E0=B8=B5?= =?UTF-8?q?=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7=E0=B8=B1?= =?UTF-8?q?=E0=B8=95=E0=B8=B4:=20UI+API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/registry/api.profile.ts | 8 +- .../components/registry/registry.vue | 591 ++++++++++++++++++ src/modules/04_registryNew/stores/registry.ts | 20 + src/modules/04_registryNew/views/main.vue | 11 +- 4 files changed, 625 insertions(+), 5 deletions(-) create mode 100644 src/modules/04_registryNew/components/registry/registry.vue create mode 100644 src/modules/04_registryNew/stores/registry.ts diff --git a/src/api/registry/api.profile.ts b/src/api/registry/api.profile.ts index cc49aecba..ad1fdd93f 100644 --- a/src/api/registry/api.profile.ts +++ b/src/api/registry/api.profile.ts @@ -6,7 +6,7 @@ const profile = `${env.API_URI_PROFILE_SERVICE}/profile/`; const report = `${env.API_REPORT_URI}/report/profile/`; const organizationRoot = `${env.API_URI}/profile/organization/list/root`; - +const registryNew = `${env.API_URI}/org/profile/`; export default { /** * api สังกัด ทะเบียนประวัติเงินเดือน @@ -199,5 +199,9 @@ export default { // verify profileVerified: (profileId: string) => `${profile}verified/${profileId}`, - profileVerifiedUnlock: (profileId: string) => `${profile}not-verified/${profileId}`, + profileVerifiedUnlock: (profileId: string) => + `${profile}not-verified/${profileId}`, + + registryNew, + registryNewId: (id: string) => `${registryNew}${id}`, }; diff --git a/src/modules/04_registryNew/components/registry/registry.vue b/src/modules/04_registryNew/components/registry/registry.vue new file mode 100644 index 000000000..50b315c9c --- /dev/null +++ b/src/modules/04_registryNew/components/registry/registry.vue @@ -0,0 +1,591 @@ + + + + + diff --git a/src/modules/04_registryNew/stores/registry.ts b/src/modules/04_registryNew/stores/registry.ts new file mode 100644 index 000000000..c76b6d1ee --- /dev/null +++ b/src/modules/04_registryNew/stores/registry.ts @@ -0,0 +1,20 @@ +import { defineStore } from "pinia"; +import { ref } from "vue"; +import { useCounterMixin } from "@/stores/mixin"; + +// const { date2Thai } = useCounterMixin(); + +export const useRegistryDataStore = defineStore("RegistryData", () => { + const row = ref<[]>([]); + + function save(data: any) { + const list = data.map((e: any) => ({ + ...e, + })) satisfies []; + row.value = list; + } + return { + save, + row, + }; +}); diff --git a/src/modules/04_registryNew/views/main.vue b/src/modules/04_registryNew/views/main.vue index db4dfb1ec..22bd55098 100644 --- a/src/modules/04_registryNew/views/main.vue +++ b/src/modules/04_registryNew/views/main.vue @@ -1,7 +1,12 @@ + - -