|
|
@@ -31,27 +31,28 @@ export default {
|
|
|
table: {
|
|
|
search: '',
|
|
|
loading: false,
|
|
|
- groupBy: 'block',
|
|
|
+ groupBy: 'blockNumber',
|
|
|
groupDesc: true,
|
|
|
- sortBy: ['block', 'index'],
|
|
|
+ sortBy: ['blockNumber', 'index'],
|
|
|
sortDesc: [true, false],
|
|
|
pageSize: 200,
|
|
|
pageNum: 1,
|
|
|
data: [],
|
|
|
headers: [
|
|
|
- { text: "Option", value: 'option', width: '7%' },
|
|
|
- { text: 'Block', value: 'block' },
|
|
|
- { text: 'Hash', value: 'hash', width: '7%' },
|
|
|
- { text: 'From', value: 'from', width: '7%' },
|
|
|
- { text: 'To', value: 'to', width: '7%' },
|
|
|
- { text: 'GasPrice', value: 'gasPrice', width: '6%' },
|
|
|
- { text: 'Type', value: 'type', width: '3%' },
|
|
|
- { text: 'Index', value: 'index', width: '3%' },
|
|
|
- { text: 'State', value: 'state', width: '3%' },
|
|
|
- { text: 'Mev', value: 'mev', width: '3%' },
|
|
|
- { text: 'Pending', value: 'pending', width: '7%' },
|
|
|
- { text: 'TradeInfo', value: 'tradeInfo'},
|
|
|
- { text: 'memo', value: 'memo'}
|
|
|
+ {text: "Option", value: 'option'},
|
|
|
+ {text: 'Block', value: 'blockNumber'},
|
|
|
+ {text: 'Hash', value: 'hash', width: '10%'},
|
|
|
+ {text: 'From', value: 'from'},
|
|
|
+ {text: 'To', value: 'to'},
|
|
|
+ {text: 'GasPrice', value: 'gasPrice'},
|
|
|
+ {text: 'Type', value: 'type'},
|
|
|
+ {text: 'Index', value: 'index'},
|
|
|
+ {text: 'status', value: 'status'},
|
|
|
+ {text: 'isMev', value: 'isMev'},
|
|
|
+ {text: 'isBot', value: 'isBot'},
|
|
|
+ {text: 'timestamp', value: 'timestamp'},
|
|
|
+ {text: 'transfer', value: 'transferList'},
|
|
|
+ {text: 'comment', value: 'comment'}
|
|
|
]
|
|
|
},
|
|
|
}),
|
|
|
@@ -66,7 +67,7 @@ export default {
|
|
|
const rst = await this.tx.findByPaginate(this.table.pageNum, this.table.pageSize)
|
|
|
|
|
|
if (rst.state) {
|
|
|
- this.table.data = rst.data
|
|
|
+ this.table.data = Tx.parseLocalRecordList(rst.data)
|
|
|
this.$msgkit.success(rst.msg)
|
|
|
} else {
|
|
|
this.$msgkit.error(rst.msg)
|