diff --git a/public/react/src/modules/courses/exercise/Exercisesetting.js b/public/react/src/modules/courses/exercise/Exercisesetting.js index 0230c9bc7..0e613a554 100644 --- a/public/react/src/modules/courses/exercise/Exercisesetting.js +++ b/public/react/src/modules/courses/exercise/Exercisesetting.js @@ -638,7 +638,7 @@ class Exercisesetting extends Component{ {getFieldDecorator('unified_setting') ( - 统一设置 )} @@ -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} >

@@ -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} > @@ -729,7 +729,7 @@ class Exercisesetting extends Component{ {getFieldDecorator('time') ( - )} @@ -746,7 +746,7 @@ class Exercisesetting extends Component{ {getFieldDecorator('question_random') ( - 题目顺序随机打乱 + 题目顺序随机打乱 )} (选中,则学生答题时,题目顺序按照题型随机显示) @@ -755,7 +755,7 @@ class Exercisesetting extends Component{ {getFieldDecorator('choice_random') ( - 选项顺序随机打乱 + 选项顺序随机打乱 )} (选中,则学生答题时,选项顺序随机显示) @@ -776,7 +776,7 @@ class Exercisesetting extends Component{ {getFieldDecorator('score_open') ( - 公开成绩 + 公开成绩 )} (选中,则在试卷截止时间之后,已提交答题的学生可以查看其它学生的成绩,否则只能查看自己的成绩) @@ -785,7 +785,7 @@ class Exercisesetting extends Component{ {getFieldDecorator('answer_open') ( - 公开答案 + 公开答案 )} (选中,则在试卷截止时间之后,已提交答题的学生可以查看试卷题目的答案,否则不能查看) @@ -794,7 +794,7 @@ class Exercisesetting extends Component{ {getFieldDecorator('show_statistic') ( - 公开统计 + 公开统计 )} (选中,则在试卷截止时间之后,已提交答题的学生可以查看答题统计,否则不能查看) diff --git a/public/react/src/modules/courses/poll/PollDetailTabForthRules.js b/public/react/src/modules/courses/poll/PollDetailTabForthRules.js index 8cc0adc02..f8f7b2fe2 100644 --- a/public/react/src/modules/courses/poll/PollDetailTabForthRules.js +++ b/public/react/src/modules/courses/poll/PollDetailTabForthRules.js @@ -402,7 +402,7 @@ class PollDetailTabForthRules extends Component{ } value={rule.course_group_id} onChange={(value,option)=>this.changeClasses(value,option,r)} - disabled={rule.p_timeflag===undefined?moment(rule.publish_time,dataformat) <= moment()?true:!flagPageEdit: rule.e_timeflag ===undefined?rule.publish_time===null?false:!flagPageEdit:rule.p_timeflag == true ? true : !flagPageEdit} + disabled={this.props.isAdmin()===true?rule.p_timeflag===undefined?moment(rule.publish_time,dataformat) <= moment()?true:!flagPageEdit: rule.e_timeflag ===undefined?rule.publish_time===null?false:!flagPageEdit:rule.p_timeflag == true ? true : !flagPageEdit:true} > { courseGroup && courseGroup.length > 0 && courseGroup.map((team,t)=>{ @@ -436,7 +436,7 @@ class PollDetailTabForthRules extends Component{ format="YYYY-MM-DD HH:mm" disabledTime={disabledDateTime} disabledDate={disabledDate} - disabled={ rule.p_timeflag===undefined?moment(rule.publish_time,dataformat) <= moment()?true:!flagPageEdit: rule.e_timeflag ===undefined?rule.publish_time===null?false:!flagPageEdit:rule.p_timeflag == true ? true : !flagPageEdit} + disabled={ this.props.isAdmin()===true?rule.p_timeflag===undefined?moment(rule.publish_time,dataformat) <= moment()?true:!flagPageEdit: rule.e_timeflag ===undefined?rule.publish_time===null?false:!flagPageEdit:rule.p_timeflag == true ? true : !flagPageEdit:true} style={{"height":"42px",width:'100%'}} > @@ -463,9 +463,10 @@ class PollDetailTabForthRules extends Component{ disabledTime={disabledDateTime} disabledDate={disabledDate} disabled={ + this.props.isAdmin()===true? this.props.type==="Exercise"||this.props.type==="polls"? rule.e_timeflag === undefined ? rule.publish_time === null ? false : moment(rule.end_time, dataformat) <= moment() ?this.props.isAdmin()?!flagPageEdit: true : !flagPageEdit : rule.e_timeflag == true ? this.props.isAdmin()?!flagPageEdit :true : !flagPageEdit: - rule.e_timeflag === undefined ? rule.publish_time === null ? false : moment(rule.end_time, dataformat) <= moment() ? true : !flagPageEdit : rule.e_timeflag == true ? true : !flagPageEdit + rule.e_timeflag === undefined ? rule.publish_time === null ? false : moment(rule.end_time, dataformat) <= moment() ? true : !flagPageEdit : rule.e_timeflag == true ? true : !flagPageEdit:true } style={{"height":"42px"}} >