...
|
...
|
@@ -349,9 +349,9 @@ class FilterTools { |
|
|
condition.totalName;
|
|
|
}
|
|
|
} else if (k === 'style') {
|
|
|
const styleids = _.split(params.style, ',');
|
|
|
const styleids = (params.style || '') + ',';
|
|
|
const styleFinds = _.filter(filter.style,
|
|
|
style => _.some(styleids, id => _.parseInt(id) === style.style_id));
|
|
|
style => styleids.includes(`${style.style_id},`));
|
|
|
|
|
|
if (styleFinds.length) {
|
|
|
condition.name = styleFinds.length >= 2 ?
|
...
|
...
|
@@ -540,13 +540,13 @@ class FilterTools { |
|
|
const filter = _.get(origin, 'filter', {});
|
|
|
let styles = [];
|
|
|
const href = handleFilterUrl(baseUrl, params, {style: '${style}'});
|
|
|
const styleids = _.split(params.style, ',');
|
|
|
const styleids = (params.style || '') + ',';
|
|
|
|
|
|
_.each(filter.style, style => {
|
|
|
styles.push({
|
|
|
name: style.style_name,
|
|
|
href: href.replace('${style}', style.style_id),
|
|
|
checked: _.some(styleids, id => _.parseInt(id) === style.style_id),
|
|
|
checked: styleids.includes(`${style.style_id},`),
|
|
|
id: style.style_id
|
|
|
});
|
|
|
});
|
...
|
...
|
|