fix:profileId To citizenId

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-02-03 16:23:08 +07:00
parent 79d1a14ec4
commit ae4e874f42
11 changed files with 68 additions and 18 deletions

View file

@ -36,6 +36,7 @@ const props = defineProps({
const avatar = ref<string>("");
const fullName = ref<string>("");
const position = ref<string>("");
const citizenId = ref<string>("");
const isLoading = ref<boolean>(true);
/** function เรียกข้อมูลส่วนตัว*/
@ -48,6 +49,7 @@ function fetchInformation() {
fullName.value = `${data.prefix}${data.firstName} ${data.lastName}`;
position.value = data.position;
citizenId.value = data.citizenId;
if (data.avatarName) {
await fetchProfile(data.id as string, data.avatarName);
@ -220,6 +222,7 @@ watch(
v-if="type === 'posSalary'"
v-model:profileId="profileId"
:employeeClass="employeeClass"
:citizenId="citizenId"
/>
<InfoDiscipline
v-if="type === 'discipline'"

View file

@ -26,6 +26,7 @@ const {
/** props*/
const profileId = defineModel<string>("profileId", { required: true });
const employeeClass = defineModel<string>("employeeClass", { required: true });
const citizenId = defineModel<string>("citizenId", { required: true });
const modalCommand = ref<boolean>(false);
const command = ref<string>("");
@ -470,6 +471,7 @@ onMounted(() => {
v-model:modal="modalCommand"
v-model:command="command"
v-model:commandId="commandId"
:citizen-id="citizenId"
/>
</template>