Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
Community-Mining-Admin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mining
Community-Mining-Admin
Commits
b51f6888
Commit
b51f6888
authored
Jan 18, 2022
by
xhx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:参数调整
parent
a985000f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
17 deletions
+27
-17
index.ts
src/router/index.ts
+10
-10
Trust.vue
src/views/Logs/Trust.vue
+17
-7
No files found.
src/router/index.ts
View file @
b51f6888
...
@@ -139,16 +139,16 @@ export const routes: Array<RouteConfig> = [
...
@@ -139,16 +139,16 @@ export const routes: Array<RouteConfig> = [
user
:
[
1
,
2
]
user
:
[
1
,
2
]
},
},
children
:
[
children
:
[
{
//
{
path
:
'/logs/invite'
,
//
path: '/logs/invite',
name
:
'invite'
,
//
name: 'invite',
component
:
()
=>
import
(
'@/views/Logs/Invite.vue'
),
//
component: () => import('@/views/Logs/Invite.vue'),
meta
:
{
//
meta: {
name
:
'绑定记录'
,
//
name: '绑定记录',
icon
:
''
,
//
icon: '',
user
:
[
1
,
2
]
//
user: [1,2]
},
//
},
},
//
},
{
{
path
:
'/logs/trust'
,
path
:
'/logs/trust'
,
name
:
'trust'
,
name
:
'trust'
,
...
...
src/views/Logs/Trust.vue
View file @
b51f6888
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"search-bar"
>
<div
class=
"search-bar"
>
<div
class=
"search-l"
>
<div
class=
"search-l"
>
<span
class=
"search-label"
>
精确查找
</span>
<span
class=
"search-label"
>
精确查找
</span>
<el-select
v-model=
"search.poolId"
placeholder=
"请选择"
clearable
=
"true"
>
<el-select
v-model=
"search.poolId"
placeholder=
"请选择"
clearable
>
<el-option
<el-option
v-for=
"item in captainList"
v-for=
"item in captainList"
:key=
"item.id"
:key=
"item.id"
...
@@ -30,28 +30,31 @@
...
@@ -30,28 +30,31 @@
border
border
style=
"width: 100%"
>
style=
"width: 100%"
>
<el-table-column
<el-table-column
prop=
"
name
"
prop=
"
addr
"
label=
"用户地址"
>
label=
"用户地址"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"
minerAddr
"
prop=
"
nodeName
"
label=
"社区节点"
>
label=
"社区节点"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"
entrustTicket
"
prop=
"
poolName
"
label=
"票池名称"
>
label=
"票池名称"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"
entrustPerson
"
prop=
"
poolAddr
"
label=
"票池地址"
>
label=
"票池地址"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"
entrustPerson
"
prop=
"
amount
"
label=
"票数"
>
label=
"票数"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"
entrustPerson
"
prop=
"
createAt
"
label=
"委托时间"
>
label=
"委托时间"
>
<template
slot-scope=
"scope"
>
<div>
{{
scope
.
row
.
createAt
|
filterTime
()
}}
</div>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<Pagination
:total=
"total"
:page=
"page"
:pageSize=
"pageSize"
@
pagination=
"getPage"
/>
<Pagination
:total=
"total"
:page=
"page"
:pageSize=
"pageSize"
@
pagination=
"getPage"
/>
...
@@ -62,6 +65,7 @@
...
@@ -62,6 +65,7 @@
import
Vue
from
'vue'
import
Vue
from
'vue'
import
Pagination
from
'@/components/Panigation.vue'
import
Pagination
from
'@/components/Panigation.vue'
import
{
getBindLists
,
getCaptainLists
}
from
'@/service/request'
;
import
{
getBindLists
,
getCaptainLists
}
from
'@/service/request'
;
import
dayjs
from
'dayjs'
;
export
default
Vue
.
extend
({
export
default
Vue
.
extend
({
components
:
{
components
:
{
Pagination
Pagination
...
@@ -79,6 +83,12 @@ export default Vue.extend({
...
@@ -79,6 +83,12 @@ export default Vue.extend({
},
},
}
}
},
},
filters
:
{
filterTime
(
val
:
string
)
{
const
timeStamp
=
parseInt
(
val
+
'000'
)
return
dayjs
(
timeStamp
).
format
(
'YYYY-MM-DD HH:mm'
)
}
},
created
()
{
created
()
{
this
.
getList
()
this
.
getList
()
this
.
getCaptain
()
this
.
getCaptain
()
...
...
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