|
|
@@ -68,12 +68,21 @@ export async function downLoadTemplate() {
|
|
|
});
|
|
|
console.log(res.data,'***********');
|
|
|
download(res.data, '员工档案导入模板.xlsx');
|
|
|
- // if (res.data.code === '0') {
|
|
|
- // return res.data.data;
|
|
|
- // }
|
|
|
- // return Promise.reject();
|
|
|
+
|
|
|
+}
|
|
|
+/**
|
|
|
+ * 下载模板
|
|
|
+ */
|
|
|
+export async function downLoadTemplateNew(url,fileName) {
|
|
|
+ const res = await request.post(url,{}, {
|
|
|
+ responseType: 'blob'
|
|
|
+ });
|
|
|
+ console.log(res.data,'***********');
|
|
|
+ download(res.data, fileName);
|
|
|
+
|
|
|
}
|
|
|
|
|
|
+
|
|
|
export async function downLoadScript() {
|
|
|
// 发送请求,下载模板
|
|
|
const res = await request.post('/main/file/downLoadScript',{}, {
|