Commit b51f6888 authored by xhx's avatar xhx

fix:参数调整

parent a985000f
...@@ -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',
......
...@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment