Commit a9687865 by 李嘉林

筛选弹窗调接口优化

parent b6fddd95
...@@ -410,7 +410,9 @@ export default { ...@@ -410,7 +410,9 @@ export default {
}, },
}, },
created() { created() {
this.query_specification_name_and_values_list(); if(this.GoodsSpecificationNameAndValuesListResponseDTO.length==0) {
this.query_specification_name_and_values_list();
}
}, },
mounted() { mounted() {
let _this = this; let _this = this;
...@@ -430,13 +432,18 @@ export default { ...@@ -430,13 +432,18 @@ export default {
this.randomNumber = val.randomNumber; this.randomNumber = val.randomNumber;
this.hideBrandSelectFlag = val.hideBrandSelectFlag; this.hideBrandSelectFlag = val.hideBrandSelectFlag;
console.log(this.submitFliterVal,'-------------this.submitFliterVal') console.log(this.submitFliterVal,'-------------this.submitFliterVal')
this.getProductBrand(); if(this.brandList.length == 0) {
// 已经打开过弹窗赋值过不用再调用
this.getProductBrand();
}
// 商品列表组件打开获取一级分类筛选 // 商品列表组件打开获取一级分类筛选
if(this.sourceType == 1) { if(this.sourceType == 1 && this.categoryList.length == 0) {
this.getProductTopCategory(); this.getProductTopCategory();
} }
// 查询商品属性 // 商品属性查询
this.query_product_attribute_values_list(); if(this.attributeList.length == 0) {
this.query_product_attribute_values_list();
}
this.show = true; this.show = true;
}, },
close() { close() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment