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
bc66e71e
Commit
bc66e71e
authored
Feb 28, 2022
by
chenqikuai
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d45c7d9f
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
23 additions
and
16 deletions
+23
-16
address.ts
src/mixin/address.ts
+9
-4
blockDetail.ts
src/mixin/blockDetail.ts
+4
-1
AddressOverview.ts
src/mixin/componentsMixin/AddressOverview.ts
+5
-5
ChainSearch.ts
src/mixin/componentsMixin/ChainSearch.ts
+1
-0
trade.ts
src/mixin/trade.ts
+1
-0
tradeDetail.ts
src/mixin/tradeDetail.ts
+1
-6
trade.ts
src/types/trade.ts
+2
-0
No files found.
src/mixin/address.ts
View file @
bc66e71e
...
...
@@ -7,7 +7,7 @@ import {
getVoterAddrCount
,
}
from
"@/service/api"
;
import
{
iExecAccount
,
iPack
,
iVote
}
from
"@/types/address"
;
import
{
icustomized2Tx
,
iTx
}
from
"@/types/trade"
;
import
{
icustomized2Tx
}
from
"@/types/trade"
;
import
Rpc
from
"@/utils/Rpc"
;
import
Vue
from
"vue"
;
...
...
@@ -72,14 +72,14 @@ export default Vue.extend({
];
},
execerOptionsList
():
{
name
:
string
;
value
:
string
}[]
{
return
this
.
execAccount
.
map
((
i
:
any
)
=>
({
return
this
.
execAccount
.
map
((
i
)
=>
({
name
:
i
.
execer
,
value
:
i
.
execer
,
}));
},
balance
():
number
{
return
(
this
.
execAccount
.
find
((
i
:
any
)
=>
i
.
execer
===
this
.
selectedExecer
)
||
{
this
.
execAccount
.
find
((
i
)
=>
i
.
execer
===
this
.
selectedExecer
)
||
{
account
:
{
balance
:
0
,
},
...
...
@@ -88,7 +88,7 @@ export default Vue.extend({
},
frozen
():
number
{
return
(
this
.
execAccount
.
find
((
i
:
any
)
=>
i
.
execer
===
this
.
selectedExecer
)
||
{
this
.
execAccount
.
find
((
i
)
=>
i
.
execer
===
this
.
selectedExecer
)
||
{
account
:
{
frozen
:
0
,
},
...
...
@@ -159,6 +159,7 @@ export default Vue.extend({
this
.
pages3
.
pageSize
).
then
((
res
)
=>
{
if
(
res
.
error
===
null
)
{
// eslint-disable-next-line @typescript-eslint/no-explicit-any
this
.
packList
=
res
.
result
.
map
((
i
:
any
)
=>
({
...
i
,
sender
:
i
.
from
,
...
...
@@ -180,6 +181,7 @@ export default Vue.extend({
this
.
pages2
.
pageSize
).
then
((
res
)
=>
{
if
(
res
.
error
===
null
)
{
// eslint-disable-next-line @typescript-eslint/no-explicit-any
this
.
voteList
=
res
.
result
.
map
((
i
:
any
)
=>
({
...
i
,
sender
:
i
.
from
,
...
...
@@ -207,6 +209,7 @@ export default Vue.extend({
}
});
},
// eslint-disable-next-line @typescript-eslint/no-explicit-any
groupCellName
(
val
:
any
)
{
switch
(
val
.
row
.
tradeG
)
{
case
0
:
...
...
@@ -231,6 +234,7 @@ export default Vue.extend({
this
.
pages3
.
pageSize
).
then
((
res
)
=>
{
if
(
res
.
error
===
null
)
{
// eslint-disable-next-line @typescript-eslint/no-explicit-any
this
.
packList
=
res
.
result
.
map
((
i
:
any
)
=>
({
...
i
,
sender
:
i
.
from
,
...
...
@@ -252,6 +256,7 @@ export default Vue.extend({
this
.
pages2
.
pageSize
).
then
((
res
)
=>
{
if
(
res
.
error
===
null
)
{
// eslint-disable-next-line @typescript-eslint/no-explicit-any
this
.
voteList
=
res
.
result
.
map
((
i
:
any
)
=>
({
...
i
,
sender
:
i
.
from
,
...
...
src/mixin/blockDetail.ts
View file @
bc66e71e
/* eslint-disable @typescript-eslint/no-explicit-any */
import
{
getRpc
}
from
"ycc-api/src/service/Rpc"
;
import
Vue
from
"vue"
;
import
{
getBlockOverviewAndRelativeHeight
}
from
"ycc-api/dist/cmjs/service/blockDetail"
;
...
...
@@ -41,6 +42,7 @@ export default Vue.extend({
};
},
methods
:
{
// eslint-disable-next-line @typescript-eslint/no-explicit-any
isSuccess
(
execer
:
any
,
ty
:
any
)
{
return
!
tradeAccuracy
(
execer
,
ty
);
},
...
...
@@ -66,6 +68,7 @@ export default Vue.extend({
}
});
},
// eslint-disable-next-line @typescript-eslint/no-explicit-any
checkGroup
(
arr
:
any
[])
{
arr
.
map
((
current
,
index
)
=>
{
if
(
current
.
tx
.
groupCount
>
1
)
{
...
...
@@ -203,7 +206,7 @@ export default Vue.extend({
this
.
init
();
},
watch
:
{
"$route.query.height"
(
newV
,
oldV
)
{
"$route.query.height"
()
{
this
.
pages
=
{
currentPage
:
1
,
pageSize
:
10
,
...
...
src/mixin/componentsMixin/AddressOverview.ts
View file @
bc66e71e
...
...
@@ -21,22 +21,22 @@ export default Vue.extend({
});
},
computed
:
{
tradeInTotalList
():
any
{
tradeInTotalList
():
{
name
:
string
;
value
:
number
}[]
{
return
[
{
name
:
this
.
$t
(
"lang.address.totalReception"
),
name
:
this
.
$t
(
"lang.address.totalReception"
)
as
string
,
value
:
this
.
receive
,
},
{
name
:
this
.
$t
(
"lang.address.totalSent"
),
name
:
this
.
$t
(
"lang.address.totalSent"
)
as
string
,
value
:
this
.
send
,
},
{
name
:
this
.
$t
(
"lang.address.totalValue"
),
name
:
this
.
$t
(
"lang.address.totalValue"
)
as
string
,
value
:
this
.
value
,
},
{
name
:
this
.
$t
(
"lang.block.txCount"
),
name
:
this
.
$t
(
"lang.block.txCount"
)
as
string
,
value
:
this
.
txCount
,
},
];
...
...
src/mixin/componentsMixin/ChainSearch.ts
View file @
bc66e71e
/* eslint-disable @typescript-eslint/no-explicit-any */
import
Rpc
from
"@/utils/Rpc"
;
import
{
message
}
from
"ant-design-vue"
;
import
Vue
,
{
PropType
}
from
"vue"
;
...
...
src/mixin/trade.ts
View file @
bc66e71e
/* eslint-disable @typescript-eslint/no-explicit-any */
import
{
getTxCount
,
getTxList
}
from
"@/service/api"
;
import
{
icustomized2Tx
}
from
"@/types/trade"
;
import
Vue
from
"vue"
;
...
...
src/mixin/tradeDetail.ts
View file @
bc66e71e
/* eslint-disable @typescript-eslint/no-explicit-any */
import
{
queryTransaction
}
from
"ycc-api/dist/cmjs/service/blockDetail/index"
;
import
Vue
from
"vue"
;
...
...
@@ -9,15 +10,9 @@ export default Vue.extend({
loading
:
false
,
};
},
mounted
()
{
this
.
init
();
},
activated
()
{
this
.
init
();
},
computed
:
{
},
methods
:
{
clickSearch
(
str
:
string
)
{
console
.
log
(
str
);
...
...
src/types/trade.ts
View file @
bc66e71e
/* eslint-disable @typescript-eslint/no-explicit-any */
export
interface
iAsset
{
amount
:
number
;
exec
:
string
;
...
...
@@ -7,6 +8,7 @@ export interface iAsset {
export
interface
iTx
{
action_name
:
string
;
amount
:
number
;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
assets
:
any
[];
block_hash
:
string
;
block_time
:
number
;
...
...
chenqikuai
@chenqikuai
mentioned in commit
748f7ae1
·
Mar 03, 2022
mentioned in commit
748f7ae1
mentioned in commit 748f7ae18ac2f8eb14ee7c2865eaea786342a520
Toggle commit list
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