[参数项列表] 导出

This commit is contained in:
zhaomeijing
2022-04-29 17:40:21 +08:00
parent 0857485aa2
commit 91cbd3ae29
2 changed files with 30 additions and 6 deletions
+15
View File
@@ -113,6 +113,21 @@ export function downFile(url,parameter){
})
}
/**
* 下载文件 用于excel导出 -- post
* @param url
* @param parameter
* @returns {*}
*/
export function downFilePost(url,parameter){
return axios({
url: url,
data: parameter,
method:'post' ,
responseType: 'blob'
})
}
/**
* 下载文件
* @param url 文件路径