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

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

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