Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ycc-website
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
Website
ycc-website
Commits
8bdba73c
Commit
8bdba73c
authored
Jun 01, 2022
by
wenglk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
7800a6a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
blockDetail.ts
src/mixin/blockDetail.ts
+8
-7
No files found.
src/mixin/blockDetail.ts
View file @
8bdba73c
...
...
@@ -49,7 +49,9 @@ export default Vue.extend({
},
fetchTradeFromTxHashes
()
{
this
.
loadingTable
=
true
;
Rpc
.
getTxByHashes
(
this
.
txHashes
).
then
((
txRes
)
=>
{
const
start
=
this
.
pages
.
pageSize
*
(
this
.
pages
.
currentPage
-
1
)
const
end
=
this
.
pages
.
pageSize
*
this
.
pages
.
currentPage
-
1
<
this
.
pages
.
total
?
this
.
pages
.
pageSize
*
this
.
pages
.
currentPage
:
this
.
pages
.
total
Rpc
.
getTxByHashes
(
this
.
txHashes
.
slice
(
start
,
end
)).
then
((
txRes
)
=>
{
this
.
loadingTable
=
false
;
if
(
txRes
.
error
==
null
)
{
console
.
log
(
txRes
,
"show txRes"
);
...
...
@@ -67,6 +69,7 @@ export default Vue.extend({
.
sort
((
a
)
=>
(
a
.
type
===
"pack"
?
-
1
:
0
));
this
.
allTrades
=
this
.
checkGroup
(
txRes
.
result
.
txs
);
}
else
{
message
.
warning
(
this
.
$t
(
"lang.components.tip"
)
+
txRes
.
error
);
}
});
...
...
@@ -154,9 +157,12 @@ export default Vue.extend({
},
pageChange
(
page
:
number
)
{
this
.
pages
.
currentPage
=
page
;
this
.
fetchTradeFromTxHashes
()
},
sizeChange
(
size
:
number
)
{
this
.
pages
.
pageSize
=
size
;
this
.
pages
.
currentPage
=
1
this
.
fetchTradeFromTxHashes
()
},
},
computed
:
{
...
...
@@ -170,12 +176,7 @@ export default Vue.extend({
);
},
Trades
():
iCustomizedGetTxByHashesRetTxItem
[]
{
const
end
=
this
.
pages
.
pageSize
*
this
.
pages
.
currentPage
-
1
<
this
.
pages
.
total
?
this
.
pages
.
pageSize
*
this
.
pages
.
currentPage
-
1
:
this
.
pages
.
total
-
1
;
const
start
=
this
.
pages
.
pageSize
*
(
this
.
pages
.
currentPage
-
1
);
return
this
.
allTrades
.
slice
(
start
,
end
+
1
);
return
this
.
allTrades
},
tabList
():
any
[]
{
return
[
...
...
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