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

@ -3,7 +3,7 @@ import request from '@/utils/request';
/*公告列表请求*/
export async function GetNoticeList(params?:any){
export async function GetNoticeList(params?: any) {
return request('/api/biz-service-ebtp-bid/v1/anno/pageList', {
method: 'post',
data: {
@ -12,15 +12,15 @@ export async function GetNoticeList(params?:any){
})
}
/*当前公告可用包请求*/
export async function GetNoticeUsablePackage(params?:any){
return request('/api/biz-service-ebtp-bid/v1/anno/tobs/'+params)
export async function GetNoticeUsablePackage(params?: any) {
return request('/api/biz-service-ebtp-bid/v1/anno/tobs/' + params)
}
/*公告信息查询*/
export async function GetNoticeMsg(params?:any){
return request('/api/biz-service-ebtp-bid/v1/anno/'+params)
export async function GetNoticeMsg(params?: any) {
return request('/api/biz-service-ebtp-bid/v1/anno/' + params)
}
/*创建公告*/
export async function creatNotice(type:any,params?:any){
export async function creatNotice(type: any, params?: any) {
return request('/api/biz-service-ebtp-bid/v1/anno/zmMultiPub', {
method: "post",
data: {
@ -29,40 +29,40 @@ export async function creatNotice(type:any,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")
// 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
// },
// })
// }
/*删除公告*/
export async function removeNotice(params?:any){
let method="delete";
return request('/api/biz-service-ebtp-bid/v1/anno/'+params,{method:method})
export async function removeNotice(params?: any) {
let method = "POST";
return request('/api/biz-service-ebtp-bid/v1/anno/delete/' + params, { method: method })
}
/*发布公告 type=0 正常发布*/
export async function releaseNotice(params?:any){
let method="post";
return request('/api/biz-service-ebtp-bid/v1/anno/publish/'+params+"/0",{
method:method,
export async function releaseNotice(params?: any) {
let method = "post";
return request('/api/biz-service-ebtp-bid/v1/anno/publish/' + params + "/0", {
method: method,
})
}
/*发布公告 type=1 线下发布*/
export async function releaseNoticeOffline(params?:any){
let method="post";
return request('/api/biz-service-ebtp-bid/v1/anno/publish/'+params+"/1",{
method:method,
export async function releaseNoticeOffline(params?: any) {
let method = "post";
return request('/api/biz-service-ebtp-bid/v1/anno/publish/' + params + "/1", {
method: method,
data: {
...params
},
})
}
/*再次发布公告*/
export async function releaseNoticeAgain(params?:any) {
export async function releaseNoticeAgain(params?: any) {
let method = "post";
return request('/api/biz-service-ebtp-bid/v1/anno/republish/' + params, {
method: method,
@ -72,7 +72,7 @@ export async function releaseNoticeAgain(params?:any) {
})
}
/*公告发起审批*/
export async function ApprovalNotice(params?:any) {
export async function ApprovalNotice(params?: any) {
let method = "post";
return request('/api/biz-service-ebtp-bid/v1/anno/approval/' + params, {
method: method,
@ -91,43 +91,43 @@ export async function GetfileList(params?: any) {
})
}
export async function GetfileUsablePackage(params?: any) {
return request('/api/biz-service-ebtp-bid/v1/document/tobs/getSectionList/'+params)
return request('/api/biz-service-ebtp-bid/v1/document/tobs/getSectionList/' + params)
}
export async function GetfileMsg(params?: any) {
return request('/api/biz-service-ebtp-bid/v1/document/'+params)
return request('/api/biz-service-ebtp-bid/v1/document/' + params)
}
export async function creatfile(type:any,params?:any){
let method="post";
if(type=="edit")
method="put";
return request('/api/biz-service-ebtp-bid/v1/document', {
method: method,
export async function creatfile(type: any, params?: any) {
let url = "/api/biz-service-ebtp-bid/v1/document";
if (type == "edit")
url = "/api/biz-service-ebtp-bid/v1/document/update";
return request(url, {
method: "POST",
data: {
...params
},
})
}
export async function removefile(params?:any){
let method="delete";
return request('/api/biz-service-ebtp-bid/v1/document/'+params,{method:method})
export async function removefile(params?: any) {
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-bid/v1/bizbidopenhall/list?opendate'+params,{method:method})
export async function getChooseRoom(params?: any) {
let method = "get";
return request('/api/biz-service-ebtp-bid/v1/bizbidopenhall/list?opendate' + params, { method: method })
}
/*当前公示可用包请求*/
export async function GetPublicityUsablePackage(params?:any,annoId?:any){
return request('/api/biz-service-ebtp-bid/v1/anno/tobs/pub/'+params +"?annoId="+annoId);
export async function GetPublicityUsablePackage(params?: any, annoId?: any) {
return request('/api/biz-service-ebtp-bid/v1/anno/tobs/pub/' + params + "?annoId=" + annoId);
}
/**
* 审批单链接查询(公告,变更公告,失败公告,邀请函,公示)
* @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",
})
}