|
|
|
@ -529,25 +529,28 @@ class Selectsetting extends Component{
|
|
|
|
|
<Radio style={radioStyle} value={0}>
|
|
|
|
|
立即发布
|
|
|
|
|
</Radio>
|
|
|
|
|
<Radio style={radioStyle} value={1} className={"fl"} disabled={this.props.isStudent()}>
|
|
|
|
|
<span className={"mr5"}>延迟发布</span>
|
|
|
|
|
<DatePicker
|
|
|
|
|
|
|
|
|
|
showToday={false}
|
|
|
|
|
dropdownClassName="hideDisable"
|
|
|
|
|
showTime={{ format: 'HH:mm' }}
|
|
|
|
|
format="YYYY-MM-DD HH:mm"
|
|
|
|
|
locale={locale}
|
|
|
|
|
placeholder="请选择发布时间"
|
|
|
|
|
id={"startime"}
|
|
|
|
|
width={"210px"}
|
|
|
|
|
value={datatime===undefined||datatime===""?"":moment(datatime, dateFormat)}
|
|
|
|
|
onChange={this.onChangeTimepublish}
|
|
|
|
|
disabledTime={disabledDateTime}
|
|
|
|
|
disabledDate={disabledDate}
|
|
|
|
|
disabled={this.state.Radiovalue===1?false:true}
|
|
|
|
|
/>
|
|
|
|
|
</Radio>
|
|
|
|
|
<Tooltip placement="bottom" title={"学生身份无延迟发布权限"} visible={this.props.isStudent()}>
|
|
|
|
|
<Radio style={radioStyle} value={1} className={"fl"} disabled={this.props.isStudent()}>
|
|
|
|
|
<span className={"mr5"}>延迟发布</span>
|
|
|
|
|
<DatePicker
|
|
|
|
|
|
|
|
|
|
showToday={false}
|
|
|
|
|
dropdownClassName="hideDisable"
|
|
|
|
|
showTime={{ format: 'HH:mm' }}
|
|
|
|
|
format="YYYY-MM-DD HH:mm"
|
|
|
|
|
locale={locale}
|
|
|
|
|
placeholder="请选择发布时间"
|
|
|
|
|
id={"startime"}
|
|
|
|
|
width={"210px"}
|
|
|
|
|
value={datatime===undefined||datatime===""?"":moment(datatime, dateFormat)}
|
|
|
|
|
onChange={this.onChangeTimepublish}
|
|
|
|
|
disabledTime={disabledDateTime}
|
|
|
|
|
disabledDate={disabledDate}
|
|
|
|
|
disabled={this.state.Radiovalue===1?false:true}
|
|
|
|
|
/>
|
|
|
|
|
</Radio>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
|
|
|
|
|
<span className={"fl mt5 color-grey-c"}>(按照设置的时间定时发布)</span>
|
|
|
|
|
</Radio.Group>
|
|
|
|
|
</div>
|
|
|
|
|