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
cd5236d8
Commit
cd5236d8
authored
Jul 13, 2025
by
xiaoye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f761ec37
Pipeline
#38961
passed with stages
in 3 minutes
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
src/pages/tournament.vue
src/pages/tournament.vue
+2
-2
src/script/participant.ts
src/script/participant.ts
+2
-0
No files found.
src/pages/tournament.vue
View file @
cd5236d8
...
...
@@ -458,7 +458,7 @@
let
del_list
:
Array
<
Participant
>
=
[];
// @ts-ignore
res
.
tempFiles
.
forEach
(
i
=>
{
const
p
=
participant
.
array
.
filter
(
p
=>
p
.
name
==
i
.
n
ame
.
replace
(
/
\.[^/
.
]
+$/
,
""
));
const
p
=
participant
.
array
.
filter
(
p
=>
p
.
name
==
i
.
baseN
ame
.
replace
(
/
\.[^/
.
]
+$/
,
""
));
del_list
.
push
(...
p
);
}
);
...
...
@@ -469,7 +469,7 @@
await
tournament
.
search
();
}
}
;
await
UniApp
.
selectFile
([
'
.ydk
'
],
f
);
await
UniApp
.
selectFile
([
'
.ydk
'
,
'
.txt
'
],
f
);
}
,
copy
:
()
:
void
=>
{
if
(
!
tournament
.
this
)
return
;
...
...
src/script/participant.ts
View file @
cd5236d8
...
...
@@ -5,6 +5,7 @@ import { Base64 } from 'js-base64';
class
Participant
{
id
:
number
;
name
:
string
;
baseName
:
string
;
qq
:
string
|
undefined
;
quit
:
boolean
;
tournamentId
:
number
;
...
...
@@ -15,6 +16,7 @@ class Participant {
constructor
(
obj
:
ParticipantObject
)
{
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
.
baseName
=
obj
.
name
;
this
.
qq
=
(
name
.
length
==
2
&&
!
Number
.
isNaN
(
name
[
0
])
&&
name
[
0
].
length
>
3
)
?
name
[
0
]
:
undefined
;
this
.
tournamentId
=
obj
.
tournamentId
;
this
.
id
=
obj
.
id
;
...
...
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