diff --git a/src/modules/06_retirement/components/resign/ResignByid.vue b/src/modules/06_retirement/components/resign/ResignByid.vue index 5542de9b3..2ffe37424 100644 --- a/src/modules/06_retirement/components/resign/ResignByid.vue +++ b/src/modules/06_retirement/components/resign/ResignByid.vue @@ -17,6 +17,7 @@ import type { import type { QTableProps } from "quasar"; import PopupPersonal from "@/components/Dialogs/PopupPersonal.vue"; +const avatar = ref('') const modalPersonal = ref(false); const personId = ref(""); /** Use */ @@ -179,6 +180,7 @@ const fetchData = async (id: string) => { location.value = data.location ?? ""; status.value = data.status ?? ""; remarkHorizontal.value = data.remarkHorizontal ?? "-"; + getAvatar(data.profileId) }) .catch((e) => { messageError($q, e); @@ -187,6 +189,23 @@ const fetchData = async (id: string) => { hideLoader(); }); }; + +function getAvatar(id:string){ + if(id){ + http + .get(config.API.profileAvaId(id)) + .then((res)=>{ + console.log(res) + const dataList = res.data.result + avatar.value = dataList.avatar + }).catch((e)=>{ + + }).finally(()=>{ + + }) + } +} + // const downloadFile = (response: any, filename: string) => { // const link = document.createElement("a"); // var fileName = filename; @@ -435,7 +454,8 @@ function updatemodalPersonal(modal: boolean) {
- + +