Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
admin
Overview
Overview
Details
Activity
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
baihong
admin
Commits
7c4ae169
Commit
7c4ae169
authored
Apr 27, 2021
by
baihong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
活动详情
parent
9bd7fb9a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
16 deletions
+63
-16
userAcDetail.vue
src/view/clockEarly/userAcDetail.vue
+63
-16
No files found.
src/view/clockEarly/userAcDetail.vue
View file @
7c4ae169
...
...
@@ -3,9 +3,9 @@
<Card
dis-hover
:padding=
"30"
>
<p
slot=
"title"
>
基础信息
</p>
<Row>
<Col
span=
"8"
>
活动日期:
{{
row
.
activity_date
|
format
}}
</Col>
<Col
span=
"8"
>
可获得真我币:
{{
row
.
expense_amount
}}
</Col>
<Col
span=
"8"
>
签到人数:
{{
row
.
sign_in_num
}}
</Col>
<Col
span=
"8"
>
活动日期:
{{
row
.
activity_date
|
format
}}
</Col>
<Col
span=
"8"
>
可获得真我币:
{{
row
.
expense_amount
}}
</Col>
<Col
span=
"8"
>
签到人数:
{{
row
.
sign_in_num
}}
</Col>
</Row>
</Card>
...
...
@@ -15,8 +15,13 @@
<div
class=
"topSearch"
>
<div
class=
"left"
>
用户搜索:
<Input
style=
"width:200px"
enter-button
placeholder=
"请输入"
/>
<Button
type=
"primary"
>
查 询
</Button>
<Input
v-model=
"name"
style=
"width:200px"
enter-button
placeholder=
"请输入"
/>
<Button
type=
"primary"
>
查 询
</Button>
</div>
</div>
<Table
...
...
@@ -26,10 +31,24 @@
:columns=
"columns"
:data=
"data"
>
<template
slot-scope=
"
{ row }" slot="default_avatar">
<Avatar
:src=
"row.default_avatar"
/>
</
template
>
<
template
slot-scope=
"{ row }"
slot=
"apply_time"
>
{{
row
.
apply_time
|
format
}}
</
template
>
<
template
slot-scope=
"{ row }"
slot=
"clock_time"
>
{{
row
.
clock_time
|
format
}}
</
template
>
<
template
slot-scope=
"{ row }"
slot=
"action"
>
<a
@
click=
"edit(row)"
>
编辑
</a>
</
template
>
</Table>
<Pager
class=
"margin-top-10"
:config=
"config"
@
on-change=
"handlePager"
></Pager>
</Card>
</div>
<div
class=
"btn"
>
...
...
@@ -40,9 +59,13 @@
<
script
>
import
{
formatDate
}
from
"@/libs/util"
;
import
{
activityClockRecords
}
from
"@/api/clock/activityClocks"
;
import
Pager
from
"@/view/common/Pager.vue"
;
export
default
{
name
:
"categories"
,
components
:
{},
components
:
{
Pager
},
filters
:
{
format
(
value
)
{
return
formatDate
(
value
);
...
...
@@ -50,43 +73,67 @@ export default {
},
data
()
{
return
{
config
:
{
total
:
0
,
size
:
10
,
current
:
1
},
name
:
""
,
tab
:
"1"
,
pageIndex
:
1
,
pageSize
:
10
,
row
:
this
.
$route
.
query
.
row
,
data
:
[],
columns
:
[
{
title
:
"用户ID"
,
key
:
"
created_at
"
key
:
"
uuid
"
},
{
title
:
"头像"
,
slot
:
"
name
"
slot
:
"
default_avatar
"
},
{
title
:
"姓名"
,
slot
:
"titl
e"
key
:
"nick_nam
e"
},
{
title
:
"手机号"
,
slot
:
"nam
e"
key
:
"phon
e"
},
{
title
:
"报名时间"
,
slot
:
"
titl
e"
slot
:
"
apply_tim
e"
},
{
title
:
"打
开
时间"
,
slot
:
"
titl
e"
title
:
"打
卡
时间"
,
slot
:
"
clock_tim
e"
},
{
title
:
"获得真我币"
,
slot
:
"name
"
key
:
"expense_amount
"
}
]
};
},
methods
:
{},
mounted
()
{}
methods
:
{
handlePager
(
pager
)
{
this
.
pageIndex
=
pager
.
current
;
this
.
pageSize
=
pager
.
size
;
this
.
search
();
},
search
()
{
let
params
=
{
name
:
this
.
name
,
uuid
:
this
.
row
.
uuid
,
pageIndex
:
this
.
pageIndex
,
pageSize
:
this
.
pageSize
};
activityClockRecords
(
params
).
then
(
res
=>
{
this
.
config
.
total
=
res
.
total
;
this
.
data
=
res
.
data
;
});
}
},
mounted
()
{
this
.
search
();
}
};
</
script
>
...
...
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