diff --git a/src/modules/08_KPI/views/form.vue b/src/modules/08_KPI/views/form.vue index 4c44598..5ee322d 100644 --- a/src/modules/08_KPI/views/form.vue +++ b/src/modules/08_KPI/views/form.vue @@ -64,6 +64,8 @@ const evaluatorId = ref(null); // ตัวแปรเก็บ id ผู const commanderId = ref(null); // ตัวแปรเก็บ id ผู้บังคับบัญชา const commanderHighId = ref(null); // ตัวแปรเก็บ id ผู้บังคับบัญชาเหนือไปอีกขั้น +const imgProfile = ref(""); // ตัวแปรเก็บรูปโปรไฟล์ + const formProfile = reactive({ fullName: "", position: "", @@ -112,6 +114,7 @@ async function fetchProfile(id: string, avatarName: string) { .get(config.API.fileByFile("ทะเบียนประวัติ", "โปรไฟล์", id, avatarName)) .then(async (res) => { store.dataEvaluation.avartar = res.data.downloadUrl; + imgProfile.value = res.data.downloadUrl; }); } @@ -684,10 +687,7 @@ onMounted(async () => {
- +
@@ -697,10 +697,7 @@ onMounted(async () => { style="left: 2%; top: 50%; transform: translateY(-50%)" > - +