|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
import React,{ Component } from "react";
|
|
|
|
|
import {Form,Checkbox,DatePicker,Button,Input,Select,Tooltip} from "antd";
|
|
|
|
|
|
|
|
|
|
import { handleDateString } from 'educoder';
|
|
|
|
|
import { handleDateString,ConditionToolTip } from 'educoder';
|
|
|
|
|
import PollDetailTabForthRules from './PollDetailTabForthRules'
|
|
|
|
|
import HomeworkModal from "../coursesPublic/HomeworkModal";
|
|
|
|
|
|
|
|
|
@ -585,48 +585,56 @@ class PollDetailTabForth extends Component{
|
|
|
|
|
<div>
|
|
|
|
|
<div className="clearfix mb5">
|
|
|
|
|
<span className="font-16 mr15 fl mt6">发布时间:</span>
|
|
|
|
|
<div className="fl">
|
|
|
|
|
<DatePicker
|
|
|
|
|
showToday={false}
|
|
|
|
|
dropdownClassName="hideDisable"
|
|
|
|
|
showTime={{ format: 'HH:mm' }}
|
|
|
|
|
placeholder="请选择发布时间"
|
|
|
|
|
locale={locale}
|
|
|
|
|
className={unit_p_tip && unit_p_tip != "" ?"noticeTip winput-240-40":"winput-240-40" }
|
|
|
|
|
style={{"height":"42px"}}
|
|
|
|
|
format="YYYY-MM-DD HH:mm"
|
|
|
|
|
disabledTime={disabledDateTime}
|
|
|
|
|
onChange={this.onChangeTimepublish}
|
|
|
|
|
value={publish_time && moment(publish_time,dataformat)}
|
|
|
|
|
disabled={un_change_unified == true ? true : !flagPageEdit }
|
|
|
|
|
></DatePicker>
|
|
|
|
|
<p className="color-red lineh-25 clearfix" style={{height:"25px"}}>
|
|
|
|
|
{
|
|
|
|
|
unit_p_tip && unit_p_tip != "" ? <span className="fl">{ unit_p_tip }</span>:""
|
|
|
|
|
}
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="fl">
|
|
|
|
|
<Tooltip placement="bottom" title={un_change_unified ? "发布时间已过,不能再修改":""}>
|
|
|
|
|
<span>
|
|
|
|
|
<DatePicker
|
|
|
|
|
showToday={false}
|
|
|
|
|
dropdownClassName="hideDisable"
|
|
|
|
|
showTime={{ format: 'HH:mm' }}
|
|
|
|
|
placeholder="请选择发布时间"
|
|
|
|
|
locale={locale}
|
|
|
|
|
className={unit_p_tip && unit_p_tip != "" ?"noticeTip winput-240-40":"winput-240-40" }
|
|
|
|
|
style={{"height":"42px"}}
|
|
|
|
|
format="YYYY-MM-DD HH:mm"
|
|
|
|
|
disabledTime={disabledDateTime}
|
|
|
|
|
onChange={this.onChangeTimepublish}
|
|
|
|
|
value={publish_time && moment(publish_time,dataformat)}
|
|
|
|
|
disabled={un_change_unified == true ? true : !flagPageEdit }
|
|
|
|
|
></DatePicker>
|
|
|
|
|
</span>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
<p className="color-red lineh-25 clearfix" style={{height:"25px"}}>
|
|
|
|
|
{
|
|
|
|
|
unit_p_tip && unit_p_tip != "" ? <span className="fl">{ unit_p_tip }</span>:""
|
|
|
|
|
}
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<span className="color-grey-c ml20 fl mt10 font-14">(学生收到问卷的时间)</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="clearfix">
|
|
|
|
|
<span className="mr15 fl mt10 font-16">截止时间:</span>
|
|
|
|
|
<div className="fl">
|
|
|
|
|
<DatePicker
|
|
|
|
|
showToday={false}
|
|
|
|
|
dropdownClassName="hideDisable"
|
|
|
|
|
showTime={{ format: 'HH:mm' }}
|
|
|
|
|
locale={locale}
|
|
|
|
|
placeholder="请选择截止时间"
|
|
|
|
|
style={{"height":"42px"}}
|
|
|
|
|
className={unit_e_tip && unit_e_tip != "" ? "noticeTip winput-240-40 mr20":"winput-240-40 mr20" }
|
|
|
|
|
width={"240px"}
|
|
|
|
|
format="YYYY-MM-DD HH:mm"
|
|
|
|
|
disabledTime={disabledDateTime}
|
|
|
|
|
onChange={this.onChangeTimeEnd}
|
|
|
|
|
value={ end_time && moment(end_time,dataformat) }
|
|
|
|
|
disabled={un_change_end == true ? true : !flagPageEdit }
|
|
|
|
|
>
|
|
|
|
|
</DatePicker>
|
|
|
|
|
<Tooltip placement="bottom" title={un_change_end ? "截止时间已过,不能再修改":""}>
|
|
|
|
|
<span>
|
|
|
|
|
<DatePicker
|
|
|
|
|
showToday={false}
|
|
|
|
|
dropdownClassName="hideDisable"
|
|
|
|
|
showTime={{ format: 'HH:mm' }}
|
|
|
|
|
locale={locale}
|
|
|
|
|
placeholder="请选择截止时间"
|
|
|
|
|
style={{"height":"42px"}}
|
|
|
|
|
className={unit_e_tip && unit_e_tip != "" ? "noticeTip winput-240-40 mr20":"winput-240-40 mr20" }
|
|
|
|
|
width={"240px"}
|
|
|
|
|
format="YYYY-MM-DD HH:mm"
|
|
|
|
|
disabledTime={disabledDateTime}
|
|
|
|
|
onChange={this.onChangeTimeEnd}
|
|
|
|
|
value={ end_time && moment(end_time,dataformat) }
|
|
|
|
|
disabled={un_change_end == true ? true : !flagPageEdit }
|
|
|
|
|
>
|
|
|
|
|
</DatePicker>
|
|
|
|
|
</span>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
<p className="color-red lineh-25 clearfix" style={{height:"25px"}}>
|
|
|
|
|
{
|
|
|
|
|
unit_e_tip && unit_e_tip != "" ? <span className="fl">{ unit_e_tip }</span>:""
|
|
|
|
|