ข้อมููลทะเบียนประวัติ: UI+API
This commit is contained in:
parent
12b8c347ce
commit
8a472dc923
4 changed files with 625 additions and 5 deletions
20
src/modules/04_registryNew/stores/registry.ts
Normal file
20
src/modules/04_registryNew/stores/registry.ts
Normal file
|
|
@ -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,
|
||||
};
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue