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
34186cd5
authored
2024-06-11 09:51:06 +0800
by
杨炀
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
faeca840
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
src/viewsPc/match/chooseSportsman.vue
src/viewsPc/match/components/allSportsmanList.vue
src/viewsPc/match/chooseSportsman.vue
View file @
34186cd
...
...
@@ -243,7 +243,7 @@ const data = reactive({
currProjectId
:
''
,
openTour
:
false
,
isNational
:
false
,
languageSource
:
''
,
singlePersonEntryLimit
:
''
languageSource
:
''
,
singlePersonEntryLimit
:
''
,
doublePersonEntryLimit
:
''
})
const
{
activeTeam
,
...
...
@@ -271,7 +271,7 @@ const {
tableType
,
zuQuery
,
openTour
,
currProjectId
,
tourCurrent
,
isNational
,
languageSource
,
singlePersonEntryLimit
tourCurrent
,
isNational
,
languageSource
,
singlePersonEntryLimit
,
doublePersonEntryLimit
}
=
toRefs
(
data
)
const
nextButtonProps
=
ref
({})
const
matchId
=
ref
(
route
.
query
.
matchId
)
...
...
@@ -306,6 +306,7 @@ function getMatch(id) {
id
:
id
}).
then
(
res
=>
{
singlePersonEntryLimit
.
value
=
res
.
data
.
singlePersonEntryLimit
doublePersonEntryLimit
.
value
=
res
.
data
.
doublePersonEntryLimit
noPhotoCanSign
.
value
=
res
.
data
.
noPhotoCanSign
coachOrLeaderFlag
.
value
=
res
.
data
.
coachOrLeaderFlag
extraform
.
value
=
JSON
.
parse
(
res
.
data
.
participantsInfo
)
...
...
@@ -584,6 +585,7 @@ let hasPlevel=''
let
hasAlmighty
=
{}
let
hasPpropertyLength
=
0
let
isDanNum
=
0
let
isShuangNum
=
0
watch
(
projectIds
,
(
newVal
,
oldVal
)
=>
{
let
currProject
=
{}
if
(
newVal
.
length
>
oldVal
.
length
)
{
...
...
@@ -601,6 +603,7 @@ watch(projectIds, (newVal, oldVal) => {
hasPlevel
=
''
hasAlmighty
=
{}
isDanNum
=
0
isShuangNum
=
0
hasPpropertyLength
=
0
for
(
let
hh
of
projectList
.
value
){
if
(
projectIds
.
value
.
indexOf
(
hh
.
id
)
>-
1
&&
hh
.
pproperty
){
...
...
@@ -616,6 +619,9 @@ watch(projectIds, (newVal, oldVal) => {
if
(
projectIds
.
value
.
indexOf
(
hh
.
id
)
>-
1
&&
hh
.
singleFlag
==
'1'
){
isDanNum
+=
1
}
if
(
projectIds
.
value
.
indexOf
(
hh
.
id
)
>-
1
&&
hh
.
doubleSingleProjectFlag
==
'1'
){
isShuangNum
+=
1
}
}
console
.
log
(
hasPproperty
,
hasPlevel
,
hasPpropertyLength
)
filterProjectList
(
currProject
)
...
...
@@ -630,7 +636,8 @@ function filterProjectList(currProject){
(
pp
.
pproperty
==
hasPproperty
)
&&
((
pp
.
danceTypeDetailStr
.
split
(
','
).
length
>=
4
&&
hasPpropertyLength
<
4
)
||
(
pp
.
danceTypeDetailStr
.
split
(
','
).
length
<
4
&&
hasPpropertyLength
>=
4
))
||
(
hasPproperty
&&
pp
.
pproperty
&&
pp
.
pproperty
!=
hasPproperty
)
||
(
hasPlevel
&&
pp
.
plevel
&&
pp
.
plevel
!=
hasPlevel
)
||
(
isDanNum
==
Number
(
singlePersonEntryLimit
.
value
)
&&
pp
.
singleFlag
==
'1'
)
||
(
isDanNum
==
Number
(
singlePersonEntryLimit
.
value
)
&&
pp
.
singleFlag
==
'1'
&&
projectIds
.
value
.
indexOf
(
pp
.
id
)
==-
1
)
||
(
isShuangNum
==
Number
(
doublePersonEntryLimit
.
value
)
&&
pp
.
doubleSingleProjectFlag
==
'1'
&&
projectIds
.
value
.
indexOf
(
pp
.
id
)
==-
1
)
){
pp
.
disabled
=
true
}
else
if
((
hasAlmighty
.
almightyFlag
==
'1'
&&
pp
.
almightyFlag
==
'1'
)
...
...
src/viewsPc/match/components/allSportsmanList.vue
View file @
34186cd
...
...
@@ -72,7 +72,7 @@
<!-- </el-table-column>-->
<el-table-column
:label=
"language==0?'操作':'Actions'"
width=
"180"
fixed=
"right"
align=
"center"
>
<
template
#
default=
"scope"
>
<el-button
link
v-if=
"!isNational&&(!scope.row.p
icUrl||!scope.row.p
hone)"
type=
"danger"
@
click=
"editPerson(scope.row)"
>
<el-button
link
v-if=
"!isNational&&(!scope.row.phone)"
type=
"danger"
@
click=
"editPerson(scope.row)"
>
{{
language
==
0
?
'完善信息'
:
'Complete'
}}
</el-button>
<el-button
link
v-else
type=
"primary"
@
click=
"editPerson(scope.row)"
>
...
...
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