fixing path command report
This commit is contained in:
parent
6362391281
commit
1440847a20
2 changed files with 14 additions and 10 deletions
|
|
@ -80,13 +80,17 @@ async function fetchDocumentTemplate(dataTemple: DataTemplateDetail) {
|
|||
};
|
||||
|
||||
await axios
|
||||
.post(config.API.reportTemplate + `/${typeFile.value}`, body, {
|
||||
headers: {
|
||||
accept: "application/pdf",
|
||||
"content-Type": "application/json",
|
||||
},
|
||||
responseType: "blob",
|
||||
})
|
||||
.post(
|
||||
config.API.reportTemplate + `/${typeFile.value}?folder=command`,
|
||||
body,
|
||||
{
|
||||
headers: {
|
||||
accept: "application/pdf",
|
||||
"content-Type": "application/json",
|
||||
},
|
||||
responseType: "blob",
|
||||
}
|
||||
)
|
||||
.then(async (res) => {
|
||||
isLoadPDF.value = false;
|
||||
const blob = new Blob([res.data]);
|
||||
|
|
@ -121,7 +125,7 @@ async function uploadTemplate() {
|
|||
await axios
|
||||
.post(
|
||||
config.API.reportTemplate +
|
||||
`/${typeFile.value}/upload?report_name=${reportName}`,
|
||||
`/${typeFile.value}/upload?report_name=${reportName}&folder=command`,
|
||||
documentFile.value,
|
||||
{
|
||||
headers: {
|
||||
|
|
@ -161,7 +165,7 @@ async function downloadTemplate() {
|
|||
: dataTemplateDetail.value.fileAttachment);
|
||||
await axios
|
||||
.post(
|
||||
config.API.reportTemplate + `/${typeFile.value}/download`,
|
||||
config.API.reportTemplate + `/${typeFile.value}/download?folder=command`,
|
||||
{
|
||||
template: check,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue