dfc0e190 by zhangmeng

高中生报名

1 parent 3a5fe9f7
......@@ -438,7 +438,8 @@ function submitForm() {
for (const s of signInfoList.value) {
const student=s.signInfo.some(val=>val.cptProjectName.indexOf('大学生')>-1)
if (student){
const gaoStudent=s.signInfo.some(val=>val.cptProjectName.indexOf('高中')>-1)
if (student||gaoStudent){
if (s.extraPersonInfo == null) {
ElMessage.warning(language.value == 0 ? '请完善补充信息' : 'Please fill in the supplementary information')
tableType.value = 0
......@@ -716,6 +717,7 @@ function goMySign() {
const goPersonInfo = (row) => {
// 完善补充信息
const flag= row.signInfo.some(val=>val.cptProjectName.indexOf('大学生')>-1)
const flag2=row.signInfo.some(val=>val.cptProjectName.indexOf('高中')>-1)
const participantsInfoArr=_.cloneDeep(extraform.value)
if (flag){
......@@ -725,10 +727,18 @@ const goPersonInfo = (row) => {
}
}
}
if (flag2){
for (const val of participantsInfoArr) {
if(val.name.indexOf('学生证')>-1){
val.status=0
}
}
}
const params = {
matchId: matchId.value,
title: language.value == 0 ? '完善补充信息' : 'Complete the supplementary information',
participantsInfoArr: flag?participantsInfoArr: extraform.value,
participantsInfoArr: flag||flag2?participantsInfoArr: extraform.value,
personId: row.personInfo.id,
extraId: row.extraPersonInfo?.id || 0,
isNational: isNational.value
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!