26c826fd by zhangmeng

Merge branch 'devCop' into dev

# Conflicts:
#	vite.config.js
2 parents cc15a2ad 771e5ba2
...@@ -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) {
353 for (const ath of athletesList.value) { 352 for (const ath of athletesList.value) {
354 if (isNational.value && !ath.phone) { 353 if (!isNational.value) {
355 ath.disabled = true
356 } else {
357 ath.disabled = false 354 ath.disabled = false
355 ath.ocrFlag = 1
358 } 356 }
359 } 357 // if (isNational.value && !ath.phone) {
360 console.log(athletesList.value) 358 // ath.disabled = true
359 // } else {
360 // ath.disabled = false
361 // }
361 } 362 }
362 }) 363 })
363 } 364 }
...@@ -525,6 +526,7 @@ function chooseSportman() { ...@@ -525,6 +526,7 @@ function chooseSportman() {
525 } 526 }
526 527
527 function handelOption(id) { 528 function handelOption(id) {
529 if (isNational.value) {
528 const flag = choosedchoosed.value.some(v => v == id) 530 const flag = choosedchoosed.value.some(v => v == id)
529 if (flag) { 531 if (flag) {
530 const ocr = athletesList.value.find(v => v.id === id) || {} 532 const ocr = athletesList.value.find(v => v.id === id) || {}
...@@ -536,7 +538,7 @@ function handelOption(id) { ...@@ -536,7 +538,7 @@ function handelOption(id) {
536 : 'You can complete athletes details through [Athlete Manage') 538 : 'You can complete athletes details through [Athlete Manage')
537 } 539 }
538 } 540 }
539 541 }
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([
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!