From 77120a0f7b8026d86ff6ea9a2b90b9bd8f1d023d Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Wed, 16 Oct 2024 10:41:37 +0700 Subject: [PATCH] ui email --- .../detail/PersonalInformation/01_Profile.vue | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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 : "-" }} +