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
c2ff9f86
Commit
c2ff9f86
authored
May 28, 2020
by
yyh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contants 提取
parent
43f862ec
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
14 deletions
+11
-14
ProofItem.vue
src/components/ProofItem.vue
+2
-7
constants.ts
src/const/constants.ts
+7
-0
ProofList.vue
src/views/ProofList.vue
+2
-7
No files found.
src/components/ProofItem.vue
View file @
c2ff9f86
...
...
@@ -11,14 +11,9 @@
<
script
lang=
"ts"
>
import
{
Component
,
Prop
,
Vue
,
Emit
}
from
'vue-property-decorator'
;
import
{
ChainStatus
}
from
'@/const/enum'
;
import
{
Icon
}
from
'vant'
;
const
ChainStatusStr
:
any
=
{
[
ChainStatus
.
NONE
]:
'未上链'
,
[
ChainStatus
.
CHAINING
]:
'上链中'
,
[
ChainStatus
.
SUCCESS
]:
'已上链'
,
[
ChainStatus
.
FAILURE
]:
'上链失败'
,
};
import
{
ChainStatus
}
from
'@/const/enum'
;
import
{
ChainStatusStr
}
from
'@/const/constants'
;
const
classEnum
:
any
=
{
[
ChainStatus
.
NONE
]:
'none'
,
[
ChainStatus
.
CHAINING
]:
'chaining'
,
...
...
src/const/constants.ts
View file @
c2ff9f86
import
{
ChainStatus
}
from
'./enum'
;
export
const
ActionList
=
{
blockChain
:
{
key
:
'blockChain'
,
icon
:
'shanglian1'
,
text
:
'上链'
},
edit
:
{
key
:
'edit'
,
icon
:
'bianji1'
,
text
:
'编辑'
},
del
:
{
key
:
'del'
,
icon
:
'shanchu3'
,
text
:
'删除'
},
...
...
@@ -6,3 +7,9 @@ export const ActionList = { blockChain: {key: 'blockChain', icon: 'shanglian1',
copyhash
:
{
key
:
'copyhash'
,
icon
:
'fuzhiHashdizhi'
,
text
:
'复制hash地址'
},
del2
:
{
key
:
'del2'
,
icon
:
'shanchu3'
,
text
:
'删除'
},
};
export
const
ChainStatusStr
:
any
=
{
[
ChainStatus
.
NONE
]:
'未上链'
,
[
ChainStatus
.
CHAINING
]:
'上链中'
,
[
ChainStatus
.
SUCCESS
]:
'已上链'
,
[
ChainStatus
.
FAILURE
]:
'上链失败'
,
};
src/views/ProofList.vue
View file @
c2ff9f86
...
...
@@ -67,13 +67,8 @@ 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
]:
'上链失败'
,
};
import
{
ActionList
,
ChainStatusStr
}
from
'@/const/constants'
;
@
Component
({
components
:
{
ProofItem
,
...
...
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