【fix】 修复活动邀请模块的错误信息描述

This commit is contained in:
tian.guangyuan
2020-05-14 09:37:15 +08:00
parent 6edf2f708c
commit 25b73b3960
2 changed files with 10 additions and 3 deletions

View File

@@ -89,7 +89,7 @@ export default {
return item.name return item.name
}) })
if (arr.length != Array.from(new Set(arr)).length) { if (arr.length != Array.from(new Set(arr)).length) {
return this.$toast('您孩子的姓名不能重复') return this.$toast('该子女信息已存在,请勿重复添加')
} }
let feachData = { let feachData = {
childrenList: this.childrenList childrenList: this.childrenList

View File

@@ -41,12 +41,19 @@ export default {
}, },
methods: { methods: {
next() { next() {
let num = this.childrenList.length;
for (let child of this.childrenList) { for (let child of this.childrenList) {
console.log(child); // console.log(child);
if (child.imgPath == '' || child.imgPath == null) { if (child.imgPath == '' || child.imgPath == null) {
return this.$toast('请上传' + child.name + '的作品') // return this.$toast('请上传' + child.name + '的作品')
i--
} }
} }
if(num == 0){
return this.$toast('子女参赛作品不能为空')
}else if(num < this.childrenList.length){
return this.$toast('您上传的作品信息与子女数量不符,请补充后再进行提交!')
}
let feachData = {} let feachData = {}
Object.assign(feachData, this.childInfo) Object.assign(feachData, this.childInfo)
feachData.childrenList = this.childrenList feachData.childrenList = this.childrenList