เปลี่ยน api ดาวโหลดไฟล์

This commit is contained in:
setthawutttty 2023-09-12 11:11:58 +07:00
parent f09e87700c
commit 6bbf5b5716
4 changed files with 9 additions and 9 deletions

View file

@ -48,7 +48,7 @@ onMounted(() => {
fecthAssign(assignId.value);
fecthResult(assignId.value);
});
const ID = ref<string>('')
const date_start = ref<Date>(new Date());
const date_finish = ref<Date>();
const develop = ref<number>();
@ -92,7 +92,7 @@ const fecthResult = async (id: string) => {
.then(async (res: any) => {
if (res.data.data != null) {
const data = await res.data.data.evaluate;
ID.value = data.id
// fullname.value = res.data.data.profile.name;
date_start.value = data.date_start;
date_finish.value = data.date_finish;

View file

@ -76,7 +76,7 @@ const FileDownload = async (type: string) => {
let numTab = evaluate.value.find((e: any) => e.no === dataArrayNumber.value);
showLoader();
await http
.get(config.API.reportEvaluate(type, numTab.assign_id,numTab.no), {
.get(config.API.reportEvaluate(type, numTab.id), {
responseType: "blob",
})
.then(async (res) => {

View file

@ -72,7 +72,7 @@ const FileDownload = async (type: string) => {
let numTab = evaluate.value.find((e: any) => e.no === dataArrayNumber.value);
showLoader();
await http
.get(config.API.reportEvaluateChairman(type, numTab.id,numTab.no), {
.get(config.API.reportEvaluateChairman(type, numTab.id), {
responseType: "blob",
})
.then(async (res) => {