Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web_nangaoclub
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙谢炜
web_nangaoclub
Commits
ab4a6464
Commit
ab4a6464
authored
Mar 29, 2024
by
sunxiwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改审核比赛弹窗界面、修改个人界面上传头像位置、修改后端审核不通过比赛逻辑
parent
b08ac9ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
24 deletions
+29
-24
audit_games.vue
vuetify-project/src/audit_games.vue
+17
-21
space.vue
vuetify-project/src/components/space.vue
+12
-3
No files found.
vuetify-project/src/audit_games.vue
View file @
ab4a6464
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
<v-app>
<v-app>
<!--
{{
filteredMatches
}}
-->
<!--
{{
filteredMatches
}}
-->
<v-container>
<v-container>
<v-data-table
class=
"overflow-auto "
:headers=
"headers"
:items=
"filteredMatches"
item-key=
"id"
:search=
"search.value"
<v-data-table
class=
"overflow-auto "
:headers=
"headers"
:items=
"filteredMatches"
item-key=
"id"
:items-per-page=
"10"
>
:
search=
"search.value"
:
items-per-page=
"10"
>
<template
v-slot:top
>
<template
v-slot:top
>
<v-toolbar
flat
>
<v-toolbar
flat
>
<v-toolbar-title>
比赛
</v-toolbar-title>
<v-toolbar-title>
比赛
</v-toolbar-title>
...
@@ -13,21 +13,23 @@
...
@@ -13,21 +13,23 @@
</v-toolbar>
</v-toolbar>
</
template
>
</
template
>
<
template
v-slot:item
.
date=
"{ item }"
>
<
template
v-slot:item
.
date=
"{ item }"
>
<p
style=
"width:60px"
>
{{
item
.
date
}}
</p>
<p
style=
"width:60px"
>
{{
item
.
date
}}
</p>
</
template
>
</
template
>
<
template
v-slot:item
.
team=
"{ item }"
>
<
template
v-slot:item
.
team=
"{ item }"
>
<p
style=
"width:120px"
>
{{
item
.
homeTeam
}}
VS
{{
item
.
awayTeam
}}
</p>
<p
style=
"width:120px"
>
{{
item
.
homeTeam
}}
VS
{{
item
.
awayTeam
}}
</p>
</
template
>
</
template
>
<
template
v-slot:item
.
score=
"{ item }"
>
<
template
v-slot:item
.
score=
"{ item }"
>
<p
style=
"width:30px"
>
{{
item
.
homeScore
}}
-
{{
item
.
awayScore
}}
</p>
<p
style=
"width:30px"
>
{{
item
.
homeScore
}}
-
{{
item
.
awayScore
}}
</p>
</
template
>
</
template
>
<
template
v-slot:item
.
actions=
"{ item }"
>
<
template
v-slot:item
.
actions=
"{ item }"
>
<div
style=
"width:45px"
>
<v-icon
v-if=
"!item.shenhe"
small
color=
"green"
@
click=
"opendialog(item, 'approve')"
<div
style=
"width:45px"
>
<v-icon
v-if=
"!item.shenhe"
small
color=
"green"
@
click=
"opendialog(item, 'approve')"
style=
"padding-right: 20px;"
>
mdi-check
</v-icon>
style=
"padding-right: 20px;"
>
mdi-check
</v-icon>
<v-icon
v-if=
"!item.shenhe"
small
color=
"red"
@
click=
"opendialog(item, 'reject')"
style=
"padding-left: 20px;"
>
mdi-close
</v-icon>
<v-icon
v-if=
"!item.shenhe"
small
color=
"red"
@
click=
"opendialog(item, 'reject')"
<div
v-if=
"item.shenhe"
variant=
"text"
>
已审核
</div></div>
style=
"padding-left: 20px;"
>
mdi-close
</v-icon>
<div
v-if=
"item.shenhe"
variant=
"text"
>
已审核
</div>
</div>
</
template
>
</
template
>
</v-data-table>
</v-data-table>
...
@@ -39,10 +41,11 @@
...
@@ -39,10 +41,11 @@
<v-card-text>
<v-card-text>
{{ cardtext }}
{{ cardtext }}
</v-card-text>
</v-card-text>
<
template
v-slot:actions
>
<v-card-actions>
<v-btn
class=
"ms-auto"
variant=
"flat"
color=
"indigo"
text=
"确定"
@
click=
"confirmAction"
></v-btn>
<v-spacer></v-spacer>
<v-btn
class=
"ms-auto"
variant=
"flat"
color=
"indigo"
text=
"取消"
@
click=
"dialog = false"
></v-btn>
<v-btn
color=
"indigo"
text=
"取消"
@
click=
"dialog = false"
></v-btn>
</
template
>
<v-btn
color=
"indigo"
text=
"确定"
@
click=
"confirmAction"
></v-btn>
</v-card-actions>
</v-card>
</v-card>
</v-dialog>
</v-dialog>
</v-container>
</v-container>
...
@@ -52,13 +55,6 @@
...
@@ -52,13 +55,6 @@
</template>
</template>
<
style
>
.table
{
width
:
60px
;
}
</
style
>
<
script
setup
>
<
script
setup
>
import
{
ref
}
from
'vue'
;
import
{
ref
}
from
'vue'
;
import
{
reactive
}
from
'vue'
;
import
{
reactive
}
from
'vue'
;
...
@@ -154,7 +150,7 @@ function confirmAction() {
...
@@ -154,7 +150,7 @@ function confirmAction() {
console
.
log
(
error
);
console
.
log
(
error
);
})
})
}
}
else
if
(
actiontype
.
value
===
'reject'
)
{
else
if
(
actiontype
.
value
===
'reject'
)
{
verify
.
value
=
false
;
verify
.
value
=
false
;
selectedMatch
.
value
.
shenhe
=
true
;
selectedMatch
.
value
.
shenhe
=
true
;
axios
.
post
(
'/api/confirmGame'
,
{
axios
.
post
(
'/api/confirmGame'
,
{
...
...
vuetify-project/src/components/space.vue
View file @
ab4a6464
<
template
>
<
template
>
<div
class=
"background"
@
click=
"dialog2 = true"
>
<div
class=
"background"
@
click=
"dialog2 = true"
>
<img
:src=
"pre_background_image"
class=
"img1"
alt=
"上传背景图"
>
<img
v-if=
"pre_background_image"
:src=
"pre_background_image"
class=
"img1"
alt=
"上传背景图"
>
<div
v-if=
"!pre_background_image"
>
点击头像处上传背景图
</div>
<!--
<v-overlay
activator=
"parent"
/>
-->
<!--
<v-overlay
activator=
"parent"
/>
-->
</div>
</div>
<!--
<v-overlay
activator=
".img1"
/>
-->
<!--
<v-overlay
activator=
".img1"
/>
-->
...
@@ -12,7 +13,8 @@
...
@@ -12,7 +13,8 @@
<template
v-slot:activator=
"
{ props }">
<template
v-slot:activator=
"
{ props }">
<v-btn
icon
v-bind=
"props"
class=
"float-left"
size=
"80px"
>
<v-btn
icon
v-bind=
"props"
class=
"float-left"
size=
"80px"
>
<v-avatar
size=
"80px"
style=
"border:3px solid white"
>
<v-avatar
size=
"80px"
style=
"border:3px solid white"
>
<img
:src=
"pre_avatar_image"
class=
"img2"
alt=
"上传头像"
>
<img
v-if=
"pre_avatar_image"
:src=
"pre_avatar_image"
class=
"img2"
alt=
"上传头像"
>
<div
v-if=
"!pre_avatar_image"
class=
"alt-text"
>
上传头像
</div>
</v-avatar>
</v-avatar>
</v-btn>
</v-btn>
</
template
>
</
template
>
...
@@ -20,7 +22,8 @@
...
@@ -20,7 +22,8 @@
<v-card-text>
<v-card-text>
<div
class=
"mx-auto text-center"
>
<div
class=
"mx-auto text-center"
>
<v-avatar
size=
"50px"
>
<v-avatar
size=
"50px"
>
<img
:src=
"pre_avatar_image"
class=
"img2"
alt=
"上传头像"
>
<img
v-if=
"pre_avatar_image"
:src=
"pre_avatar_image"
class=
"img2"
alt=
"上传头像"
>
<div
v-if=
"!pre_avatar_image"
class=
"alt-text"
>
上传头像
</div>
</v-avatar>
</v-avatar>
<div
class=
"text-h5 relative1"
>
<div
class=
"text-h5 relative1"
>
{{ username }}
{{ username }}
...
@@ -99,6 +102,7 @@
...
@@ -99,6 +102,7 @@
</v-card-actions>
</v-card-actions>
</v-card>
</v-card>
</v-dialog>
</v-dialog>
<v-dialog
v-model=
"dialog2"
width=
"auto"
>
<v-dialog
v-model=
"dialog2"
width=
"auto"
>
<v-card
width=
"300px"
>
<v-card
width=
"300px"
>
<v-card-text>
<v-card-text>
...
@@ -300,4 +304,9 @@ function setBackground() {
...
@@ -300,4 +304,9 @@ function setBackground() {
width
:
10%
;
width
:
10%
;
text-align
:
center
;
text-align
:
center
;
}
}
.alt-text
{
top
:
50%
;
left
:
50%
;
}
</
style
>
</
style
>
\ 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