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

@ -175,6 +175,7 @@ watch(
:id="profile.id" :id="profile.id"
@update:modal="updatemodalPersonal" @update:modal="updatemodalPersonal"
:type="props.type" :type="props.type"
:is-employee="props.type"
/> />
</template> </template>

View file

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