Merge branch 'expert_review' of https://code.gitlink.org.cn/durian/forgeplus-react into dev_military_osredm

This commit is contained in:
何童崇 2022-01-21 10:02:32 +08:00
commit b4e40c5ff5
1 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ export default Form.create()(({ form, showNotification, match, history, state })
showArrow
defaultValue={text?1:-1}
onChange={(key) => { changeExpertReviewStatus(key, record.id) }}
disabled={!record.status == 1 || !record.status == 3 || record.assignRuleAndExperts}
disabled={record.assignRuleAndExperts || !(record.status == 1 || record.status == 3)}
>
{
expertReviewArr.map(item => {
@ -246,7 +246,7 @@ export default Form.create()(({ form, showNotification, match, history, state })
title: '评审任务',
dataIndex: 'expertReview1',
render: (text, record) => {
return record.assignRuleAndExperts ? <span className='gary_span'>已发布</span> : record.expertReview && record.status < 4 && record.status !== 2 ? <Button size='small' type="primary" onClick={()=>{publishTaskReview(record)}}>发布</Button> : <span className='gary_span'>发布</span>
return record.assignRuleAndExperts ? <span className='gary_span'>已发布</span> : record.expertReview && (record.status === 1 || record.status === 3) ? <Button size='small' type="primary" onClick={()=>{publishTaskReview(record)}}>发布</Button> : <span className='gary_span'>发布</span>
}
},
{