|
|
|
@ -33,6 +33,11 @@ function disabledDateTime() {
|
|
|
|
|
// disabledSeconds: () => [55, 56],
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function disabledDate(current) {
|
|
|
|
|
return current && current < moment().endOf('day').subtract(1, 'days');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const dataformat="YYYY-MM-DD HH:mm";
|
|
|
|
|
|
|
|
|
|
class PollDetailTabForth extends Component{
|
|
|
|
@ -597,6 +602,7 @@ class PollDetailTabForth extends Component{
|
|
|
|
|
width={"240px"}
|
|
|
|
|
format="YYYY-MM-DD HH:mm"
|
|
|
|
|
disabledTime={disabledDateTime}
|
|
|
|
|
disabledDate={disabledDate}
|
|
|
|
|
onChange={this.onChangeTimeEnd}
|
|
|
|
|
value={ end_time && moment(end_time,dataformat) }
|
|
|
|
|
disabled={un_change_end == true ? this.props.isAdmin()?!flagPageEdit:true : !flagPageEdit }
|
|
|
|
|