问卷继续答题 查看答题权限

dev_forge
杨树林 5 years ago
parent 0e4096c33e
commit 197bab9db6

@ -213,7 +213,7 @@ class PollDetailIndex extends Component{
user_permission && user_permission.poll_publish_count>0 ?
<li className="fl mr20">
<CancelPublish
{...this.props}
{...this.props}
{...this.state}
style="blue"
checkBoxValues={[this.props.match.params.pollId]}
@ -231,9 +231,11 @@ class PollDetailIndex extends Component{
{
user_permission && user_permission.current_status!=3 ?
<WordsBtn style="blue" to={`/courses/${this.props.match.params.coursesId}/polls/${this.props.match.params.pollId}/users/${this.props.current_user.login}`}>
{ user_permission && user_permission.current_status ==0 ? "继续答题" : user_permission.current_status == 1 ?
(polls_status===2?"":polls_status===3?"":polls_status===4?"":"查看答题")
: "开始答题" }
{ user_permission && user_permission.current_status ==0 ? "继续答题" :
user_permission.current_status == 1 ?
(polls_status===1?"":"查看答题")
:user_permission.current_status == 2 ?(polls_status===3?"":polls_status===4?"":"开始答题"):""
}
</WordsBtn>
:""
}
@ -266,4 +268,4 @@ class PollDetailIndex extends Component{
)
}
}
export default PollDetailIndex
export default PollDetailIndex

Loading…
Cancel
Save