6.20 前端put和delete请求类型修改为post
This commit is contained in:
@ -6,9 +6,9 @@ export async function getProInfo(proId?: any) {
|
||||
};
|
||||
//获取项目数据
|
||||
export async function getInfo(params?: any) {
|
||||
return request(`/api/biz-service-ebtp-bid/v1/annotemplate/anno/list`,{
|
||||
method:'GET',
|
||||
params:params,
|
||||
return request(`/api/biz-service-ebtp-bid/v1/annotemplate/anno/list`, {
|
||||
method: 'GET',
|
||||
params: params,
|
||||
});
|
||||
};
|
||||
//第一个节点保存时新增一条记录
|
||||
@ -21,7 +21,7 @@ export async function addOneInfo(params?: any) {
|
||||
//其余节点保存 修改
|
||||
export async function updateOneInfo(params?: any) {
|
||||
return request(`/api/biz-service-ebtp-bid/v1/annotemplate/anno/update`, {
|
||||
method: 'PUT',
|
||||
method: 'POST',
|
||||
data: params,
|
||||
});
|
||||
};
|
||||
@ -40,7 +40,7 @@ export async function getTemInfo(id?: any) {
|
||||
//根据id删
|
||||
export async function delAll(id?: any) {
|
||||
return request(`/api/biz-service-ebtp-bid/v1/annotemplate/anno/delete/${id}`, {
|
||||
method: 'DELETE',
|
||||
method: 'POST',
|
||||
});
|
||||
};
|
||||
//=======================================================================================================模板
|
||||
@ -50,22 +50,22 @@ export async function getTemList() {
|
||||
return request(`/api/biz-service-ebtp-bid/v1/annotemplate/statictemplate/list`);
|
||||
};
|
||||
//修改模板列表
|
||||
export async function upTem(data:any) {
|
||||
return request(`/api/biz-service-ebtp-bid/v1/annotemplate/statictemplate`,{
|
||||
method:'PUT',
|
||||
data:data,
|
||||
export async function upTem(data: any) {
|
||||
return request(`/api/biz-service-ebtp-bid/v1/annotemplate/statictemplate/update`, {
|
||||
method: 'POST',
|
||||
data: data,
|
||||
});
|
||||
};
|
||||
//修改模板列表
|
||||
export async function add(data:any) {
|
||||
return request(`/api/biz-service-ebtp-bid/v1/annotemplate/statictemplate`,{
|
||||
method:'POST',
|
||||
data:data,
|
||||
export async function add(data: any) {
|
||||
return request(`/api/biz-service-ebtp-bid/v1/annotemplate/statictemplate`, {
|
||||
method: 'POST',
|
||||
data: data,
|
||||
});
|
||||
};
|
||||
//删除模板列表
|
||||
export async function del(id:any) {
|
||||
return request(`/api/biz-service-ebtp-bid/v1/annotemplate/statictemplate/${id}`,{
|
||||
method:'DELETE',
|
||||
export async function del(id: any) {
|
||||
return request(`/api/biz-service-ebtp-bid/v1/annotemplate/statictemplate/delete/${id}`, {
|
||||
method: 'POST',
|
||||
});
|
||||
};
|
Reference in New Issue
Block a user