fix รายละเอียดบันทึกเวียนแจ้งการถึงแก่กรรม

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-01-20 16:38:08 +07:00
parent 53d786df4e
commit 55735cdd57
2 changed files with 4 additions and 1 deletions

View file

@ -26,6 +26,7 @@ const profileId = ref<string>(route.params.id.toString());
const detail = ref<ResDetailDeceased>();
const dataProfile = ref<DataProfile>();
const profileType = ref<string>("");
/** นำข้อมูลจาก API มาแสดง */
async function fetchData() {
@ -37,6 +38,7 @@ async function fetchData() {
dataProfile.value = data as DataProfile;
detail.value = data;
fullName.value = `${data.prefix}${data.firstName} ${data.lastName}`;
profileType.value = data.profileType;
})
.catch((e) => {
messageError($q, e);
@ -102,7 +104,7 @@ onMounted(() => {
รายละเอยดบนทกเวยนแจงการถงแกกรรม {{ fullName }}
</div>
<CardProfile :data="dataProfile as DataProfile" />
<CardProfile :data="dataProfile as DataProfile" :type="profileType" />
<q-card bordered class="q-mt-sm">
<div class="bg-grey-1 q-pa-sm col-12 row items-center">