|
|
|
@ -638,7 +638,7 @@ class Exercisesetting extends Component{
|
|
|
|
|
<Form.Item className="fl pollForm">
|
|
|
|
|
{getFieldDecorator('unified_setting')
|
|
|
|
|
(
|
|
|
|
|
<Checkbox disabled={flagPageEdit===true?polls&&polls.exercise_status===1?false:true:true} className="mr15 font-16 color-grey-6"
|
|
|
|
|
<Checkbox disabled={this.props.isAdmin()===true?flagPageEdit===true?polls&&polls.exercise_status===1?false:true:true:true} className="mr15 font-16 color-grey-6"
|
|
|
|
|
checked={unified_setting?true:false}
|
|
|
|
|
onChange={this.changeUnit}>统一设置</Checkbox>
|
|
|
|
|
)}
|
|
|
|
@ -664,7 +664,7 @@ class Exercisesetting extends Component{
|
|
|
|
|
disabledDate={disabledDate}
|
|
|
|
|
onChange={this.onChangeTimepublish}
|
|
|
|
|
value={publish_time && moment(publish_time,"YYYY-MM-DD HH:mm")}
|
|
|
|
|
disabled={ publish_timetype===true?true:!flagPageEdit }
|
|
|
|
|
disabled={ this.props.isAdmin()===true?publish_timetype===true?true:!flagPageEdit:true}
|
|
|
|
|
></DatePicker>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
<p className="color-red lineh-25 clearfix" style={{height:"25px"}}>
|
|
|
|
@ -692,7 +692,7 @@ class Exercisesetting extends Component{
|
|
|
|
|
disabledDate={disabledDate}
|
|
|
|
|
onChange={this.onChangeTimeEnd}
|
|
|
|
|
value={end_time && moment(end_time,"YYYY-MM-DD HH:mm")}
|
|
|
|
|
disabled={ end_timetype===true?this.props.isAdmin()?!flagPageEdit:true:!flagPageEdit}
|
|
|
|
|
disabled={ this.props.isAdmin()===true? end_timetype===true?this.props.isAdmin()?!flagPageEdit:true:!flagPageEdit:true}
|
|
|
|
|
>
|
|
|
|
|
</DatePicker>
|
|
|
|
|
</Tooltip>
|
|
|
|
@ -729,7 +729,7 @@ class Exercisesetting extends Component{
|
|
|
|
|
<Form.Item className="fl pollForm">
|
|
|
|
|
{getFieldDecorator('time')
|
|
|
|
|
(
|
|
|
|
|
<Input disabled={!flagPageEdit} className="mr10" style={{width:"100px",height:"35px" }}
|
|
|
|
|
<Input disabled={this.props.isAdmin()===true?!flagPageEdit:true} className="mr10" style={{width:"100px",height:"35px" }}
|
|
|
|
|
value={time===-1?"":time}
|
|
|
|
|
onInput={this.funlatepenalty}/>
|
|
|
|
|
)}
|
|
|
|
@ -746,7 +746,7 @@ class Exercisesetting extends Component{
|
|
|
|
|
<Form.Item className="fl pollForm">
|
|
|
|
|
{getFieldDecorator('question_random')
|
|
|
|
|
(
|
|
|
|
|
<Checkbox disabled={!flagPageEdit} className="mr15 font-16 color-grey-6" checked={question_random} onChange={this.questionrandom}>题目顺序随机打乱</Checkbox>
|
|
|
|
|
<Checkbox disabled={this.props.isAdmin()===true?!flagPageEdit:true} className="mr15 font-16 color-grey-6" checked={question_random} onChange={this.questionrandom}>题目顺序随机打乱</Checkbox>
|
|
|
|
|
)}
|
|
|
|
|
</Form.Item>
|
|
|
|
|
<span className="color-grey-c">(选中,则学生答题时,题目顺序按照题型随机显示)</span>
|
|
|
|
@ -755,7 +755,7 @@ class Exercisesetting extends Component{
|
|
|
|
|
<Form.Item className="fl pollForm">
|
|
|
|
|
{getFieldDecorator('choice_random')
|
|
|
|
|
(
|
|
|
|
|
<Checkbox disabled={!flagPageEdit} className="mr15 font-16 color-grey-6" checked={choice_random} onChange={this.choicerandom}>选项顺序随机打乱</Checkbox>
|
|
|
|
|
<Checkbox disabled={this.props.isAdmin()===true?!flagPageEdit:true} className="mr15 font-16 color-grey-6" checked={choice_random} onChange={this.choicerandom}>选项顺序随机打乱</Checkbox>
|
|
|
|
|
)}
|
|
|
|
|
</Form.Item>
|
|
|
|
|
<span className="color-grey-c">(选中,则学生答题时,选项顺序随机显示)</span>
|
|
|
|
@ -776,7 +776,7 @@ class Exercisesetting extends Component{
|
|
|
|
|
<Form.Item className="fl pollForm">
|
|
|
|
|
{getFieldDecorator('score_open')
|
|
|
|
|
(
|
|
|
|
|
<Checkbox disabled={!flagPageEdit} className="mr15 font-16 color-grey-6" checked={score_open} onChange={this.ChangeFlagPublic}>公开成绩</Checkbox>
|
|
|
|
|
<Checkbox disabled={this.props.isAdmin()===true?!flagPageEdit:true} className="mr15 font-16 color-grey-6" checked={score_open} onChange={this.ChangeFlagPublic}>公开成绩</Checkbox>
|
|
|
|
|
)}
|
|
|
|
|
</Form.Item>
|
|
|
|
|
<span className="color-grey-c">(选中,则在试卷截止时间之后,已提交答题的学生可以查看其它学生的成绩,否则只能查看自己的成绩)</span>
|
|
|
|
@ -785,7 +785,7 @@ class Exercisesetting extends Component{
|
|
|
|
|
<Form.Item className="fl pollForm">
|
|
|
|
|
{getFieldDecorator('answer_open')
|
|
|
|
|
(
|
|
|
|
|
<Checkbox disabled={!flagPageEdit} className="mr15 font-16 color-grey-6" checked={answer_open} onChange={this.ChangeFlagName}>公开答案</Checkbox>
|
|
|
|
|
<Checkbox disabled={this.props.isAdmin()===true?!flagPageEdit:true} className="mr15 font-16 color-grey-6" checked={answer_open} onChange={this.ChangeFlagName}>公开答案</Checkbox>
|
|
|
|
|
)}
|
|
|
|
|
</Form.Item>
|
|
|
|
|
<span className="color-grey-c">(选中,则在试卷截止时间之后,已提交答题的学生可以查看试卷题目的答案,否则不能查看)</span>
|
|
|
|
@ -794,7 +794,7 @@ class Exercisesetting extends Component{
|
|
|
|
|
<Form.Item className="fl pollForm">
|
|
|
|
|
{getFieldDecorator('show_statistic')
|
|
|
|
|
(
|
|
|
|
|
<Checkbox disabled={!flagPageEdit} className="mr15 font-16 color-grey-6" checked={show_statistic} onChange={this.showstatistic}>公开统计</Checkbox>
|
|
|
|
|
<Checkbox disabled={this.props.isAdmin()===true?!flagPageEdit:true} className="mr15 font-16 color-grey-6" checked={show_statistic} onChange={this.showstatistic}>公开统计</Checkbox>
|
|
|
|
|
)}
|
|
|
|
|
</Form.Item>
|
|
|
|
|
<span className="color-grey-c">(选中,则在试卷截止时间之后,已提交答题的学生可以查看答题统计,否则不能查看)</span>
|
|
|
|
|