6.20 前端put和delete请求类型修改为post
This commit is contained in:
@ -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 正常发布*/
|
||||
@ -95,7 +95,7 @@ export async function GetfileList(params?: any) {
|
||||
/*开标大厅选择*/
|
||||
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 })
|
||||
}
|
||||
|
||||
/*公告历史列表查询*/
|
||||
@ -104,7 +104,7 @@ export async function GetHistoryNoticeList(params?: any) {
|
||||
return request('/api/biz-service-ebtp-bid/v1/anno/record/pageList',
|
||||
{
|
||||
method: method,
|
||||
data:{
|
||||
data: {
|
||||
...params
|
||||
}
|
||||
}
|
||||
@ -116,9 +116,9 @@ export async function GetHistoryNoticeList(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",
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -62,8 +62,8 @@ export async function editSection(params: any) {
|
||||
* @param params
|
||||
*/
|
||||
export async function deleteProcess(params: any) {
|
||||
return request(`/api/biz-service-ebtp-resps/v1/tdoc/${params.tdocId}`, {
|
||||
method: 'DELETE',
|
||||
return request(`/api/biz-service-ebtp-resps/v1/tdoc/delete/${params.tdocId}`, {
|
||||
method: 'POST',
|
||||
});
|
||||
}
|
||||
|
||||
@ -106,8 +106,8 @@ export async function toInsertOpenList(params: any) {
|
||||
* @param params
|
||||
*/
|
||||
export async function toUpdateOpenList(params: any) {
|
||||
return request('/api/biz-service-ebtp-resps/v1/tdoccatalogcontent', {
|
||||
method: 'PUT',
|
||||
return request('/api/biz-service-ebtp-resps/v1/tdoccatalogcontent/update', {
|
||||
method: 'POST',
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
@ -117,8 +117,8 @@ export async function toUpdateOpenList(params: any) {
|
||||
* @param params
|
||||
*/
|
||||
export async function deleteItemizedQuotation(params: any) {
|
||||
return request(`/api/biz-service-ebtp-resps/v1/tdoccatalogcontent/${params}`, {
|
||||
method: 'DELETE',
|
||||
return request(`/api/biz-service-ebtp-resps/v1/tdoccatalogcontent/delete/${params}`, {
|
||||
method: 'POST',
|
||||
});
|
||||
}
|
||||
|
||||
@ -149,8 +149,8 @@ export async function addMenuList(params: any) {
|
||||
* @param params
|
||||
*/
|
||||
export async function deleteMenuList(params: any) {
|
||||
return request(`/api/biz-service-ebtp-resps/v1/tdoccatalog/${params}`, {
|
||||
method: 'DELETE',
|
||||
return request(`/api/biz-service-ebtp-resps/v1/tdoccatalog/delete/${params}`, {
|
||||
method: 'POST',
|
||||
});
|
||||
}
|
||||
|
||||
@ -159,8 +159,8 @@ export async function deleteMenuList(params: any) {
|
||||
* @param params
|
||||
*/
|
||||
export async function updateMenuList(params: any) {
|
||||
return request('/api/biz-service-ebtp-resps/v1/tdoccatalog', {
|
||||
method: 'PUT',
|
||||
return request('/api/biz-service-ebtp-resps/v1/tdoccatalog/update', {
|
||||
method: 'POST',
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
@ -279,7 +279,7 @@ export async function comfirmSeleTemplate(params: any) {
|
||||
* @param params
|
||||
*/
|
||||
export async function deleteTemplate(params: any) {
|
||||
return request(`/api/biz-service-ebtp-resps/v1/tdoctemplate/${params}`, {
|
||||
method: 'DELETE',
|
||||
return request(`/api/biz-service-ebtp-resps/v1/tdoctemplate/delete/${params}`, {
|
||||
method: 'POST',
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user