flx:修复特殊作业校验问题
This commit is contained in:
parent
ca62341f38
commit
9f0169daa9
@ -125,8 +125,9 @@
|
||||
const dataList = Object.values(this.modelValue);
|
||||
const result = dataList[0][dataList[0].length - 1];
|
||||
// console.log(4444444, JSON.stringify(this.modelValue))
|
||||
const flag = this.formFields[this.formFields.length - 1].props.columns.every((v, i)=> {
|
||||
const flag = this.formFields[this.formFields.length - 1].props.columns ? this.formFields[this.formFields.length - 1].props.columns.every((v, i)=> {
|
||||
if((i == this.formFields[this.formFields.length - 1].props.columns.length - 1) && result[v.id]){
|
||||
// console.log(result[v.id])
|
||||
if(result[v.id][0].id){
|
||||
return true
|
||||
} else {
|
||||
@ -139,8 +140,8 @@
|
||||
return
|
||||
}
|
||||
return v.props.required == false || (v.props.required == true && result[v.id] != null);
|
||||
});
|
||||
// console.log(3333333, flag)
|
||||
}) : true;
|
||||
console.log(3333333, flag)
|
||||
call(flag)
|
||||
console.log('表单数据信息:', JSON.stringify(res));
|
||||
}).catch(err => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user