Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
tabulator-another-web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
tabulator-another-web
Commits
22783492
Commit
22783492
authored
Jul 20, 2025
by
xiaoye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
b032a553
Pipeline
#39246
passed with stages
in 1 minute and 50 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
src/pages/tournament.vue
src/pages/tournament.vue
+3
-3
src/script/match.ts
src/script/match.ts
+1
-1
src/script/post.ts
src/script/post.ts
+1
-1
No files found.
src/pages/tournament.vue
View file @
22783492
...
@@ -92,7 +92,7 @@
...
@@ -92,7 +92,7 @@
</uni-list-item>
</uni-list-item>
<uni-list-item
<uni-list-item
v-for =
'(i, v) in participant.array.filter(i => searcher.filterParticipant(i)).slice((participant.page - 1) * 20, participant.page * 20)'
v-for =
'(i, v) in participant.array.filter(i => searcher.filterParticipant(i)).slice((participant.page - 1) * 20, participant.page * 20)'
:title =
"i.score && match.array.findIndex(m => (m.status == 'Finished' || m.status == 'Abandoned') && (m.player1.id == i.id || m.player2.id == i.id)) > -1 ? `胜平负:$
{i.score.win +
i.score.bye
}-${i.score.draw}-${i.score.lose}` : ''"
:title =
"i.score && match.array.findIndex(m => (m.status == 'Finished' || m.status == 'Abandoned') && (m.player1.id == i.id || m.player2.id == i.id)) > -1 ? `胜平负:$
{i.score.win +
(i.quit ? 0 : i.score.bye)
}-${i.score.draw}-${i.score.lose}` : ''"
:note = "i.score
&&
match.array.findIndex(m => (m.status == 'Finished' || m.status == 'Abandoned')
&&
(m.player1.id == i.id || m.player2.id == i.id)) > -1 ? `分数:${i.score.score}\n小分:${i.score.tieBreaker}` : ''"
:note = "i.score
&&
match.array.findIndex(m => (m.status == 'Finished' || m.status == 'Abandoned')
&&
(m.player1.id == i.id || m.player2.id == i.id)) > -1 ? `分数:${i.score.score}\n小分:${i.score.tieBreaker}` : ''"
:clickable = true
:clickable = true
>
>
...
@@ -555,6 +555,7 @@
...
@@ -555,6 +555,7 @@
array
:
[]
as
Array
<
Participant
>
,
array
:
[]
as
Array
<
Participant
>
,
total
:
0
,
total
:
0
,
page
:
1
,
page
:
1
,
copyValue
:
0
,
add
:
async
()
:
Promise
<
void
>
=>
{
add
:
async
()
:
Promise
<
void
>
=>
{
// @ts-ignore
// @ts-ignore
if
(
await
Tabulator
.
Participant
.
Create
(
Mycard
.
token
,
{
name
:
participant
.
name
,
tournamentId
:
tournament
.
this
.
id
}
,
participant
.
array
))
{
if
(
await
Tabulator
.
Participant
.
Create
(
Mycard
.
token
,
{
name
:
participant
.
name
,
tournamentId
:
tournament
.
this
.
id
}
,
participant
.
array
))
{
...
@@ -665,8 +666,7 @@
...
@@ -665,8 +666,7 @@
string
+=
`[${map.get(i) ?? `
第
$
{
i
+
1
}名
`
}
][${p.name
}
]${p.qq ? `
[
$
{
p
.
qq
}
]
` : ''
}
\n`
string
+=
`[${map.get(i) ?? `
第
$
{
i
+
1
}名
`
}
][${p.name
}
]${p.qq ? `
[
$
{
p
.
qq
}
]
` : ''
}
\n`
}
}
UniApp
.
copy
(
string
);
UniApp
.
copy
(
string
);
}
,
}
copyValue
:
0
}
);
}
);
let
page
=
reactive
({
let
page
=
reactive
({
...
...
src/script/match.ts
View file @
22783492
...
@@ -36,7 +36,7 @@ class Match {
...
@@ -36,7 +36,7 @@ class Match {
this
.
player2
=
{
this
.
player2
=
{
id
:
obj
.
player2Id
,
id
:
obj
.
player2Id
,
name
:
(
name2
.
length
==
2
&&
!
Number
.
isNaN
(
name2
[
0
])
&&
name2
[
0
].
length
>
3
)
?
name2
[
1
]
:
obj
.
player2
?.
name
??
''
,
name
:
(
name2
.
length
==
2
&&
!
Number
.
isNaN
(
name2
[
0
])
&&
name2
[
0
].
length
>
3
)
?
name2
[
1
]
:
obj
.
player2
?.
name
??
''
,
qq
:
(
name2
.
length
==
2
&&
!
Number
.
isNaN
(
name2
[
0
])
&&
name2
[
0
].
length
>
3
)
?
name
1
[
0
]
:
undefined
,
qq
:
(
name2
.
length
==
2
&&
!
Number
.
isNaN
(
name2
[
0
])
&&
name2
[
0
].
length
>
3
)
?
name
2
[
0
]
:
undefined
,
score
:
obj
.
player2Score
score
:
obj
.
player2Score
};
};
this
.
winnerId
=
obj
.
winnerId
as
number
|
null
;
this
.
winnerId
=
obj
.
winnerId
as
number
|
null
;
...
...
src/script/post.ts
View file @
22783492
...
@@ -291,7 +291,7 @@ class TabulatorAPI {
...
@@ -291,7 +291,7 @@ class TabulatorAPI {
for
(
let
i
=
0
;
i
<
res
.
tempFilePaths
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
res
.
tempFilePaths
.
length
;
i
++
)
{
let
f
=
await
fetch
(
res
.
tempFilePaths
[
i
]);
let
f
=
await
fetch
(
res
.
tempFilePaths
[
i
]);
let
blob
=
await
f
.
blob
();
let
blob
=
await
f
.
blob
();
formData
.
append
(
'
files
'
,
blob
,
res
.
tempFiles
[
i
].
name
.
replace
(
'
.ydk
'
,
''
));
formData
.
append
(
'
files
'
,
blob
,
res
.
tempFiles
[
i
].
name
.
replace
(
/
\.[^/
.
]
+$/
,
""
));
}
}
response
=
await
this
.
url
.
post
(
`/api/tournament/
${
id
}
/upload-ydk`
,
formData
,
{
response
=
await
this
.
url
.
post
(
`/api/tournament/
${
id
}
/upload-ydk`
,
formData
,
{
headers
:
{
headers
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment