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
790e6c06
Commit
790e6c06
authored
May 19, 2025
by
xiaoye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加轮次搜索
parent
6c72db9f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
src/pages/tournament.vue
src/pages/tournament.vue
+19
-2
src/style/tournament.scss
src/style/tournament.scss
+3
-0
No files found.
src/pages/tournament.vue
View file @
790e6c06
...
...
@@ -119,6 +119,15 @@
:is-full =
'true'
title =
'比赛'
>
<view
id =
'round'
>
第
<uni-number-box
v-model =
'match.round'
:min =
'1'
:disabled =
"tournament.this.status == 'Ready'"
></uni-number-box>
轮
</view>
<transition
name =
'switch'
>
<uni-list>
<uni-list-item
...
...
@@ -279,6 +288,7 @@
array
:
[]
as
Array
<
Match
>
,
total
:
0
,
page
:
1
,
round
:
1
}
);
let
participant
=
reactive
({
...
...
@@ -341,7 +351,7 @@
const
participants
:
AllParticipant
=
await
Tabulator
.
Participant
.
FindALL
(
Mycard
.
token
,
{
tournamentId
:
t
.
id
}
);
participant
.
array
=
participants
.
participants
;
participant
.
total
=
participants
.
total
;
const
matchs
=
await
Tabulator
.
Match
.
FindALL
(
Mycard
.
token
,
{
tournamentId
:
t
.
id
,
statusIn
:
'
Running,Finished
'
}
);
const
matchs
=
await
Tabulator
.
Match
.
FindALL
(
Mycard
.
token
,
{
tournamentId
:
t
.
id
,
statusIn
:
'
Running,Finished
'
,
round
:
match
.
round
}
);
match
.
array
=
matchs
.
matchs
;
match
.
total
=
matchs
.
total
;
}
else
{
...
...
@@ -363,7 +373,7 @@
participant
.
array
=
participants
.
participants
;
participant
.
total
=
participants
.
total
;
// @ts-ignore
const
matchs
:
AllMatch
=
await
Tabulator
.
Match
.
FindALL
(
Mycard
.
token
,
{
tournamentId
:
tournament
.
this
.
id
,
statusIn
:
'
Running,Finished
'
}
);
const
matchs
:
AllMatch
=
await
Tabulator
.
Match
.
FindALL
(
Mycard
.
token
,
{
tournamentId
:
tournament
.
this
.
id
,
statusIn
:
'
Running,Finished
'
,
round
:
match
.
round
}
);
match
.
array
=
matchs
.
matchs
;
match
.
total
=
matchs
.
total
;
emitter
.
emit
(
tournamentReload
,
tournament
.
this
)
...
...
@@ -384,6 +394,13 @@
// @ts-ignore
emitter
.
off
(
updateTournament
,
participant
.
update
);
}
);
watch
(()
=>
{
return
match
.
round
;
}
,
async
()
:
Promise
<
void
>
=>
{
// @ts-ignore
const
matchs
=
await
Tabulator
.
Match
.
FindALL
(
Mycard
.
token
,
{
tournamentId
:
tournament
.
this
.
id
,
statusIn
:
'
Running,Finished
'
,
round
:
match
.
round
}
);
match
.
array
=
matchs
.
matchs
;
match
.
total
=
matchs
.
total
;
}
)
<
/script
>
<
style
scoped
lang
=
'
scss
'
>
...
...
src/style/tournament.scss
View file @
790e6c06
.PageTournament
{
#PageTournament
{
#round
{
display
:
flex
;
}
.button_list
{
display
:
flex
;
.button
{
...
...
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