Compare commits

..

No commits in common. "504b23f7bb2ed35b8c9d987bf98e504f71a78080" and "0e25699153965cedebd72971e9b9c3877b3d65b4" have entirely different histories.

View File

@ -62,17 +62,13 @@ class SEConfigPage extends React.Component {
} }
onSave = () => { onSave = () => {
let data = JSON.parse(JSON.stringify(this.state.data)); let data = JSON.parse(JSON.stringify(this.state.data));
// if (data.DEP_TRAIN_PLAN_END_TIME && data.DEP_TRAIN_PLAN_START_TIME) { if (data.DEP_TRAIN_PLAN_END_TIME && data.DEP_TRAIN_PLAN_START_TIME) {
// let s = new Date(data.DEP_TRAIN_PLAN_START_TIME); let s = new Date(data.DEP_TRAIN_PLAN_START_TIME);
// let e = new Date(data.DEP_TRAIN_PLAN_END_TIME); let e = new Date(data.DEP_TRAIN_PLAN_END_TIME);
// if (e.getTime() - s.getTime() < 1 * 24 * 60 * 60 * 1000) { if (e.getTime() - s.getTime() < 1 * 24 * 60 * 60 * 1000) {
// message.error('截止时间至少比开始时间大一天'); message.error('截止时间至少比开始时间大一天');
// return; return;
// } }
// }
if (!data.DEP_TRAIN_PLAN_START_TIME) {
message.error('请填写公司培训计划触发时间');
return;
} }
if (!data.ID) { if (!data.ID) {
data.ID = guid(); data.ID = guid();