提交 1d8cb1be 编写于 作者: Yuanzhao.dai's avatar Yuanzhao.dai

bug fixed

上级 94cb0b1e
......@@ -121,6 +121,7 @@
labelId: nodeItem[0].labelId,
label: nodeItem[0].labelName,
}
_this.selectedGroup.push(pushItem)
})
},
......@@ -189,8 +190,7 @@
watch: {
planChangeData(val) {
const _this = this
let labelList = val.yLabelList
console.log()
let labelList = val.yLabelList;
labelList.forEach(function (item, index) {
let nodeItem = _this.groupList.filter(function(item1){
return item1.labelId == item;
......@@ -198,8 +198,14 @@
let pushItem = {
labelId: nodeItem[0].labelId,
label: nodeItem[0].labelName,
}
};
const isPush = _this.selectedGroup.filter(function(t){
return t.labelId == pushItem.labelId;
})
if(!isPush.length) {
_this.selectedGroup.push(pushItem)
}
})
},
groupList(val) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册