dev_aliyun2
杨树林 5 years ago committed by harry
parent aa26eed52f
commit 9febd93e57

@ -168,13 +168,39 @@ export const validateOjForm = (props, type, cb) => {
tcValidResult.push(tempObj); tcValidResult.push(tempObj);
}); });
if(ojForm.timeLimit===null){ try {
hasSuccess = false; if(ojForm.sub_discipline_id.length===0){
notification['error']({ hasSuccess = false;
message: '提示', notification['error']({
description: '时间限制必须输入!' message: '提示',
}); description: '课程必须选择!'
} });
}else if(ojForm.timeLimit===null){
hasSuccess = false;
notification['error']({
message: '提示',
description: '时间限制必须输入!'
});
} else if(ojForm.name.length===0){
hasSuccess = false;
notification['error']({
message: '提示',
description: '任务名称必须输入!'
});
}else if(ojForm.description.length===0){
hasSuccess = false;
notification['error']({
message: '提示',
description: '描述必须输入!'
});
}
}catch (e) {
}
// if (testCases.length === 0) { // if (testCases.length === 0) {
// hasSuccess = false; // hasSuccess = false;
// notification['error']({ // notification['error']({

Loading…
Cancel
Save