Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Yasset Perez
pride-web
Commits
669c7996
Commit
669c7996
authored
Sep 06, 2018
by
shabai517
Browse files
fix search bug
parent
fbdd19a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/components/archive/Archive.vue
src/components/archive/Archive.vue
+4
-2
No files found.
src/components/archive/Archive.vue
View file @
669c7996
...
...
@@ -278,6 +278,7 @@
this
.
$http
.
get
(
this
.
facetsURL
+
'
?dateGap=%2B1YEAR&facetPageSize=100
'
)
.
then
(
function
(
res
){
//console.log('res.body._embedded',res.body._embedded);
let
facetsMap
=
res
.
body
.
_embedded
.
facets
;
this
.
fieldSelectors
=
[];
let
archiveObj
=
this
.
facetsConfigRes
.
body
.
archive
;
...
...
@@ -316,7 +317,7 @@
for
(
let
i
=
0
;
i
<
this
.
filterCombination
.
length
;
i
++
){
for
(
let
j
in
this
.
facetsConfigRes
.
body
.
archive
){
if
(
this
.
facetsConfigRes
.
body
.
archive
[
j
].
name
==
this
.
filterCombination
[
i
].
field
){
condition
+=
j
+
'
=
=
'
+
this
.
filterCombination
[
i
].
contains
+
'
,
'
condition
+=
j
+
'
=
'
+
this
.
filterCombination
[
i
].
contains
+
'
,
'
break
;
}
}
...
...
@@ -695,9 +696,10 @@
else
if
(
i
==
'
filter
'
){
if
(
query
[
i
]){
let
filterArray
=
query
[
i
].
split
(
'
,
'
);
console
.
log
(
'
filterArray
'
,
filterArray
);
this
.
filterCombination
=
[];
for
(
let
i
=
0
;
i
<
filterArray
.
length
;
i
++
){
let
facetsArray
=
filterArray
[
i
].
split
(
'
=
=
'
)
let
facetsArray
=
filterArray
[
i
].
split
(
'
=
'
)
let
item
=
{
condition
:
'
And
'
,
field
:
this
.
facetsConfigRes
.
body
.
archive
[
facetsArray
[
0
]].
name
,
...
...
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