Merge branch 'develop' into devTee

This commit is contained in:
setthawutttty 2024-12-25 15:27:13 +07:00
commit b4a2bb253d
10 changed files with 31 additions and 45 deletions

View file

@ -516,7 +516,7 @@ onMounted(async () => {
class="q-mr-sm"
@click="router.go(-1)"
/>
รายละเอยดของ {{ personalData.fullName }}
รายละเอยด {{ personalData.fullName }}
</div>
</div>
<div class="q-pb-lg">

View file

@ -282,6 +282,7 @@ onMounted(async () => {
hide-bottom-space
accept=".pdf,.xlsx,.docx,.png,.jpg"
clearable
:disable="!statusEdit"
>
<template v-slot:prepend>
<q-icon name="attach_file" color="primary" />
@ -300,8 +301,6 @@ onMounted(async () => {
>
</template>
</q-file>
<!-- <div class="col-1 self-center" v-if="formData.documentFile"></div> -->
</div>
<div v-if="fileList.length > 0" class="col-xs-12 row">
@ -315,7 +314,7 @@ onMounted(async () => {
>
<q-item-section>{{ data.fileName }}</q-item-section>
<q-space />
<div>
<div v-if="statusEdit">
<q-btn
size="12px"
flat

View file

@ -32,7 +32,6 @@ const { showLoader, hideLoader, messageError } = mixin;
const assignId = ref<string>(route.params.form.toString());
const personalId = ref<string>(route.params.personalId.toString());
const tab = ref<string>("save1");
const dataArrayNumber = ref<number>();
const dataRole = ref<string>("mentor");
@ -52,7 +51,7 @@ async function fecthAssign(id: string) {
// messageError($q, e);
})
.finally(() => {
probationStore.checkLoad && hideLoader();
hideLoader();
});
}
@ -82,13 +81,13 @@ async function FileDownload(type: string) {
`แบบบันทึกผล(ผู้ดูเเล)_${probationStore.person.name}_ครั้งที่${numTab.no}`,
type
);
hideLoader();
})
.catch(async (e) => {
messageError($q, JSON.parse(await e.response.data.text()));
hideLoader();
})
.finally(() => {});
.finally(() => {
hideLoader();
});
} else {
//
showLoader();
@ -101,13 +100,13 @@ async function FileDownload(type: string) {
`แบบบันทึกผล(ผู้บังคับบัญชา)_${probationStore.person.name}_ครั้งที่${numTab.no}`,
type
);
hideLoader();
})
.catch(async (e) => {
messageError($q, JSON.parse(await e.response.data.text()));
hideLoader();
})
.finally(() => {});
.finally(() => {
hideLoader();
});
}
}

View file

@ -65,21 +65,10 @@ async function fecthAssign(id: string) {
// messageError($q, e);
})
.finally(() => {
probationStore.checkLoad && hideLoader();
hideLoader();
});
}
/** เปลี่ยน type file */
function downloadFile(response: any, filename: string) {
const link = document.createElement("a");
var fileName = filename;
link.href = window.URL.createObjectURL(new Blob([response.data]));
link.setAttribute("download", fileName);
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
}
/**
* download file
* @param type type
@ -96,13 +85,13 @@ async function FileDownload(type: string) {
`แบบประเมินผล(ผู้บังคับบัญชา)_${probationStore.person.name}_ครั้งที่${numTab.no}`,
type
);
hideLoader();
})
.catch(async (e) => {
messageError($q, JSON.parse(await e.response.data.text()));
hideLoader();
})
.finally(() => {});
.finally(() => {
hideLoader();
});
}
/** เปลี่ยนหน้า เพิ่ม */

View file

@ -59,7 +59,7 @@ const fecthAssign = async (id: string) => {
// messageError($q, e);
})
.finally(() => {
probationStore.checkLoad && hideLoader();
hideLoader();
});
};
@ -75,13 +75,13 @@ const FileDownload = async (type: string) => {
`แบบประเมินผล(คณะกรรมการ)_${probationStore.person.name}_ครั้งที่${numTab.no}`,
type
);
hideLoader();
})
.catch(async (e) => {
messageError($q, JSON.parse(await e.response.data.text()));
hideLoader();
})
.finally(() => {});
.finally(() => {
hideLoader();
});
};
const addData = () => {
router.push(