diff --git a/src/modules/04_registryPerson/components/detail/PersonalInformation/01_Profile.vue b/src/modules/04_registryPerson/components/detail/PersonalInformation/01_Profile.vue index 73c137d78..467d5cb11 100644 --- a/src/modules/04_registryPerson/components/detail/PersonalInformation/01_Profile.vue +++ b/src/modules/04_registryPerson/components/detail/PersonalInformation/01_Profile.vue @@ -56,6 +56,7 @@ const empType = ref( : "-employee" ); +const emailVerify = ref(null); const id = ref(""); const modal = ref(false); // แสดงฟอร์มแก้ไขประวัติส่วนตัว const informaData = ref(); // ข้อมูลส่วนคัว @@ -78,6 +79,7 @@ const dataLabel = { religion: "ศาสนา", bloodGroup: "หมู่เลือด", phone: "เบอร์โทร", + email: "อีเมล", prefix: "คำนำหน้าชื่อ", rank: "ยศ", firstName: "ชื่อ", @@ -290,6 +292,9 @@ async function getData() { .get(config.API.registryNewByProfileId(profileId.value, empType.value)) .then((res) => { informaData.value = res.data.result; + emailVerify.value = res.data.result.email + ? res.data.result.emailVerify + : null; id.value = res.data.result.id; if (res.data.result.birthDate) { @@ -511,10 +516,17 @@ onMounted(() => {
{{ dataLabel[label as keyof typeof dataLabel] }} + รอยืนยันอีเมล
@@ -534,6 +546,9 @@ onMounted(() => {
{{ informaData.phone ? informaData.phone : "-" }}
+
+ {{ informaData.email ? informaData.email : "-" }} +