feat : 项目立项, 阶段变更zip下载

This commit is contained in:
2024-11-03 19:31:59 +08:00
parent 08da2601d8
commit 39c9408f34
4 changed files with 53 additions and 14 deletions

View File

@@ -1,4 +1,7 @@
import request from '@/utils/request.js'
import axios from "axios";
import {getToken} from "@/utils/auth";
//需求征集
export const getDemandInfo = (param) => {
return request({
@@ -104,3 +107,22 @@ export const downloadTemplate = (type) => {
}
});
};
export const downloadTemplateZip = (typeList) => {
return axios.get(
`${import.meta.env.VITE_BASE_URL}/workflow/mosr/attachment/download/pack?typeList=${typeList}`,
{
responseType: 'blob',
headers: {
Authorization: getToken()
},
}
);
// return request({
// url: '/workflow/mosr/attachment/download/pack',
// method: "get",
// responseType:'blob',
// params:{
// typeList:typeList
// }
// });
};