ff58cc11 by zhangmeng

高中生报名

1 parent dfc0e190
......@@ -724,6 +724,8 @@ const goPersonInfo = (row) => {
for (const val of participantsInfoArr) {
if(val.name.indexOf('学生证')>-1||val.name.indexOf('毕业证')>-1){
val.status=0
}else{
val.status=1
}
}
}
......@@ -731,10 +733,12 @@ const goPersonInfo = (row) => {
for (const val of participantsInfoArr) {
if(val.name.indexOf('学生证')>-1){
val.status=0
}else{
val.status=1
}
}
}
debugger
const params = {
matchId: matchId.value,
title: language.value == 0 ? '完善补充信息' : 'Complete the supplementary information',
......
......@@ -108,10 +108,10 @@
</el-table-column>
<el-table-column v-if="hasAction" :label="language==0?'操作':'Actions'" align="center" fixed="right" width="150">
<template #default="scope">
<el-button v-if="extraform&&extraform.length>0" link type="primary" @click="goPersonInfo(scope.row)">
<span v-if="scope.row.extraPersonInfo">{{ language == 0 ? '修改' : 'Edit' }}</span>
<span v-else class="red">{{ language == 0 ? '完善补充信息' : 'Additional Information' }}</span>
</el-button>
<el-button v-if="extraform&&extraform.length>0&&handelRules(scope.row)" link type="primary" @click="goPersonInfo(scope.row)">
<span v-if="scope.row.extraPersonInfo">{{ language == 0 ? '修改' : 'Edit' }}</span>
<span v-else class="red">{{ language == 0 ? '完善补充信息' : 'Additional Information' }}</span>
</el-button>
</template>
</el-table-column>
</el-table>
......@@ -184,6 +184,10 @@ function getTableHead() {
})
}
function handelRules(row){
return row.signInfo.some(val=>val.cptProjectName?.indexOf('大学生')>-1||val.cptProjectName?.indexOf('高中')>-1)
}
function getMatch() {
match.getMatchById({ id: props.matchId }).then(res => {
if (res.data.languageSource == '100') {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!