优化筛选

master
lemon橪 2021-11-11 16:42:41 +08:00
parent 91cc98e853
commit f8b388c968
1 changed files with 13 additions and 4 deletions

View File

@ -477,14 +477,19 @@ export default {
} }
}); });
this.params.brandId = this.params.brandId.join("@") || ""; this.params.brandId = this.params.brandId.join("@") || "";
console.log(this.params.brandId);
// () // ()
if (this.selectedWay["categoryId"][0]) { if (this.selectedWay["categoryId"][0]) {
this.params.categoryId = this.selectedWay["categoryId"][0].value; this.params.categoryId = this.selectedWay["categoryId"][0].value;
} }
// if (!this.params.prop) {
this.params.prop = []; this.params.prop = [];
} else {
this.params.prop = [this.params.prop];
}
this.selectedWay["prop"].forEach((item) => { this.selectedWay["prop"].forEach((item) => {
if (item.__selected) { if (item.__selected) {
this.params.prop.push(`${item.parent}_${item.title}`); this.params.prop.push(`${item.parent}_${item.title}`);
@ -499,8 +504,12 @@ export default {
} }
this.goodsList = []; this.goodsList = [];
this.loadData();
this.params.pageNumber = 1;
this.sortParams = this.params; this.sortParams = this.params;
this.loadData();
this.sortPopup = false; this.sortPopup = false;
}, },