6.20 前端put和delete请求类型修改为post

This commit is contained in:
jl-zhoujl2
2022-06-20 14:35:50 +08:00
parent 7dc348be97
commit 9b3fabfbc9
54 changed files with 670 additions and 649 deletions

View File

@ -13,8 +13,8 @@ export async function GetNoticeList(params?: any) {
}
/*当前公告可用包请求*/
export async function GetNoticeUsablePackage(params?: any,annoId?:any) {
return request('/api/biz-service-ebtp-bid/v1/anno/tobs/' + params+"?roomType=1&annoId="+annoId)
export async function GetNoticeUsablePackage(params?: any, annoId?: any) {
return request('/api/biz-service-ebtp-bid/v1/anno/tobs/' + params + "?roomType=1&annoId=" + annoId)
}
/*公告信息查询*/
@ -24,11 +24,11 @@ export async function GetNoticeMsg(params?: any) {
/*创建公告*/
export async function creatNotice(type: any, params?: any) {
let method = "post";
let url = "/api/biz-service-ebtp-bid/v1/anno";
if (type == "edit" || type == "change")
method = "put";
return request('/api/biz-service-ebtp-bid/v1/anno', {
method: method,
url = "/api/biz-service-ebtp-bid/v1/anno/updateById";
return request(url, {
method: "POST",
data: {
...params
},
@ -37,8 +37,8 @@ export async function creatNotice(type: any, params?: any) {
/*删除公告*/
export async function removeNotice(params?: any) {
let method = "delete";
return request('/api/biz-service-ebtp-bid/v1/anno/' + params, {method: method})
let method = "POST";
return request('/api/biz-service-ebtp-bid/v1/anno/delete/' + params, { method: method })
}
/*发布公告 type=0 正常发布*/
@ -91,8 +91,8 @@ export async function GetfileList(params?: any) {
})
}
export async function GetfileUsablePackage(params?: any,annoId?:any) {
return request('/api/biz-service-ebtp-bid/v1/document/tobs/getSectionList/' + params+"?roomType=1&documentId="+annoId)
export async function GetfileUsablePackage(params?: any, annoId?: any) {
return request('/api/biz-service-ebtp-bid/v1/document/tobs/getSectionList/' + params + "?roomType=1&documentId=" + annoId)
}
export async function GetfileMsg(params?: any) {
@ -100,11 +100,11 @@ export async function GetfileMsg(params?: any) {
}
export async function creatfile(type: any, params?: any) {
let method = "post";
let url = "/api/biz-service-ebtp-bid/v1/document";
if (type == "edit" || type == "change")
method = "put";
return request('/api/biz-service-ebtp-bid/v1/document', {
method: method,
url = "/api/biz-service-ebtp-bid/v1/document/update";
return request(url, {
method: "POST",
data: {
...params
},
@ -112,14 +112,14 @@ export async function creatfile(type: any, params?: any) {
}
export async function removefile(params?: any) {
let method = "delete";
return request('/api/biz-service-ebtp-bid/v1/document/' + params, {method: method})
let method = "POST";
return request('/api/biz-service-ebtp-bid/v1/document/delete/' + params, { method: method })
}
/*开标大厅选择*/
export async function getChooseRoom(params?: any) {
let method = "get";
return request('/api/biz-service-ebtp-opening/v1/bizbidopenhall/list?openDate=' + params, {method: method})
return request('/api/biz-service-ebtp-opening/v1/bizbidopenhall/list?openDate=' + params, { method: method })
}
@ -145,15 +145,15 @@ export async function chooseSupplier(params: any) {
/*邀请函 删除供应商 后端付庆吉*/
export async function deleteSupplier(params?: any) {
return request('/api/biz-service-ebtp-bid/v1/resp/' + params, {
method: "delete",
return request('/api/biz-service-ebtp-bid/v1/resp/delete/' + params, {
method: "POST",
})
}
/*邀请函 供应商 更新联系人*/
export async function updateSupplierUser(id?: any, userId?: any, params?: any) {
return request('/api/biz-service-ebtp-bid/v1/resp/' + id + "/" + userId, {
method: "put",
method: "POST",
data: {
...params
}
@ -165,8 +165,8 @@ export async function updateSupplierUser(id?: any, userId?: any, params?: any) {
* @param id
* @returns
*/
export async function getApprovalFor(id?:any){
return request(`/api/biz-service-ebtp-bid/v1/anno/approve/trace/${id}`,{
method:"POST",
export async function getApprovalFor(id?: any) {
return request(`/api/biz-service-ebtp-bid/v1/anno/approve/trace/${id}`, {
method: "POST",
})
}