เปลี่ยน api ดาวโหลดไฟล์
This commit is contained in:
parent
f09e87700c
commit
6bbf5b5716
4 changed files with 9 additions and 9 deletions
|
|
@ -28,11 +28,11 @@ export default {
|
|||
//ระบบทดลองงาน
|
||||
reportAssign:(type:string, id:string) => `${reportProbation}/13/${type}/${id}`,
|
||||
reportEvaluateRecord1:(type:string, id:string) => `${reportProbation}/14/${type}/${id}`,
|
||||
reportEvaluateRecord2:(type:string, id:string) => `${reportProbation}/15/${type}/${id}`,
|
||||
reportEvaluate:(type:string, id:string,no:number) => `${reportProbation}/16/${type}/${id}/${no}`,
|
||||
reportEvaluateChairman:(type:string, id:string,no:number) => `${reportProbation}/17/${type}/${id}/${no}`,
|
||||
reportEvaluateResult:(type:string, id:string) => `${reportProbation}/18/${type}/${id}`,
|
||||
reportSurvey:(type:string, id:string) => `${reportProbation}/19/${type}/${id}`,
|
||||
// reportEvaluateRecord2:(type:string, id:string) => `${reportProbation}/15/${type}/${id}`,
|
||||
reportEvaluate:(type:string, id:string) => `${reportProbation}/16/${type}/${id}`,
|
||||
reportEvaluateChairman:(type:string, id:string) => `${reportProbation}/17/${type}/${id}`,
|
||||
reportEvaluateResult:(type:string, id:string) => `${reportProbation}/19/${type}/${id}`,
|
||||
// reportSurvey:(type:string, id:string) => `${reportProbation}/19/${type}/${id}`,
|
||||
|
||||
//filetransfer
|
||||
reportTransferFile:(no:number,type:string,id:string) => `${reportTransfer}/${no}/${type}/${id}`,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue