forked from Gitlink/forgeplus-react
待审核以及成果征集中管理员才可以操作评审任务
This commit is contained in:
parent
250f06f061
commit
e5b0e72a44
|
@ -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>
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue