Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
jijin
/
dance-pc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
0552625c
authored
2026-06-26 20:57:29 +0800
by
zhangmeng
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
高中生报名
1 parent
ff58cc11
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
19 deletions
src/viewsPc/match/chooseSportsman.vue
src/viewsPc/match/components/signInfo-table.vue
src/viewsPc/match/chooseSportsman.vue
View file @
0552625
...
...
@@ -720,29 +720,23 @@ const goPersonInfo = (row) => {
const
flag2
=
row
.
signInfo
.
some
(
val
=>
val
.
cptProjectName
.
indexOf
(
'高中'
)
>-
1
)
const
participantsInfoArr
=
_
.
cloneDeep
(
extraform
.
value
)
if
(
flag
){
for
(
const
val
of
participantsInfoArr
)
{
if
(
flag
){
if
(
val
.
name
.
indexOf
(
'学生证'
)
>-
1
||
val
.
name
.
indexOf
(
'毕业证'
)
>-
1
){
val
.
status
=
0
}
else
{
val
.
status
=
1
}
}
}
if
(
flag2
){
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'
,
participantsInfoArr
:
flag
||
flag2
?
participantsInfoArr
:
extraform
.
value
,
participantsInfoArr
:
flag
||
flag2
?
participantsInfoArr
:
_
.
cloneDeep
(
extraform
.
value
)
,
personId
:
row
.
personInfo
.
id
,
extraId
:
row
.
extraPersonInfo
?.
id
||
0
,
isNational
:
isNational
.
value
...
...
src/viewsPc/match/components/signInfo-table.vue
View file @
0552625
...
...
@@ -4,13 +4,13 @@
</div>
<!-- 参赛人员清单-->
<el-table
v-loading=
"loading"
:data=
"list"
:sum-text=
"sumText"
border
style=
"width: 100%"
>
<el-table-column
:label=
"language==0?'序号':'Index'"
align=
"center"
type=
"index"
width=
"70"
/>
<el-table-column
:label=
"language==0?'序号':'Index'"
align=
"center"
type=
"index"
width=
"70"
/>
<el-table-column
v-if=
"!isNational"
:label=
"language==0?'姓名':'Real Name'"
align=
"center"
min-width=
"100"
prop=
"personInfo.realName"
/>
<el-table-column
v-if=
"isNational"
:label=
"language==0?'姓氏':'Surname'"
min-width=
"100"
prop=
"personInfo.xing"
/>
<el-table-column
v-if=
"isNational"
:label=
"language==0?'名':'Name'"
min-width=
"100"
prop=
"personInfo.ming"
/>
<el-table-column
v-if=
"isNational"
:label=
"language==0?'姓氏':'Surname'"
min-width=
"100"
prop=
"personInfo.xing"
/>
<el-table-column
v-if=
"isNational"
:label=
"language==0?'名':'Name'"
min-width=
"100"
prop=
"personInfo.ming"
/>
<el-table-column
:label=
"language==0?'所属国家/地区':'Country'"
align=
"center"
header-align=
"center"
min-width=
"120"
...
...
@@ -20,7 +20,7 @@
<span
v-if=
"scope.row.personInfo.representing"
>
{{
scope
.
row
.
personInfo
.
representing
}}
</span>
</
template
>
</el-table-column>
<el-table-column
:label=
"language==0?'性别':'Gender'"
align=
"center"
prop=
"personInfo.sexStr"
/>
<el-table-column
:label=
"language==0?'性别':'Gender'"
align=
"center"
prop=
"personInfo.sexStr"
/>
<el-table-column
v-if=
"!isNational"
:label=
"language==0?'证件类型':'ID Type'"
:width=
"language==0?'':'140'"
align=
"center"
header-align=
"center"
prop=
"personInfo.idcTypeStr"
...
...
@@ -108,7 +108,8 @@
</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&&handelRules(scope.row)"
link
type=
"primary"
@
click=
"goPersonInfo(scope.row)"
>
<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>
...
...
@@ -132,7 +133,7 @@
<
script
setup
>
import
*
as
match
from
'@/apiPc/match'
import
{
ref
}
from
'vue'
import
{
ref
}
from
'vue'
const
emit
=
defineEmits
([
'editExtra'
])
const
props
=
defineProps
({
...
...
@@ -164,7 +165,7 @@ const props = defineProps({
default
:
0
}
})
import
{
useStorage
}
from
'@vueuse/core/index'
import
{
useStorage
}
from
'@vueuse/core/index'
const
language
=
useStorage
(
'language'
,
0
)
const
extraTableHead
=
ref
([])
...
...
@@ -184,12 +185,15 @@ function getTableHead() {
})
}
function
handelRules
(
row
){
return
row
.
signInfo
.
some
(
val
=>
val
.
cptProjectName
?.
indexOf
(
'大学生'
)
>-
1
||
val
.
cptProjectName
?.
indexOf
(
'高中'
)
>-
1
)
function
handelRules
(
row
)
{
const
flag
=
row
.
signInfo
.
some
(
val
=>
val
.
cptProjectName
?.
indexOf
(
'大学生'
)
>
-
1
||
val
.
cptProjectName
?.
indexOf
(
'高中'
)
>
-
1
)
const
status
=
props
.
extraform
.
some
(
val
=>
val
.
status
==
0
)
return
flag
||
status
// return true
}
function
getMatch
()
{
match
.
getMatchById
({
id
:
props
.
matchId
}).
then
(
res
=>
{
match
.
getMatchById
({
id
:
props
.
matchId
}).
then
(
res
=>
{
if
(
res
.
data
.
languageSource
==
'100'
)
{
isNational
.
value
=
false
}
else
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment