feat : 新增需求征集删除功能和文件下载功能

This commit is contained in:
2024-05-17 20:53:49 +08:00
parent 573fff84e4
commit 9754b62038
4 changed files with 52 additions and 4 deletions

View File

@@ -60,9 +60,25 @@ export const deleteFile = (fileId) => {
method: "delete"
});
};
export const downloadFile = (fileId) => {
return request({
url: '/workflow/process/file/download',
method: "get",
responseType:'blob',
params:{
fileId:fileId
}
});
};
export const getCompanyOption = () => {
return request({
url: '/admin/mosr/sub/company/companyOption',
method: "get"
});
};
export const deleteDemand = (id) => {
return request({
url: `/workflow/mosr/requirement/${id}`,
method: "delete"
});
};