提交 5613c1a9 编写于 作者: chengxiang.li's avatar chengxiang.li

后端要求申请详情页面导入新增传参

上级 7a19a567
...@@ -169,10 +169,10 @@ export const getCreditStatusReq = (params) => { ...@@ -169,10 +169,10 @@ export const getCreditStatusReq = (params) => {
}) })
}; };
export const handleImportReq = (data) => { export const handleImportReq = (data, cmeId) => {
return fetch({ return fetch({
headers, headers,
url: getBaseUrl(`cme/admin/credit/importExcel`), url: getBaseUrl(`cme/admin/credit/importExcel?cmeId=${cmeId}`),
method: 'post', method: 'post',
data: data, data: data,
description: '导入', description: '导入',
......
...@@ -307,10 +307,11 @@ ...@@ -307,10 +307,11 @@
let req = { let req = {
file: file, file: file,
}; };
let fd = new FormData() let cmeId = this.$route.query.id;
fd.append('file', file) let fd = new FormData();
fd.append('file', file);
// openLoading(this); // openLoading(this);
handleImportReq(fd).then(res => { handleImportReq(fd, cmeId).then(res => {
// closeLoading(this); // closeLoading(this);
// console.log('上传》》》@@@@@@@', res) // console.log('上传》》》@@@@@@@', res)
if (res.code == "000000") { if (res.code == "000000") {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册