fix PDF = undefined
This commit is contained in:
parent
4d4a95c2b9
commit
4f0eecfffe
15 changed files with 24 additions and 2 deletions
|
|
@ -79,7 +79,7 @@ async function getReport(list: string) {
|
|||
)?.val;
|
||||
const newReport = listFind === "report2" ? "report2-history" : listFind;
|
||||
pdfSrc.value = undefined;
|
||||
numOfPages.value = 1;
|
||||
page.value = 1;
|
||||
isLoadPDF.value = true;
|
||||
if (newReport) {
|
||||
await http
|
||||
|
|
|
|||
|
|
@ -86,6 +86,7 @@ async function getReport() {
|
|||
) {
|
||||
loadingBtn.value = true;
|
||||
pdfSrc.value = undefined;
|
||||
page.value = 1;
|
||||
await http
|
||||
.get(
|
||||
config.API.developmentReport() +
|
||||
|
|
|
|||
|
|
@ -71,6 +71,8 @@ async function fetchReport() {
|
|||
* @param data ข้อมูลบัญชีวันลา
|
||||
*/
|
||||
async function fetchDocumentTemplate(data: any) {
|
||||
pdfSrc.value = undefined;
|
||||
page.value = 1;
|
||||
await axios
|
||||
.post(`${config.API.reportTemplate}/xlsx`, data, {
|
||||
headers: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue