fix report
This commit is contained in:
parent
b194cb2a25
commit
b925026c2f
4 changed files with 61 additions and 57 deletions
|
|
@ -45,6 +45,8 @@ const detailReport = ref<any>();
|
|||
* @param endDate วันสิ้นสุด
|
||||
*/
|
||||
async function getReportRecruit() {
|
||||
pdfSrc.value = undefined;
|
||||
page.value = 1;
|
||||
showLoader();
|
||||
await http
|
||||
.get(
|
||||
|
|
@ -70,8 +72,6 @@ async function getReportRecruit() {
|
|||
* @param data ข้อมูลบัญชีวันลา
|
||||
*/
|
||||
async function genReport(data: any) {
|
||||
pdfSrc.value = undefined;
|
||||
page.value = 1;
|
||||
await axios
|
||||
.post(`${config.API.reportTemplate}/xlsx`, data, {
|
||||
headers: {
|
||||
|
|
@ -202,14 +202,15 @@ function filterFnOptions(val: any, update: Function) {
|
|||
</div>
|
||||
<q-space />
|
||||
<div class="q-py-xs">
|
||||
|
||||
<q-btn
|
||||
flat
|
||||
round
|
||||
color="primary"
|
||||
icon="download"
|
||||
:disable="
|
||||
!checkPermission($route)?.attrIsGet &&
|
||||
isReport &&
|
||||
!checkPermission($route)?.attrIsGet ||
|
||||
isReport ||
|
||||
reportSelect.id == ''
|
||||
"
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue