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

bug fixed

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