แก้ ไอคอน / awitt
This commit is contained in:
parent
5f334a6340
commit
cd924009c1
2 changed files with 6 additions and 8 deletions
|
|
@ -44,8 +44,6 @@ const fetchData = async () => {
|
|||
const data = res.data.result;
|
||||
dataProfile.value = data as DataProfile;
|
||||
detail.value = data;
|
||||
console.log(detail.value?.firstName);
|
||||
|
||||
fullName.value = `${data.prefix}${data.firstName} ${data.lastName}`;
|
||||
})
|
||||
.catch((e) => {
|
||||
|
|
@ -74,20 +72,20 @@ const fileDownload = async (type: string) => {
|
|||
showLoader();
|
||||
await http
|
||||
.get(config.API.DeceasedReport(type, profileId.value))
|
||||
.then((res) => {
|
||||
.then(async (res) => {
|
||||
const data = res.data.result;
|
||||
genReport(
|
||||
await genReport(
|
||||
data,
|
||||
`รายละเอียดบันทึกเวียนแจ้งการถึงแก่กรรม-${fullName.value}`,
|
||||
type
|
||||
);
|
||||
hideLoader();
|
||||
})
|
||||
.catch(async (e) => {
|
||||
messageError($q, JSON.parse(await e.response.data.text()));
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
});
|
||||
})
|
||||
.finally(() => {});
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -1552,7 +1552,7 @@ onMounted(async () => {
|
|||
flat
|
||||
round
|
||||
color="blue"
|
||||
icon="mdi-download-outline"
|
||||
icon="mdi-download"
|
||||
@click="
|
||||
downloadRenameFileByLink(
|
||||
file.pathName,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue