|
|
|
@ -13,6 +13,7 @@ enum Api { |
|
|
|
|
exportXls = '/AnnualCompPoint/annualCompPoint/exportXls', |
|
|
|
|
updateApply = '/AnnualCompPoint/annualCompPoint/updateApply', |
|
|
|
|
collectScore = '/annualScore/personalCompScore/collectScore', |
|
|
|
|
pj = '/AnnualCompPoint/annualCompPoint/pj', |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -43,6 +44,12 @@ export const deleteOne = (params,handleSuccess) => { |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export const pj = (params,handleSuccess) => { |
|
|
|
|
return defHttp.get({url: Api.pj, params}, {joinParamsToUrl: true}).then(() => { |
|
|
|
|
handleSuccess(); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 批量删除 |
|
|
|
|
* @param params |
|
|
|
@ -62,6 +69,21 @@ export const batchDelete = (params, handleSuccess) => { |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
// 个人积分汇总
|
|
|
|
|
export const collectScore = (params,handleSuccess) => { |
|
|
|
|
createConfirm({ |
|
|
|
|
iconType: 'warning', |
|
|
|
|
title: '确认操作', |
|
|
|
|
content: '确认发送请求吗', |
|
|
|
|
okText: '确认', |
|
|
|
|
cancelText: '取消', |
|
|
|
|
onOk: () => { |
|
|
|
|
return defHttp.post({url: Api.collectScore,params}, {joinParamsToUrl: true}).then(() => { |
|
|
|
|
handleSuccess(); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 保存或者更新 |
|
|
|
@ -92,19 +114,3 @@ export const updateApply = (params,handleSuccess) => { |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 个人积分汇总
|
|
|
|
|
export const collectScore = (params,handleSuccess) => { |
|
|
|
|
createConfirm({ |
|
|
|
|
iconType: 'warning', |
|
|
|
|
title: '确认操作', |
|
|
|
|
content: '确认发送请求吗', |
|
|
|
|
okText: '确认', |
|
|
|
|
cancelText: '取消', |
|
|
|
|
onOk: () => { |
|
|
|
|
return defHttp.post({url: Api.collectScore,params}, {joinParamsToUrl: true}).then(() => { |
|
|
|
|
handleSuccess(); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|