Commit 9237fb2b authored by 吴春's avatar 吴春

11

parent b1c91a9d
...@@ -418,6 +418,7 @@ ...@@ -418,6 +418,7 @@
this.GetBrandClassList(); this.GetBrandClassList();
this.getBrandClassTree(); this.getBrandClassTree();
this.getPrizeList(); this.getPrizeList();
this.init();
// } // }
}, },
created() { created() {
...@@ -569,7 +570,7 @@ ...@@ -569,7 +570,7 @@
} }
} }
); );
this.init();
}, },
//获取分类树形结构 //获取分类树形结构
getBrandClassTree() { getBrandClassTree() {
...@@ -585,7 +586,13 @@ ...@@ -585,7 +586,13 @@
this.treeList = res.data; this.treeList = res.data;
if (res.data && res.data.length > 0) { if (res.data && res.data.length > 0) {
let first = res.data[0]; let first = res.data[0];
this.selectedBrandClass = first.label; if(this.msg.BrandClassId){
let item = res.data.find(x => x.value == this.msg.BrandClassId);
if(item){
first = item;
}
this.selectedBrandClass=item.label;
}
this.selectedSubClass = first.children && first.children.length > 0 ? first.children : this.selectedSubClass = first.children && first.children.length > 0 ? first.children :
null; null;
} }
......
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