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 @@ + - -