This commit is contained in:
2025-09-05 17:16:55 +08:00
parent 609a959e58
commit 576b70634c
@@ -2102,20 +2102,20 @@ layout("/layouts/platform.html"){
})
//判断每一个选手填写的是否正确
for (let i = 0; i < appliedData.length; i++) {
/* if (!appliedData[i].position) {
this.$message.warning("请填写完整职称职务!")
return
}
if (!appliedData[i].mobile) {
this.$message.warning("请填写手机号!")
return
} else {
const phoneRegex = /^1[3-9]\d{9}$/;
if (!phoneRegex.test(appliedData[i].mobile)) {
this.$message.warning("手机号填写不正确!")
return
}
}*/
if (!appliedData[i].position) {
this.$message.warning("请填写完整职称职务!")
return
}
if (!appliedData[i].mobile) {
this.$message.warning("请填写手机号!")
return
} else {
const phoneRegex = /^1[3-9]\d{9}$/;
if (!phoneRegex.test(appliedData[i].mobile)) {
this.$message.warning("手机号填写不正确!")
return
}
}
}
if (this.appliedData3.length == 0 && this.appliedData.length == 0) {