调整试卷截止时间权限

chromesetting
杨树明 5 years ago
parent 382e8475f5
commit 26b98b449e

@ -654,7 +654,7 @@ class Exercisesetting extends Component{
<div className="clearfix" id={"publishtimeid"}>
<span className="font-16 mr15 fl mt6">发布时间</span>
<div className="fl">
<Tooltip placement="bottom" title={publish_timetype===true?this.props.isAdmin()? "发布时间已过,不能再修改":"":""}>
<Tooltip placement="bottom" title={publish_timetype===true?this.props.isAdmin()? "":"发布时间已过,不能再修改":""}>
<DatePicker
dropdownClassName="hideDisable"
placeholder="请选择发布时间"
@ -667,7 +667,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={ publish_timetype===true?this.props.isAdmin()?!flagPageEdit:true:!flagPageEdit }
></DatePicker>
</Tooltip>
<p className="color-red lineh-25 clearfix" style={{height:"25px"}}>

Loading…
Cancel
Save