Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
traceSourceMb
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
yanyanhong
traceSourceMb
Commits
dc06cd09
Commit
dc06cd09
authored
May 28, 2020
by
yyh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码调整
parent
8e5d9185
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
constants.ts
src/const/constants.ts
+8
-0
ProofList.vue
src/views/ProofList.vue
+2
-9
No files found.
src/const/constants.ts
0 → 100644
View file @
dc06cd09
export
const
ActionList
=
{
blockChain
:
{
key
:
'blockChain'
,
icon
:
'shanglian1'
,
text
:
'上链'
},
edit
:
{
key
:
'edit'
,
icon
:
'bianji1'
,
text
:
'编辑'
},
del
:
{
key
:
'del'
,
icon
:
'shanchu3'
,
text
:
'删除'
},
copy
:
{
key
:
'copy'
,
icon
:
'fuzhi1'
,
text
:
'复制'
},
blockquery
:
{
key
:
'blockquery'
,
icon
:
'qukuailianchaxun'
,
text
:
'区块链查询'
},
copyhash
:
{
key
:
'copyhash'
,
icon
:
'fuzhiHashdizhi'
,
text
:
'复制hash地址'
},
del2
:
{
key
:
'del2'
,
icon
:
'shanchu3'
,
text
:
'删除'
},
};
src/views/ProofList.vue
View file @
dc06cd09
...
...
@@ -67,20 +67,13 @@ import { Component, Prop, Vue } from 'vue-property-decorator';
import
{
List
,
Popup
,
Button
,
Image
,
Picker
,
Grid
,
GridItem
,
Empty
}
from
'vant'
;
import
ProofItem
from
'@/components/ProofItem.vue'
;
import
{
ChainStatus
}
from
'@/const/enum'
;
import
{
ActionList
}
from
'@/const/constants'
;
const
ChainStatusStr
:
any
=
{
[
ChainStatus
.
NONE
]:
'未上链'
,
[
ChainStatus
.
CHAINING
]:
'上链中'
,
[
ChainStatus
.
SUCCESS
]:
'已上链'
,
[
ChainStatus
.
FAILURE
]:
'上链失败'
,
};
const
ActionList
=
{
blockChain
:
{
key
:
'blockChain'
,
icon
:
'shanglian1'
,
text
:
'上链'
},
edit
:
{
key
:
'edit'
,
icon
:
'bianji1'
,
text
:
'编辑'
},
del
:
{
key
:
'del'
,
icon
:
'shanchu3'
,
text
:
'删除'
},
copy
:
{
key
:
'copy'
,
icon
:
'fuzhi1'
,
text
:
'复制'
},
blockquery
:
{
key
:
'blockquery'
,
icon
:
'qukuailianchaxun'
,
text
:
'区块链查询'
},
copyhash
:
{
key
:
'copyhash'
,
icon
:
'fuzhiHashdizhi'
,
text
:
'复制hash地址'
},
del2
:
{
key
:
'del2'
,
icon
:
'shanchu3'
,
text
:
'删除'
},
};
@
Component
({
components
:
{
ProofItem
,
...
...
@@ -131,7 +124,7 @@ export default class ProofList extends Vue {
del
:
()
=>
{
this
.
delProof
(
this
.
currentProof
.
id
);
},
copy
:
()
=>
{
this
.
copyProof
(
this
.
currentProof
);
},
blockquery
:
()
=>
{
this
.
goToBROWSER
();
},
copyhash
:
()
=>
{
this
.
copyHash
(
this
.
currentProof
)
},
copyhash
:
()
=>
{
this
.
copyHash
(
this
.
currentProof
)
;
},
del2
:
()
=>
{
this
.
abandonProof
(
this
.
currentProof
.
id
);
},
};
this
.
show
=
false
;
...
...
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