dev_forum
hjm 6 years ago
parent d776751997
commit fbd6f3fe5d

@ -1018,7 +1018,7 @@ class CommonWorkSetting extends Component{
placeholder="请选择发布时间" placeholder="请选择发布时间"
id={"startime"} id={"startime"}
width={"210px"} width={"210px"}
value={publish_time===null||publish_time===""?"":moment(publish_time, dateFormat)} value={!publish_time?"":moment(publish_time, dateFormat)}
onChange={this.onChangeTimepublish} onChange={this.onChangeTimepublish}
// disabled={this.props.isSuperAdmin()?false:publish_time_type===true?true:false} // disabled={this.props.isSuperAdmin()?false:publish_time_type===true?true:false}
disabled={moment(this.state.init_publish_time) < moment() || noAuth} disabled={moment(this.state.init_publish_time) < moment() || noAuth}
@ -1048,7 +1048,7 @@ class CommonWorkSetting extends Component{
placeholder="请选择截止时间" placeholder="请选择截止时间"
id={"endTime"} id={"endTime"}
width={"210px"} width={"210px"}
value={end_time===null||end_time===""?"":moment(end_time, dateFormat)} value={!end_time?"":moment(end_time, dateFormat)}
onChange={this.onChangeTimeend} onChange={this.onChangeTimeend}
disabled={this.props.isSuperAdmin()?false:end_time_type===true?true:false} disabled={this.props.isSuperAdmin()?false:end_time_type===true?true:false}
disabled={moment(this.state.init_end_time) < moment() || noAuth} disabled={moment(this.state.init_end_time) < moment() || noAuth}
@ -1117,7 +1117,7 @@ class CommonWorkSetting extends Component{
placeholder="请选择结束时间" placeholder="请选择结束时间"
id={"enTime"} id={"enTime"}
width={"210px"} width={"210px"}
value={late_time===null||late_time===""? undefined :moment(late_time, dateFormat)} value={!late_time ? undefined :moment(late_time, dateFormat)}
onChange={this.onChangeTimelatetime} onChange={this.onChangeTimelatetime}
disabledTime={disabledDateTime} disabledTime={disabledDateTime}
disabled={!allow_late || noAuth || moment(init_late_time) < moment()} disabled={!allow_late || noAuth || moment(init_late_time) < moment()}
@ -1165,7 +1165,7 @@ class CommonWorkSetting extends Component{
placeholder="请选择匿名开启时间" placeholder="请选择匿名开启时间"
id={"startime"} id={"startime"}
width={"210px"} width={"210px"}
value={evaluation_start===null||evaluation_start===""?"":moment(evaluation_start, dateFormat)} value={!evaluation_start ?"":moment(evaluation_start, dateFormat)}
onChange={this.onChangeEvaluationStart} onChange={this.onChangeEvaluationStart}
disabled={ (anonymous_comment && !noAuth ? false : true) || moment(init_evaluation_start) < moment() } disabled={ (anonymous_comment && !noAuth ? false : true) || moment(init_evaluation_start) < moment() }
// disabledDate={ (evaluation_start) => // disabledDate={ (evaluation_start) =>
@ -1194,7 +1194,7 @@ class CommonWorkSetting extends Component{
placeholder="请选择匿名结束时间" placeholder="请选择匿名结束时间"
id={"endtime"} id={"endtime"}
width={"210px"} width={"210px"}
value={evaluation_end===null||evaluation_end===""?"":moment(evaluation_end, dateFormat)} value={!evaluation_end ?"":moment(evaluation_end, dateFormat)}
onChange={this.onChangeEvaluationEnd} onChange={this.onChangeEvaluationEnd}
disabledTime={disabledDateTime} disabledTime={disabledDateTime}
disabled={(anonymous_comment && !noAuth ? false : true) || moment(init_evaluation_end) < moment()} disabled={(anonymous_comment && !noAuth ? false : true) || moment(init_evaluation_end) < moment()}
@ -1289,7 +1289,7 @@ class CommonWorkSetting extends Component{
placeholder="请选择申诉结束时间" placeholder="请选择申诉结束时间"
id={"endtime"} id={"endtime"}
width={"210px"} width={"210px"}
value={appeal_time===null||appeal_time===""?"":moment(appeal_time, dateFormat)} value={!appeal_time?"":moment(appeal_time, dateFormat)}
onChange={this.appeal_time_change} onChange={this.appeal_time_change}
disabled={ (anonymous_appeal && !noAuth ? false : true) || moment(init_appeal_time) < moment()} disabled={ (anonymous_appeal && !noAuth ? false : true) || moment(init_appeal_time) < moment()}
/> />

Loading…
Cancel
Save