|
|
@ -168,6 +168,13 @@ export const validateOjForm = (props, type, cb) => {
|
|
|
|
tcValidResult.push(tempObj);
|
|
|
|
tcValidResult.push(tempObj);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(ojForm.timeLimit===null){
|
|
|
|
|
|
|
|
hasSuccess = false;
|
|
|
|
|
|
|
|
notification['error']({
|
|
|
|
|
|
|
|
message: '提示',
|
|
|
|
|
|
|
|
description: '时间限制必须输入!'
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
// if (testCases.length === 0) {
|
|
|
|
// if (testCases.length === 0) {
|
|
|
|
// hasSuccess = false;
|
|
|
|
// hasSuccess = false;
|
|
|
|
// notification['error']({
|
|
|
|
// notification['error']({
|
|
|
|