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
578288ec
Commit
578288ec
authored
Dec 30, 2020
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复“存证页面筛选条件选择未上链。然后随意查看一个后返回,筛选条件被重置了”的bug
parent
e1dc242b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
Index.vue
src/views/proof/Index.vue
+21
-0
No files found.
src/views/proof/Index.vue
View file @
578288ec
...
...
@@ -49,6 +49,7 @@
>
<van-picker
show-toolbar
:default-index=
"getDefaultChainFilterIndex"
:columns=
"columns"
@
cancel=
"showFilterPicker = false"
@
confirm=
"onConfirmFilter"
...
...
@@ -226,7 +227,23 @@ export default class Index extends Mixins(MixinProof) {
}
}
private
initFilter
()
{
const
filter
=
window
.
sessionStorage
.
getItem
(
'chainStatusFilter'
);
if
(
filter
!==
null
)
{
this
.
chainStatus
=
JSON
.
parse
(
filter
);
}
}
get
getDefaultChainFilterIndex
()
{
if
(
typeof
this
.
chainStatus
===
'number'
)
{
return
this
.
columns
.
findIndex
((
item
)
=>
item
.
status
===
this
.
chainStatus
);
}
else
{
return
0
;
}
}
private
mounted
()
{
this
.
initFilter
();
// 检查是否需要弹出 添加存证 弹出框,若是,则并且准备弹出
this
.
checkIfAddProofVisibleAndExe
();
Object
.
keys
(
ChainStatusStr
).
forEach
((
key
:
string
)
=>
{
...
...
@@ -259,6 +276,10 @@ export default class Index extends Mixins(MixinProof) {
}
private
onConfirmFilter
(
value
:
any
)
{
this
.
chainStatus
=
value
.
status
;
window
.
sessionStorage
.
setItem
(
'chainStatusFilter'
,
JSON
.
stringify
(
value
.
status
)
);
this
.
resetList
();
this
.
showFilterPicker
=
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