高中生报名
Showing
2 changed files
with
13 additions
and
5 deletions
| ... | @@ -724,6 +724,8 @@ const goPersonInfo = (row) => { | ... | @@ -724,6 +724,8 @@ const goPersonInfo = (row) => { |
| 724 | for (const val of participantsInfoArr) { | 724 | for (const val of participantsInfoArr) { |
| 725 | if(val.name.indexOf('学生证')>-1||val.name.indexOf('毕业证')>-1){ | 725 | if(val.name.indexOf('学生证')>-1||val.name.indexOf('毕业证')>-1){ |
| 726 | val.status=0 | 726 | val.status=0 |
| 727 | }else{ | ||
| 728 | val.status=1 | ||
| 727 | } | 729 | } |
| 728 | } | 730 | } |
| 729 | } | 731 | } |
| ... | @@ -731,10 +733,12 @@ const goPersonInfo = (row) => { | ... | @@ -731,10 +733,12 @@ const goPersonInfo = (row) => { |
| 731 | for (const val of participantsInfoArr) { | 733 | for (const val of participantsInfoArr) { |
| 732 | if(val.name.indexOf('学生证')>-1){ | 734 | if(val.name.indexOf('学生证')>-1){ |
| 733 | val.status=0 | 735 | val.status=0 |
| 736 | }else{ | ||
| 737 | val.status=1 | ||
| 734 | } | 738 | } |
| 735 | } | 739 | } |
| 736 | } | 740 | } |
| 737 | 741 | debugger | |
| 738 | const params = { | 742 | const params = { |
| 739 | matchId: matchId.value, | 743 | matchId: matchId.value, |
| 740 | title: language.value == 0 ? '完善补充信息' : 'Complete the supplementary information', | 744 | title: language.value == 0 ? '完善补充信息' : 'Complete the supplementary information', | ... | ... |
| ... | @@ -108,10 +108,10 @@ | ... | @@ -108,10 +108,10 @@ |
| 108 | </el-table-column> | 108 | </el-table-column> |
| 109 | <el-table-column v-if="hasAction" :label="language==0?'操作':'Actions'" align="center" fixed="right" width="150"> | 109 | <el-table-column v-if="hasAction" :label="language==0?'操作':'Actions'" align="center" fixed="right" width="150"> |
| 110 | <template #default="scope"> | 110 | <template #default="scope"> |
| 111 | <el-button v-if="extraform&&extraform.length>0" link type="primary" @click="goPersonInfo(scope.row)"> | 111 | <el-button v-if="extraform&&extraform.length>0&&handelRules(scope.row)" link type="primary" @click="goPersonInfo(scope.row)"> |
| 112 | <span v-if="scope.row.extraPersonInfo">{{ language == 0 ? '修改' : 'Edit' }}</span> | 112 | <span v-if="scope.row.extraPersonInfo">{{ language == 0 ? '修改' : 'Edit' }}</span> |
| 113 | <span v-else class="red">{{ language == 0 ? '完善补充信息' : 'Additional Information' }}</span> | 113 | <span v-else class="red">{{ language == 0 ? '完善补充信息' : 'Additional Information' }}</span> |
| 114 | </el-button> | 114 | </el-button> |
| 115 | </template> | 115 | </template> |
| 116 | </el-table-column> | 116 | </el-table-column> |
| 117 | </el-table> | 117 | </el-table> |
| ... | @@ -184,6 +184,10 @@ function getTableHead() { | ... | @@ -184,6 +184,10 @@ function getTableHead() { |
| 184 | }) | 184 | }) |
| 185 | } | 185 | } |
| 186 | 186 | ||
| 187 | function handelRules(row){ | ||
| 188 | return row.signInfo.some(val=>val.cptProjectName?.indexOf('大学生')>-1||val.cptProjectName?.indexOf('高中')>-1) | ||
| 189 | } | ||
| 190 | |||
| 187 | function getMatch() { | 191 | function getMatch() { |
| 188 | match.getMatchById({ id: props.matchId }).then(res => { | 192 | match.getMatchById({ id: props.matchId }).then(res => { |
| 189 | if (res.data.languageSource == '100') { | 193 | if (res.data.languageSource == '100') { | ... | ... |
-
Please register or sign in to post a comment