|
|
|
@ -276,7 +276,7 @@ class OneSelfOrderModal extends Component{
|
|
|
|
|
|
|
|
|
|
render(){
|
|
|
|
|
let {group_ids,endtime,course_groups}=this.state;
|
|
|
|
|
// console.log(course_groups)
|
|
|
|
|
console.log(this.props.modaltype)
|
|
|
|
|
let course_groupstype=course_groups===undefined||course_groups.length===0;
|
|
|
|
|
// TODO course_groups为空时的处理
|
|
|
|
|
return(
|
|
|
|
@ -344,7 +344,7 @@ class OneSelfOrderModal extends Component{
|
|
|
|
|
|
|
|
|
|
{this.props.starttime===undefined||
|
|
|
|
|
this.props.starttime===""?""
|
|
|
|
|
: <p className="task-popup-text-center font-16 mt10 mb10">
|
|
|
|
|
: <p className="task-popup-text-center font-16 mt20 mb10">
|
|
|
|
|
{/*<span className={"font-14 mr20 color979797"}>*/}
|
|
|
|
|
{/*<span className={"mr10"}>发布时间:</span>*/}
|
|
|
|
|
{/*{this.props.starttime}</span>*/}
|
|
|
|
@ -366,16 +366,17 @@ class OneSelfOrderModal extends Component{
|
|
|
|
|
onChange={this.onChangeTimeend}
|
|
|
|
|
className={ this.state.endtimetype===true?"noticeTip":""}
|
|
|
|
|
/>
|
|
|
|
|
{this.state.endtimetype===true?<div className={"color-red fr mr90 mt5"}>{this.state.endtimetypevalue}</div>:""}
|
|
|
|
|
|
|
|
|
|
{/*<div className={"fr mr90 mt5"}>(仅支持半点和整点)</div>*/}
|
|
|
|
|
</span>:""}
|
|
|
|
|
|
|
|
|
|
</p>}
|
|
|
|
|
{/* usingCheckBeforePost 为true的时候 全选所有分班 */}
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
|
.ant-checkbox-wrapper {
|
|
|
|
|
.HomeworkModal .ant-checkbox-wrapper {
|
|
|
|
|
margin-top: 0px;
|
|
|
|
|
float: left;
|
|
|
|
|
}
|
|
|
|
@ -407,7 +408,7 @@ class OneSelfOrderModal extends Component{
|
|
|
|
|
|
|
|
|
|
{ <Checkbox.Group style={{ width: '100%' }} value={group_ids} onChange={this.shixunhomeworkedit}>
|
|
|
|
|
{
|
|
|
|
|
course_groups===undefined?"":course_groups.map((item,key)=>{
|
|
|
|
|
course_groups===undefined||course_groups.length===0?"":course_groups.map((item,key)=>{
|
|
|
|
|
|
|
|
|
|
return(
|
|
|
|
|
<div className="clearfix edu-txt-center lineh-40 mb10" key={key}>
|
|
|
|
@ -444,8 +445,9 @@ class OneSelfOrderModal extends Component{
|
|
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
}
|
|
|
|
|
{this.state.endtimetype===true&&course_groupstype===true?<div className={"color-red"} style={{'text-align': 'center'}}>{this.state.endtimetypevalue}</div>:""}
|
|
|
|
|
{this.state.endtimetypeid!=undefined&&this.state.endtimetype===true?<div className={"color-red fl ml10 mb20"}>{this.state.endtimetypevalue}</div>:""}
|
|
|
|
|
{course_groupstype===true?<div className="clearfix mt30 edu-txt-center mb10">
|
|
|
|
|
{course_groupstype===true?<div className={this.state.endtimetype===true&&course_groupstype===true?"clearfix mt10 edu-txt-center mb10":"clearfix mt20 edu-txt-center mb10"}>
|
|
|
|
|
<a className="task-btn color-white mr30" onClick={this.props.Cancel}>{this.props.Cancelname}</a>
|
|
|
|
|
<a className="task-btn task-btn-orange" onClick={()=>this.propsSaves(group_ids,this.state.endtime)}>{this.props.Savesname}</a>
|
|
|
|
|
</div>:<div className="clearfix mt30 edu-txt-center mb10">
|
|
|
|
|