Commit a9687865 by 李嘉林

筛选弹窗调接口优化

parent b6fddd95
......@@ -410,7 +410,9 @@ export default {
},
},
created() {
this.query_specification_name_and_values_list();
if(this.GoodsSpecificationNameAndValuesListResponseDTO.length==0) {
this.query_specification_name_and_values_list();
}
},
mounted() {
let _this = this;
......@@ -430,13 +432,18 @@ export default {
this.randomNumber = val.randomNumber;
this.hideBrandSelectFlag = val.hideBrandSelectFlag;
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.query_product_attribute_values_list();
// 商品属性查询
if(this.attributeList.length == 0) {
this.query_product_attribute_values_list();
}
this.show = true;
},
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