完善信息
Showing
2 changed files
with
23 additions
and
21 deletions
| ... | @@ -296,7 +296,7 @@ const data = reactive({ | ... | @@ -296,7 +296,7 @@ const data = reactive({ |
| 296 | projectQuery: {}, tableType: 1, | 296 | projectQuery: {}, tableType: 1, |
| 297 | currProjectId: '', | 297 | currProjectId: '', |
| 298 | openTour: false, | 298 | openTour: false, |
| 299 | isNational: false, | 299 | isNational: false, // 是否为国际赛 |
| 300 | languageSource: '', singlePersonEntryLimit: '', doublePersonEntryLimit: '' | 300 | languageSource: '', singlePersonEntryLimit: '', doublePersonEntryLimit: '' |
| 301 | }) | 301 | }) |
| 302 | const { | 302 | const { |
| ... | @@ -349,15 +349,16 @@ function getAthletesList() { | ... | @@ -349,15 +349,16 @@ function getAthletesList() { |
| 349 | match.getGroupPersonList({ label: '0' }, groupId.value).then(res => { | 349 | match.getGroupPersonList({ label: '0' }, groupId.value).then(res => { |
| 350 | athletesList.value = res.rows | 350 | athletesList.value = res.rows |
| 351 | 351 | ||
| 352 | if (!isNational.value) { | 352 | for (const ath of athletesList.value) { |
| 353 | for (const ath of athletesList.value) { | 353 | if (!isNational.value) { |
| 354 | if (isNational.value && !ath.phone) { | 354 | ath.disabled = false |
| 355 | ath.disabled = true | 355 | ath.ocrFlag = 1 |
| 356 | } else { | ||
| 357 | ath.disabled = false | ||
| 358 | } | ||
| 359 | } | 356 | } |
| 360 | console.log(athletesList.value) | 357 | // if (isNational.value && !ath.phone) { |
| 358 | // ath.disabled = true | ||
| 359 | // } else { | ||
| 360 | // ath.disabled = false | ||
| 361 | // } | ||
| 361 | } | 362 | } |
| 362 | }) | 363 | }) |
| 363 | } | 364 | } |
| ... | @@ -525,18 +526,19 @@ function chooseSportman() { | ... | @@ -525,18 +526,19 @@ function chooseSportman() { |
| 525 | } | 526 | } |
| 526 | 527 | ||
| 527 | function handelOption(id) { | 528 | function handelOption(id) { |
| 528 | const flag = choosedchoosed.value.some(v => v == id) | 529 | if (isNational.value) { |
| 529 | if (flag) { | 530 | const flag = choosedchoosed.value.some(v => v == id) |
| 530 | const ocr = athletesList.value.find(v => v.id === id) || {} | 531 | if (flag) { |
| 531 | if (ocr.disabled || ocr.ocrFlag == 0) { | 532 | const ocr = athletesList.value.find(v => v.id === id) || {} |
| 532 | choosedchoosed.value = choosedchoosed.value.filter(v => v != id) | 533 | if (ocr.disabled || ocr.ocrFlag == 0) { |
| 533 | return proxy.$modal.confirm( | 534 | choosedchoosed.value = choosedchoosed.value.filter(v => v != id) |
| 534 | language.value == 0 | 535 | return proxy.$modal.confirm( |
| 535 | ? '请到选手管理完善信息' | 536 | language.value == 0 |
| 536 | : 'You can complete athletes details through [Athlete Manage') | 537 | ? '请到选手管理完善信息' |
| 538 | : 'You can complete athletes details through [Athlete Manage') | ||
| 539 | } | ||
| 537 | } | 540 | } |
| 538 | } | 541 | } |
| 539 | |||
| 540 | getProjectList() | 542 | getProjectList() |
| 541 | } | 543 | } |
| 542 | 544 | ... | ... |
| ... | @@ -97,7 +97,7 @@ | ... | @@ -97,7 +97,7 @@ |
| 97 | <el-table-column :label="language==0?'操作':'Actions'" align="center" fixed="right" width="180"> | 97 | <el-table-column :label="language==0?'操作':'Actions'" align="center" fixed="right" width="180"> |
| 98 | <template #default="scope"> | 98 | <template #default="scope"> |
| 99 | <el-button | 99 | <el-button |
| 100 | v-if="(!isNational&&(!scope.row.phone))||scope.row.ocrFlag=='0'" link type="danger" | 100 | v-if="isNational&&scope.row.ocrFlag=='0'" link type="danger" |
| 101 | @click="editPerson(scope.row)" | 101 | @click="editPerson(scope.row)" |
| 102 | > | 102 | > |
| 103 | {{ language == 0 ? '完善信息' : 'Complete' }} | 103 | {{ language == 0 ? '完善信息' : 'Complete' }} |
| ... | @@ -159,7 +159,7 @@ const data = reactive({ | ... | @@ -159,7 +159,7 @@ const data = reactive({ |
| 159 | title: '选择运动员', | 159 | title: '选择运动员', |
| 160 | noPhotoCanSign: 0, | 160 | noPhotoCanSign: 0, |
| 161 | total: 0, | 161 | total: 0, |
| 162 | isNational: false | 162 | isNational: false// 是否国际赛 |
| 163 | }) | 163 | }) |
| 164 | const { query, tableData, show, title, loading, noPhotoCanSign, total, isNational } = toRefs(data) | 164 | const { query, tableData, show, title, loading, noPhotoCanSign, total, isNational } = toRefs(data) |
| 165 | const certificates = ref([ | 165 | const certificates = ref([ | ... | ... |
-
Please register or sign in to post a comment