调整资源问题

issues25489
杨树明 5 years ago
parent acbe113859
commit 608939149c

@ -1,5 +1,5 @@
import React,{ Component } from "react"; import React,{ Component } from "react";
import { Modal,Checkbox,Select,Input,Spin,Icon,Radio,DatePicker} from "antd"; import { Modal,Checkbox,Select,Input,Spin,Icon,Radio,DatePicker,Tooltip} from "antd";
import locale from 'antd/lib/date-picker/locale/zh_CN'; import locale from 'antd/lib/date-picker/locale/zh_CN';
import axios from'axios'; import axios from'axios';
import {handleDateString} from 'educoder'; import {handleDateString} from 'educoder';
@ -421,6 +421,7 @@ class Selectresource extends Component{
<Radio style={radioStyle} value={0}> <Radio style={radioStyle} value={0}>
立即发布 立即发布
</Radio> </Radio>
<Tooltip placement="bottom" title={"学生身份无延迟发布权限"} visible={this.props.isStudent()}>
<Radio style={radioStyle} value={1} className={"fl"} disabled={this.props.isStudent()}> <Radio style={radioStyle} value={1} className={"fl"} disabled={this.props.isStudent()}>
<span className={"mr5"}>延迟发布</span> <span className={"mr5"}>延迟发布</span>
<DatePicker <DatePicker
@ -439,6 +440,7 @@ class Selectresource extends Component{
disabled={this.state.Radiovalue===1?false:true} disabled={this.state.Radiovalue===1?false:true}
/> />
</Radio> </Radio>
</Tooltip>
<span className={"fl mt5 color-grey-c"}>(按照设置的时间定时发布)</span> <span className={"fl mt5 color-grey-c"}>(按照设置的时间定时发布)</span>
</Radio.Group> </Radio.Group>
</div> </div>

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

@ -398,6 +398,7 @@ class Sendresource extends Component{
<Radio style={radioStyle} value={0}> <Radio style={radioStyle} value={0}>
立即发布 立即发布
</Radio> </Radio>
<Tooltip placement="bottom" title={"学生身份无延迟发布权限"} visible={this.props.isStudent()}>
<Radio style={radioStyle} value={1} className={"fl"} disabled={this.props.isStudent()}> <Radio style={radioStyle} value={1} className={"fl"} disabled={this.props.isStudent()}>
<span className={"mr5"}>延迟发布</span> <span className={"mr5"}>延迟发布</span>
<DatePicker <DatePicker
@ -417,6 +418,7 @@ class Sendresource extends Component{
disabled={this.state.Radiovalue===1?false:true} disabled={this.state.Radiovalue===1?false:true}
/> />
</Radio> </Radio>
</Tooltip>
<span className={"fl mt5 color-grey-c"}>(按照设置的时间定时发布)</span> <span className={"fl mt5 color-grey-c"}>(按照设置的时间定时发布)</span>
</Radio.Group> </Radio.Group>
</div> </div>

Loading…
Cancel
Save