Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
pingan-life-index-pro
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
c7c6e26e
authored
2020-06-04 11:50:30 +0800
by
joe
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
电子保单下拉变更
1 parent
5e0dd4ce
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
11 deletions
src/pages/custom-service/components/e-correspondence-head-list.js
src/pages/custom-service/components/e-correspondence-head-list.js
View file @
c7c6e26
...
...
@@ -74,20 +74,29 @@ export default {
// res.push({ "recordId": "10", "bizNo": "P000000000000323", "letterType": "5", "printTime": "2020-05-08 16:02:21", "key": "c4ace2829737459cb6c95f523e0f5223", "isRead": "Y" })
// }
// this.isReadCandiates = [{ "v": "N", "n": this.i18n.eCorrespondenceEnquiry.UnRead }, { "v": "Y", "n": this.i18n.eCorrespondenceEnquiry.Read }];
// 缓存,用于判断重复
for
(
let
index
=
0
;
index
<
res
.
length
;
index
++
)
{
let
letter
=
res
[
index
];
if
(
letter
.
letterType
==
"5"
)
{
this
.
originalList
.
push
(
letter
);
this
.
contentList
.
push
(
letter
);
}
}
this
.
initCandidates
();
});
},
initCandidates
()
{
this
.
letterTypeCandiates
=
[{
"v"
:
"5"
,
"n"
:
this
.
i18n
.
eCorrespondenceEnquiry
.
letterName
}];
// 缓存,用于判断重复
let
bizNoCache
=
[];
let
printTimeCache
=
[];
let
isReadCache
=
[];
let
letterTypeCache
=
[];
let
newBizNoCandidates
=
[],
newPrintTimeCandidates
=
[],
newIsReadCandiates
=
[];
for
(
let
index
=
0
;
index
<
res
.
length
;
index
++
)
{
let
letter
=
res
[
index
];
if
(
letter
.
letterType
==
"5"
)
{
let
bizNo
=
letter
.
bizNo
;
for
(
let
index
=
0
;
index
<
this
.
originalList
.
length
;
index
++
)
{
let
letter
=
this
.
originalList
[
index
];
let
bizNo
=
letter
.
policyCode
;
let
printTime
=
letter
.
printTime
.
split
(
" "
)[
0
];
let
isRead
=
letter
.
isRead
;
...
...
@@ -105,15 +114,10 @@ export default {
let
n
=
isRead
==
"Y"
?
this
.
i18n
.
eCorrespondenceEnquiry
.
Read
:
this
.
i18n
.
eCorrespondenceEnquiry
.
UnRead
;
newIsReadCandiates
.
push
({
v
:
isRead
,
n
:
n
});
}
this
.
originalList
.
push
(
letter
);
this
.
contentList
.
push
(
letter
);
}
}
this
.
bizNoCandidates
=
newBizNoCandidates
;
this
.
printTimeCandidates
=
newPrintTimeCandidates
;
this
.
isReadCandiates
=
newIsReadCandiates
;
});
},
onShowTipsOverHandler
(
event
,
item
,
index
)
{
let
child
=
event
.
currentTarget
.
childNodes
[
0
];
...
...
@@ -251,5 +255,11 @@ export default {
},
mounted
()
{
this
.
initData
();
this
.
$root
.
eventBus
.
$on
(
"langChange"
,
()
=>
{
try
{
this
.
initCandidates
();
}
catch
(
e
)
{
}
});
},
}
...
...
Please
register
or
sign in
to post a comment