Commit 1d6eba4e by sunerhu

1.修复团队不显示职级

parent 4cd8b4d1
...@@ -64,8 +64,10 @@ ...@@ -64,8 +64,10 @@
<!-- </view> --> <!-- </view> -->
</view> </view>
<view class="d-td" v-if="item.itemType == '2'">{{ item.levelName }}</view> <view class="d-td" >
<view class="d-td" v-else></view> <text v-if="item.itemType == '2'">{{ item.levelName }}</text>
<text v-else></text>
</view>
<view class="d-td" style="padding-right: 10rpx;">{{ item.count }}</view> <view class="d-td" style="padding-right: 10rpx;">{{ item.count }}</view>
</view> </view>
</block> </block>
...@@ -184,6 +186,7 @@ ...@@ -184,6 +186,7 @@
} }
}, },
checkLazy(id) { checkLazy(id) {
console.log(id, 1515515)
return ~this.lazyList.findIndex(o => o === id); return ~this.lazyList.findIndex(o => o === id);
}, },
checkOpen(id) { checkOpen(id) {
...@@ -200,6 +203,7 @@ ...@@ -200,6 +203,7 @@
this.openList = list; this.openList = list;
}, },
async open(item, index) { async open(item, index) {
console.log(item, 581515)
if(index == 0 || item.itemType == '2'){ if(index == 0 || item.itemType == '2'){
return false return false
} }
...@@ -220,7 +224,6 @@ ...@@ -220,7 +224,6 @@
icon: 'none' icon: 'none'
}); });
} }
console.log(res, 7744)
res.data.list.forEach((x) => { res.data.list.forEach((x) => {
this.$set(x, 'hasChildren', true) this.$set(x, 'hasChildren', true)
this.$set(x, 'children', []) this.$set(x, 'children', [])
...@@ -245,7 +248,6 @@ ...@@ -245,7 +248,6 @@
} }
}, },
setTreeNode(list = [], id, children = []) { setTreeNode(list = [], id, children = []) {
console.log(children, '值传过来了吗?')
const o = list.find(o => { const o = list.find(o => {
if (o.id === id) { if (o.id === id) {
o.children = children; o.children = children;
......
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