ข้อมูลทะเบียนประวัติ
This commit is contained in:
parent
b05065ba67
commit
bd6f4fde7f
34 changed files with 9004 additions and 706 deletions
33
src/modules/10_registry/store/registry.ts
Normal file
33
src/modules/10_registry/store/registry.ts
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
import { defineStore } from "pinia";
|
||||
import type { DataOptionInsignia, ResponseObject } from '@/modules/10_registry/interface/index/Achievement'
|
||||
import { ref } from "vue";
|
||||
|
||||
|
||||
export const useRegistryInFormationStore = defineStore(
|
||||
"registryInFormationStore",
|
||||
() => {
|
||||
const typeProfile = ref<string>("OFFICER");
|
||||
const profileId = ref<string>('')
|
||||
|
||||
|
||||
function typeChangeName(val: string) {
|
||||
switch (val) {
|
||||
case "prefix":
|
||||
return "เปลี่ยนคำนำหน้าชื่อ";
|
||||
case "firstName":
|
||||
return "เปลี่ยนชื่อ";
|
||||
case "lastName":
|
||||
return "เปลี่ยนนามสกุล";
|
||||
case "all":
|
||||
return "เปลี่ยนคำนำหน้าชื่อ, ชื่อ-นามสกุล";
|
||||
case "firstNameLastName":
|
||||
return "เปลี่ยนชื่อ-นามสกุล";
|
||||
case "prefixAndlastName":
|
||||
return "เปลี่ยนคำนำหน้าชื่อ และนามสกุล";
|
||||
default:
|
||||
return "-";
|
||||
}
|
||||
}
|
||||
return { typeChangeName, typeProfile,profileId};
|
||||
}
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue