|
|
@ -142,9 +142,14 @@ 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;
|
|
|
|
|
|
|
|
// console.log("-------");
|
|
|
|
|
|
|
|
// console.log(errMsg);
|
|
|
|
|
|
|
|
// console.log(key);
|
|
|
|
|
|
|
|
// console.log(value);
|
|
|
|
|
|
|
|
|
|
|
|
if (errMsg) {
|
|
|
|
if (errMsg) {
|
|
|
|
|
|
|
|
if(key==="output"){
|
|
|
|
hasSuccess = false;
|
|
|
|
hasSuccess = false;
|
|
|
|
|
|
|
|
|
|
|
|
if(tcbool===false){
|
|
|
|
if(tcbool===false){
|
|
|
|
tcbool=true
|
|
|
|
tcbool=true
|
|
|
|
notification['error']({
|
|
|
|
notification['error']({
|
|
|
@ -153,6 +158,8 @@ export const validateOjForm = (props, type, cb) => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// 唯一性校验
|
|
|
|
// 唯一性校验
|
|
|
|