Commit 5d01820f by maolipeng

fix:默认时间+5分钟

parent ea6675dd
......@@ -64,7 +64,7 @@ export default function AddLiveClassInfoWorkWX(props) {
// setBeginDate(moment().startOf('day').valueOf())
// } else {
let _begindate = date.startOf('day').valueOf();
let _begintime = moment(beginTime)
let _begintime = beginTime === 0 ? moment().add(5,'minutes') : moment(beginTime)
let datetime = _begindate+(_begintime.hour()*60+_begintime.minute())*60*1000
setBeginTime(datetime)
props.onChange("beginTime",datetime)
......@@ -246,7 +246,7 @@ export default function AddLiveClassInfoWorkWX(props) {
style={{width:"180px"}}
/>
<TimePicker
value={endTime === 0?undefined:moment(endTime)}
value={endTime === 0?moment().add(5,'minutes'):moment(endTime)}
onChange={onEndTimeChange}
onOk={onEndTimeOK}
allowClear={false}
......@@ -272,11 +272,11 @@ export default function AddLiveClassInfoWorkWX(props) {
</div>
<div className="teacher item">
<span className="label"><span className="require">*</span>讲师:</span>
<div id="teacherId" style={_.find(props.exItems,(item)=>{return item === "teacherId"})?{border:"1px solid red",display:"inline-block"}:{display:"inline-block"}}>
<Select
value={teacherId}
onChange={onTeacherChange}
style={{width:"240px"}}
style={_.find(props.exItems,(item)=>{return item === "teacherId"})?{width:"240px",border:"1px solid red"}:{width:"240px"}}
placeholder="请选择讲师"
disabled={!props.isEdit ? true: false}
filterOption={(input, option) => option}
......@@ -314,7 +314,6 @@ export default function AddLiveClassInfoWorkWX(props) {
}
</Select>
</div>
</div>
<div className="remind-time item">
<span className="label"><span className="require">*</span>提醒时间:</span>
<Select onChange={onRemindChange} placeholder={"15分钟前"} style={{width:"130px"}}>
......
......@@ -14,4 +14,7 @@
.introduce {
display: flex;
}
// .ant-select:not(.ant-select-disabled):hover .ant-select-selector{
// border: none;
// }
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment