我们平时提交表单的时候 需要用户填写所有信息
judgeObjectComplete(ObjectValue) {
let flag = new Boolean()
flag = true
for (let key in ObjectValue) {
if (ObjectValue[key]) {} else {
flag = false
}
}
if (!flag) {
return false
} else {
return true
}
},
judgeListComplete(list) {
let isNotComplete = list.findIndex(item => {
return this.judgeObjectComplete(item) === false
})
if (isNotComplete > -1) {
return false
} else {
return true
}
},