UI ผลการทดลองปฏิบัติหน้าที่ราชการและแบบสำรวจความคิดเห็น
This commit is contained in:
parent
621104c4a2
commit
9c27d47092
10 changed files with 3695 additions and 417 deletions
|
|
@ -9,12 +9,14 @@ import { useCounterMixin } from "./mixin";
|
|||
import type { ProfileData } from "@/interface/Main";
|
||||
|
||||
export const useDataStore = defineStore("dataMain", () => {
|
||||
const dataProfile = ref<any>()
|
||||
const storeRegistry = useRegistryInFormationStore();
|
||||
const $q = useQuasar();
|
||||
const mixin = useCounterMixin();
|
||||
const { messageError, showLoader, hideLoader, findPosMasterNo } = mixin;
|
||||
// ref() คือการประกาศ state เหมือน vuex
|
||||
const formData = reactive<ProfileData>({
|
||||
profileId: "",
|
||||
rank: "",
|
||||
prefix: "",
|
||||
firstName: "",
|
||||
|
|
@ -94,6 +96,7 @@ export const useDataStore = defineStore("dataMain", () => {
|
|||
const data = await dataPerson;
|
||||
isProbation.value = data.isProbation;
|
||||
|
||||
formData.profileId = data.profileId;
|
||||
formData.rank = data.rank;
|
||||
formData.prefix = data.prefix;
|
||||
formData.firstName = data.firstName;
|
||||
|
|
@ -143,6 +146,7 @@ export const useDataStore = defineStore("dataMain", () => {
|
|||
formData,
|
||||
officerLink,
|
||||
getProFileType,
|
||||
dataProfile
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue