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
8e5d9185
Commit
8e5d9185
authored
May 28, 2020
by
yyh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码结构调整
parent
e3450ad3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
ProofList.vue
src/views/ProofList.vue
+4
-10
No files found.
src/views/ProofList.vue
View file @
8e5d9185
...
...
@@ -131,9 +131,10 @@ export default class ProofList extends Vue {
del
:
()
=>
{
this
.
delProof
(
this
.
currentProof
.
id
);
},
copy
:
()
=>
{
this
.
copyProof
(
this
.
currentProof
);
},
blockquery
:
()
=>
{
this
.
goToBROWSER
();
},
copyhash
:
()
=>
{},
copyhash
:
()
=>
{
this
.
copyHash
(
this
.
currentProof
)
},
del2
:
()
=>
{
this
.
abandonProof
(
this
.
currentProof
.
id
);
},
};
this
.
show
=
false
;
obj
[
type
]();
}
private
async
getList
()
{
...
...
@@ -184,7 +185,6 @@ export default class ProofList extends Vue {
this
.
getList
();
}
private
delProof
(
proofId
:
number
)
{
this
.
show
=
false
;
this
.
$dialog
.
confirm
({
title
:
'提示'
,
message
:
'删除后,信息无法找回,确定要删除吗?'
,
...
...
@@ -204,7 +204,6 @@ export default class ProofList extends Vue {
});
}
private
abandonProof
(
proofId
:
number
)
{
this
.
show
=
false
;
this
.
$dialog
.
confirm
({
title
:
'是否确定删除该存证?'
,
message
:
'已删除的存证,在回收站里'
,
...
...
@@ -224,7 +223,6 @@ export default class ProofList extends Vue {
});
}
private
blockChainProof
(
proof
:
any
)
{
this
.
show
=
false
;
this
.
$dialog
.
confirm
({
title
:
'同意登记方声明'
,
message
:
'本登记人承诺上链信息的真实性,并自主完成上链操作,以作永恒记录,如有虚假,本登记人自愿承担因此产生的一切后果。'
,
...
...
@@ -244,7 +242,6 @@ export default class ProofList extends Vue {
});
}
private
async
copyProof
(
proof
:
any
)
{
this
.
show
=
false
;
await
this
.
$api
.
proof
.
add
(
proof
.
name
,
JSON
.
parse
(
proof
.
detail_information
));
this
.
$toast
.
success
(
'复制成功'
);
this
.
resetList
();
...
...
@@ -252,13 +249,10 @@ export default class ProofList extends Vue {
private
async
reName
(
proof
:
any
)
{
this
.
$toast
(
'重命名成功'
);
}
private
onCopyHash
(
)
{
this
.
show
=
false
;
private
copyHash
(
proof
:
any
)
{
this
.
$copyText
(
proof
.
hash
)
;
this
.
$toast
(
'hash地址复制成功'
);
}
private
onErrorCopyHash
()
{
this
.
$toast
.
fail
(
'复制失败'
);
}
private
goToBROWSER
()
{
location
.
href
=
process
.
env
.
VUE_APP_BROWSER
;
}
...
...
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