forked from Gitlink/forgeplus-react
修改bug
This commit is contained in:
parent
11b5c87888
commit
c8f6891239
|
@ -224,6 +224,7 @@ export function updatePaper(data) {
|
|||
});
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function deletePaper(id) {
|
||||
return fetch({
|
||||
url: `api/paper/${id}`,
|
||||
|
@ -231,6 +232,15 @@ export function deletePaper(id) {
|
|||
});
|
||||
}
|
||||
|
||||
|
||||
//应征者名单公示
|
||||
export function makePublic(id) {
|
||||
return fetch({
|
||||
url: `/api/tasks/makeApplicantListPublic/${id}`,
|
||||
method: 'put',
|
||||
});
|
||||
}
|
||||
|
||||
//举报成果
|
||||
export function reportPaper(data) {
|
||||
return fetch({
|
||||
|
|
|
@ -21,7 +21,7 @@ for (const item of paperCheckStatusArr) {
|
|||
}
|
||||
|
||||
export default Form.create()((props) => {
|
||||
const { list, curPage, total, changePage, loading, applyStatusAllNameArr, reloadList, showNotification, current_user, form, detailStatus } = props;
|
||||
const { list, curPage, total, changePage, loading, applyStatusAllNameArr, reloadList, showNotification, current_user, form, detailStatus,agreementSigning } = props;
|
||||
const { getFieldDecorator, validateFields, setFieldsValue } = form;
|
||||
const [page, setPage] = useState(1);
|
||||
const pageSize = props.pageSize || 10;
|
||||
|
|
|
@ -7,7 +7,7 @@ import Upload from '../../components/Upload';
|
|||
import StatusNav from '../../components/statusNav';
|
||||
import ItemListPaper from '../components/itemListPaper';
|
||||
import ProofModal from '../components/proofModal';
|
||||
import { getTaskDetail, getTaskCategory, getTaskPaper, updateTask, addPaper, getAgreement, agreement, checkAgreement, checkHavePaper } from '../api';
|
||||
import { getTaskDetail, getTaskCategory, getTaskPaper, makePublic, addPaper, getAgreement, agreement, checkAgreement, checkHavePaper } from '../api';
|
||||
import { taskModeIdArr, applyStatusArr, applyStatusAllArr, agreementContent } from '../static';
|
||||
import { httpUrl } from '../../fetch';
|
||||
import winpng from '../image/win.png';
|
||||
|
@ -253,13 +253,9 @@ export default Form.create()(
|
|||
title: '提示',
|
||||
content: '确认公示应征者信息',
|
||||
onOk: () => {
|
||||
updateTask({
|
||||
...detailData,
|
||||
id,
|
||||
showUserStatus: true,
|
||||
}).then(res => {
|
||||
makePublic(id).then(res => {
|
||||
if (res && res.message === 'success') {
|
||||
setDetailData(res.data || {});
|
||||
setReload(reload+1);
|
||||
} else {
|
||||
showNotification('操作失败');
|
||||
}
|
||||
|
@ -503,6 +499,7 @@ export default Form.create()(
|
|||
reloadList={reloadList}
|
||||
showNotification={showNotification}
|
||||
detailStatus={detailData.status}
|
||||
agreementSigning={detailData.agreementSigning}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue