mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-14 13:26:44 +08:00
导出pdf和excel乱码解决
This commit is contained in:
@@ -105,7 +105,7 @@ const ids=function (data){
|
|||||||
* */
|
* */
|
||||||
const exportExcel=function (data){
|
const exportExcel=function (data){
|
||||||
// return ajax.postJsonToFile(baseURL,'/xboe/subgroup/m/noteinfo/exportExcel',data);
|
// return ajax.postJsonToFile(baseURL,'/xboe/subgroup/m/noteinfo/exportExcel',data);
|
||||||
return ajax.post(baseURL,'/xboe/subgroup/m/noteinfo/exportExcel',data);
|
return ajax.post(baseURL,'/xboe/subgroup/m/noteinfo/exportExcel',data,{responseType: 'blob'});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -115,7 +115,7 @@ const exportExcel=function (data){
|
|||||||
* }
|
* }
|
||||||
* */
|
* */
|
||||||
const exportExcelPre=function (data){
|
const exportExcelPre=function (data){
|
||||||
return ajax.post(baseURL,'/xboe/subgroup/m/noteinfo/excel-detail',data);
|
return ajax.post(baseURL,'/xboe/subgroup/m/noteinfo/excel-detail',data,{responseType: 'blob'});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user