Commit e1dcedde by 杨北旺

查看切换权限报错修复

1 parent 52321a03
......@@ -31,7 +31,7 @@
<div v-for="(item, index) in productList" :key="index" class="line_element_two" :class="curProductIndex == index ? 'line_element_two_active' : ''" @click="selectProductItem(index)">{{ item.productName }}</div>
</div>
<div class="tree_widget">
<el-tree v-if="productList.length" default-expand-all :data="productList[curProductIndex].merchantProTreeResponses" :props="defaultProps"></el-tree>
<el-tree v-if="productList.length" default-expand-all :data="newTreeList" :props="defaultProps"></el-tree>
<div v-if="productList.length == 0" class="no_data_icon">
<div class="nodata_wrap">
<img class="icon" src="../../assets/img/empty.png" />
......@@ -73,7 +73,8 @@ export default {
defaultProps: {
children: 'children',
label: 'label'
}
},
newTreeList: []
}
},
created() {
......@@ -105,6 +106,8 @@ export default {
},
selectProductItem(index) {
this.curProductIndex = index
let productList = this.productList
this.newTreeList = productList[index].merchantProTreeResponses || []
},
toBack() {
history.go(-1)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!