测试用例判断

video_transcode
杨树林 5 years ago
parent cd2d87c5b2
commit 1a2461eacd

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

Loading…
Cancel
Save