fix:profileId To citizenId
This commit is contained in:
parent
79d1a14ec4
commit
ae4e874f42
11 changed files with 68 additions and 18 deletions
|
|
@ -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'"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue