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
521b3b81
Commit
521b3b81
authored
Jun 28, 2025
by
xiaoye
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'main' of
https://code.moenext.com/mycard/tabulator-another-web
into mycard-git
parents
d40d3c04
c97bad9d
Pipeline
#38197
passed with stages
in 2 minutes and 14 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
9 deletions
+14
-9
src/pages/tournament.vue
src/pages/tournament.vue
+4
-4
src/script/match.ts
src/script/match.ts
+6
-3
src/script/participant.ts
src/script/participant.ts
+4
-2
No files found.
src/pages/tournament.vue
View file @
521b3b81
...
@@ -487,9 +487,9 @@
...
@@ -487,9 +487,9 @@
match
.
array
.
filter
(
i
=>
i
.
round
==
round
).
forEach
((
i
,
v
)
=>
{
match
.
array
.
filter
(
i
=>
i
.
round
==
round
).
forEach
((
i
,
v
)
=>
{
if
(
i
.
player1
.
id
||
i
.
player2
.
id
)
{
if
(
i
.
player1
.
id
||
i
.
player2
.
id
)
{
string
+=
`[${v + 1
}
]组\n`
;
string
+=
`[${v + 1
}
]组\n`
;
string
+=
`\t[选手A][${i.player1.
n
ame ?? ''
}
]\n`
;
string
+=
`\t[选手A][${i.player1.
fullN
ame ?? ''
}
]\n`
;
string
+=
`\t[比 分][${i.status == 'Finished' ? `
$
{
i
.
player1
.
score
}
:
$
{
i
.
player2
.
score
}
` : 'VS'
}
]\n`
;
string
+=
`\t[比 分][${i.status == 'Finished' ? `
$
{
i
.
player1
.
score
}
:
$
{
i
.
player2
.
score
}
` : 'VS'
}
]\n`
;
string
+=
`\t[选手B][${i.player2.
n
ame ?? ''
}
]\n`
;
string
+=
`\t[选手B][${i.player2.
fullN
ame ?? ''
}
]\n`
;
}
}
}
);
}
);
}
}
...
@@ -666,7 +666,7 @@
...
@@ -666,7 +666,7 @@
]);
]);
for
(
let
i
=
0
;
i
<
copyValue
;
i
++
)
{
for
(
let
i
=
0
;
i
<
copyValue
;
i
++
)
{
let
p
=
participant
.
array
[
i
];
let
p
=
participant
.
array
[
i
];
string
+=
`[${map.get(i) ?? `
第
$
{
i
+
1
}名
`
}
]${p.
n
ame
}
\n`
string
+=
`[${map.get(i) ?? `
第
$
{
i
+
1
}名
`
}
]${p.
fullN
ame
}
\n`
}
}
UniApp
.
copy
(
string
);
UniApp
.
copy
(
string
);
}
,
}
,
...
@@ -799,4 +799,4 @@
...
@@ -799,4 +799,4 @@
<
style
scoped
lang
=
'
scss
'
>
<
style
scoped
lang
=
'
scss
'
>
@
import
'
../style/tournament.scss
'
;
@
import
'
../style/tournament.scss
'
;
@
import
'
../style/transition.scss
'
;
@
import
'
../style/transition.scss
'
;
<
/style>
<
/style
>
\ No newline at end of file
src/script/match.ts
View file @
521b3b81
...
@@ -5,6 +5,7 @@ interface player {
...
@@ -5,6 +5,7 @@ interface player {
id
:
number
;
id
:
number
;
score
:
number
;
score
:
number
;
name
:
string
;
name
:
string
;
fullName
:
string
;
}
}
class
Match
{
class
Match
{
...
@@ -24,16 +25,18 @@ class Match {
...
@@ -24,16 +25,18 @@ class Match {
this
.
round
=
obj
.
round
;
this
.
round
=
obj
.
round
;
this
.
isThirdPlaceMatch
=
obj
.
isThirdPlaceMatch
;
this
.
isThirdPlaceMatch
=
obj
.
isThirdPlaceMatch
;
this
.
status
=
obj
.
status
;
this
.
status
=
obj
.
status
;
const
name1
=
obj
.
player1
?.
name
.
split
(
'
+
'
)
??
[];
const
name1
=
obj
.
player1
?.
name
.
split
(
/
[\+\u
FF0B
]
/
)
??
[];
this
.
player1
=
{
this
.
player1
=
{
id
:
obj
.
player1Id
,
id
:
obj
.
player1Id
,
name
:
(
name1
.
length
==
2
&&
!
Number
.
isNaN
(
name1
[
0
])
&&
name1
[
0
].
length
>
3
)
?
name1
[
1
]
:
obj
.
player1
?.
name
??
''
,
name
:
(
name1
.
length
==
2
&&
!
Number
.
isNaN
(
name1
[
0
])
&&
name1
[
0
].
length
>
3
)
?
name1
[
1
]
:
obj
.
player1
?.
name
??
''
,
fullName
:
obj
.
player1
?.
name
??
''
,
score
:
obj
.
player1Score
score
:
obj
.
player1Score
};
};
const
name2
=
obj
.
player2
?.
name
.
split
(
'
+
'
)
??
[];
const
name2
=
obj
.
player2
?.
name
.
split
(
/
[\+\u
FF0B
]
/
)
??
[];
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
??
''
,
fullName
:
obj
.
player2
?.
name
??
''
,
score
:
obj
.
player2Score
score
:
obj
.
player2Score
};
};
this
.
winnerId
=
obj
.
winnerId
as
number
|
null
;
this
.
winnerId
=
obj
.
winnerId
as
number
|
null
;
...
@@ -42,4 +45,4 @@ class Match {
...
@@ -42,4 +45,4 @@ class Match {
}
}
export
default
Match
;
export
default
Match
;
\ No newline at end of file
src/script/participant.ts
View file @
521b3b81
...
@@ -5,6 +5,7 @@ import { Base64 } from 'js-base64';
...
@@ -5,6 +5,7 @@ import { Base64 } from 'js-base64';
class
Participant
{
class
Participant
{
id
:
number
;
id
:
number
;
name
:
string
;
name
:
string
;
fullName
:
string
;
quit
:
boolean
;
quit
:
boolean
;
tournamentId
:
number
;
tournamentId
:
number
;
score
:
Score
;
score
:
Score
;
...
@@ -12,7 +13,8 @@ class Participant {
...
@@ -12,7 +13,8 @@ class Participant {
deck
:
YGOProDeck
|
undefined
;
deck
:
YGOProDeck
|
undefined
;
constructor
(
obj
:
ParticipantObject
)
{
constructor
(
obj
:
ParticipantObject
)
{
const
name
=
obj
.
name
.
split
(
'
+
'
);
this
.
fullName
=
obj
.
name
;
const
name
=
obj
.
name
.
split
(
/
[\+\u
FF0B
]
/
);
this
.
name
=
(
name
.
length
==
2
&&
!
Number
.
isNaN
(
name
[
0
])
&&
name
[
0
].
length
>
3
)
?
name
[
1
]
:
obj
.
name
;
this
.
name
=
(
name
.
length
==
2
&&
!
Number
.
isNaN
(
name
[
0
])
&&
name
[
0
].
length
>
3
)
?
name
[
1
]
:
obj
.
name
;
this
.
tournamentId
=
obj
.
tournamentId
;
this
.
tournamentId
=
obj
.
tournamentId
;
this
.
id
=
obj
.
id
;
this
.
id
=
obj
.
id
;
...
@@ -43,4 +45,4 @@ class Participant {
...
@@ -43,4 +45,4 @@ class Participant {
}
}
}
}
export
default
Participant
;
export
default
Participant
;
\ No newline at end of file
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