|
|
|
@ -7,6 +7,7 @@ enum Api { |
|
|
|
|
list = '/AnnualCompPoint/annualCompPoint/list', |
|
|
|
|
save='/AnnualCompPoint/annualCompPoint/add', |
|
|
|
|
edit='/AnnualCompPoint/annualCompPoint/edit', |
|
|
|
|
edit1='/AnnualCompPoint/annualCompPoint/edit1', |
|
|
|
|
deleteOne = '/AnnualCompPoint/annualCompPoint/delete', |
|
|
|
|
deleteBatch = '/AnnualCompPoint/annualCompPoint/deleteBatch', |
|
|
|
|
importExcel = '/AnnualCompPoint/annualCompPoint/importExcel', |
|
|
|
@ -106,6 +107,11 @@ export const saveOrUpdate = (params, isUpdate) => { |
|
|
|
|
return defHttp.post({ url: url, params }, { isTransformResponse: false }); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export const saveOrUpdate1 = (params, isUpdate) => { |
|
|
|
|
let url = isUpdate ? Api.edit1 : Api.save; |
|
|
|
|
return defHttp.post({ url: url, params }, { isTransformResponse: false }); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 提交或申请修改 |
|
|
|
|
* @param params |
|
|
|
|