dfc0e190 by zhangmeng

高中生报名

1 parent 3a5fe9f7
...@@ -438,7 +438,8 @@ function submitForm() { ...@@ -438,7 +438,8 @@ function submitForm() {
438 438
439 for (const s of signInfoList.value) { 439 for (const s of signInfoList.value) {
440 const student=s.signInfo.some(val=>val.cptProjectName.indexOf('大学生')>-1) 440 const student=s.signInfo.some(val=>val.cptProjectName.indexOf('大学生')>-1)
441 if (student){ 441 const gaoStudent=s.signInfo.some(val=>val.cptProjectName.indexOf('高中')>-1)
442 if (student||gaoStudent){
442 if (s.extraPersonInfo == null) { 443 if (s.extraPersonInfo == null) {
443 ElMessage.warning(language.value == 0 ? '请完善补充信息' : 'Please fill in the supplementary information') 444 ElMessage.warning(language.value == 0 ? '请完善补充信息' : 'Please fill in the supplementary information')
444 tableType.value = 0 445 tableType.value = 0
...@@ -716,6 +717,7 @@ function goMySign() { ...@@ -716,6 +717,7 @@ function goMySign() {
716 const goPersonInfo = (row) => { 717 const goPersonInfo = (row) => {
717 // 完善补充信息 718 // 完善补充信息
718 const flag= row.signInfo.some(val=>val.cptProjectName.indexOf('大学生')>-1) 719 const flag= row.signInfo.some(val=>val.cptProjectName.indexOf('大学生')>-1)
720 const flag2=row.signInfo.some(val=>val.cptProjectName.indexOf('高中')>-1)
719 const participantsInfoArr=_.cloneDeep(extraform.value) 721 const participantsInfoArr=_.cloneDeep(extraform.value)
720 722
721 if (flag){ 723 if (flag){
...@@ -725,10 +727,18 @@ const goPersonInfo = (row) => { ...@@ -725,10 +727,18 @@ const goPersonInfo = (row) => {
725 } 727 }
726 } 728 }
727 } 729 }
730 if (flag2){
731 for (const val of participantsInfoArr) {
732 if(val.name.indexOf('学生证')>-1){
733 val.status=0
734 }
735 }
736 }
737
728 const params = { 738 const params = {
729 matchId: matchId.value, 739 matchId: matchId.value,
730 title: language.value == 0 ? '完善补充信息' : 'Complete the supplementary information', 740 title: language.value == 0 ? '完善补充信息' : 'Complete the supplementary information',
731 participantsInfoArr: flag?participantsInfoArr: extraform.value, 741 participantsInfoArr: flag||flag2?participantsInfoArr: extraform.value,
732 personId: row.personInfo.id, 742 personId: row.personInfo.id,
733 extraId: row.extraPersonInfo?.id || 0, 743 extraId: row.extraPersonInfo?.id || 0,
734 isNational: isNational.value 744 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!