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
84b1fef0
authored
2025-05-28 15:42:05 +0800
by
zhangmeng
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
个人选着
1 parent
1735197c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
src/viewsPc/match/components/allSportsmanListForPersonal.vue
src/viewsPc/match/components/allSportsmanListForPersonal.vue
View file @
84b1fef
...
...
@@ -195,6 +195,7 @@ const open = (params) => {
show
.
value
=
true
isNational
.
value
=
params
.
isNational
choosedList
=
params
.
choosedList
tableData
.
value
=
[]
getList
()
}
defineExpose
({
...
...
@@ -226,6 +227,7 @@ const selectable = (row) => {
}
}
const
getList
=
()
=>
{
console
.
log
(
user
.
userId
)
loading
.
value
=
true
getPerPersonList
(
query
.
value
,
user
.
userId
).
then
(
res
=>
{
total
.
value
=
res
.
total
...
...
@@ -249,7 +251,7 @@ function handleSelectionChange(val) {
if
(
val
.
length
==
1
)
{
handelTeammate
(
val
[
0
].
id
)
}
if
(
val
.
length
==
0
)
getList
()
// 判断是否队友
if
(
val
.
length
==
2
)
{
if
(
val
[
0
].
sex
!=
val
[
1
].
sex
)
{
...
...
@@ -277,7 +279,16 @@ async function handelTeammate(id) {
id
})
dancing
.
value
=
res
.
data
tableData
.
value
.
filter
(
p
=>
p
.
id
==
id
||
p
.
id
==
dancing
.
value
)
const
arr
=
[]
for
(
const
v
of
tableData
.
value
)
{
if
(
v
.
id
==
id
||
v
.
id
==
dancing
.
value
)
{
arr
.
push
(
v
)
}
}
tableData
.
value
=
arr
nextTick
(()
=>
{
reSetChoosed
()
})
console
.
log
(
res
)
console
.
log
(
tableData
.
value
)
}
...
...
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