|
|
@ -142,17 +142,24 @@ export const validateOjForm = (props, type, cb) => {
|
|
|
|
// 非空校验
|
|
|
|
// 非空校验
|
|
|
|
let validateResult = emptyValidate(key, value);
|
|
|
|
let validateResult = emptyValidate(key, value);
|
|
|
|
const errMsg = validateResult[key].errMsg;
|
|
|
|
const errMsg = validateResult[key].errMsg;
|
|
|
|
if (errMsg) {
|
|
|
|
// console.log("-------");
|
|
|
|
hasSuccess = false;
|
|
|
|
// console.log(errMsg);
|
|
|
|
|
|
|
|
// console.log(key);
|
|
|
|
if(tcbool===false){
|
|
|
|
// console.log(value);
|
|
|
|
tcbool=true
|
|
|
|
|
|
|
|
notification['error']({
|
|
|
|
if (errMsg) {
|
|
|
|
message: '提示',
|
|
|
|
if(key==="output"){
|
|
|
|
description: '测试用例必须填写输出!'
|
|
|
|
hasSuccess = false;
|
|
|
|
});
|
|
|
|
if(tcbool===false){
|
|
|
|
|
|
|
|
tcbool=true
|
|
|
|
|
|
|
|
notification['error']({
|
|
|
|
|
|
|
|
message: '提示',
|
|
|
|
|
|
|
|
description: '测试用例必须填写输出!'
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// 唯一性校验
|
|
|
|
// 唯一性校验
|
|
|
|