fix รายละเอียดบันทึกเวียนแจ้งการถึงแก่กรรม
This commit is contained in:
parent
53d786df4e
commit
55735cdd57
2 changed files with 4 additions and 1 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue