Commit e1dcedde by 杨北旺

查看切换权限报错修复

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