26c826fd by zhangmeng

Merge branch 'devCop' into dev

# Conflicts:
#	vite.config.js
2 parents cc15a2ad 771e5ba2
......@@ -296,7 +296,7 @@ const data = reactive({
projectQuery: {}, tableType: 1,
currProjectId: '',
openTour: false,
isNational: false,
isNational: false, // 是否为国际赛
languageSource: '', singlePersonEntryLimit: '', doublePersonEntryLimit: ''
})
const {
......@@ -349,15 +349,16 @@ function getAthletesList() {
match.getGroupPersonList({ label: '0' }, groupId.value).then(res => {
athletesList.value = res.rows
if (!isNational.value) {
for (const ath of athletesList.value) {
if (isNational.value && !ath.phone) {
ath.disabled = true
} else {
ath.disabled = false
}
for (const ath of athletesList.value) {
if (!isNational.value) {
ath.disabled = false
ath.ocrFlag = 1
}
console.log(athletesList.value)
// if (isNational.value && !ath.phone) {
// ath.disabled = true
// } else {
// ath.disabled = false
// }
}
})
}
......@@ -525,18 +526,19 @@ function chooseSportman() {
}
function handelOption(id) {
const flag = choosedchoosed.value.some(v => v == id)
if (flag) {
const ocr = athletesList.value.find(v => v.id === id) || {}
if (ocr.disabled || ocr.ocrFlag == 0) {
choosedchoosed.value = choosedchoosed.value.filter(v => v != id)
return proxy.$modal.confirm(
language.value == 0
? '请到选手管理完善信息'
: 'You can complete athletes details through [Athlete Manage')
if (isNational.value) {
const flag = choosedchoosed.value.some(v => v == id)
if (flag) {
const ocr = athletesList.value.find(v => v.id === id) || {}
if (ocr.disabled || ocr.ocrFlag == 0) {
choosedchoosed.value = choosedchoosed.value.filter(v => v != id)
return proxy.$modal.confirm(
language.value == 0
? '请到选手管理完善信息'
: 'You can complete athletes details through [Athlete Manage')
}
}
}
getProjectList()
}
......
......@@ -97,7 +97,7 @@
<el-table-column :label="language==0?'操作':'Actions'" align="center" fixed="right" width="180">
<template #default="scope">
<el-button
v-if="(!isNational&&(!scope.row.phone))||scope.row.ocrFlag=='0'" link type="danger"
v-if="isNational&&scope.row.ocrFlag=='0'" link type="danger"
@click="editPerson(scope.row)"
>
{{ language == 0 ? '完善信息' : 'Complete' }}
......@@ -159,7 +159,7 @@ const data = reactive({
title: '选择运动员',
noPhotoCanSign: 0,
total: 0,
isNational: false
isNational: false// 是否国际赛
})
const { query, tableData, show, title, loading, noPhotoCanSign, total, isNational } = toRefs(data)
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!