|
@@ -814,6 +814,10 @@ export default {
|
|
|
}
|
|
|
|
|
|
this.setRelation(relation,5);
|
|
|
+ }else { //重新插值后之后原来有关联的清除关系
|
|
|
+ let haveIndex = this.insertRelationArr.findIndex(_ => _.key===this.insertTargetCell.Uid);
|
|
|
+ haveIndex!==-1 && this.insertRelationArr.splice(haveIndex,1)
|
|
|
+ resetRelationStyle();
|
|
|
}
|
|
|
|
|
|
},
|
|
@@ -1033,6 +1037,10 @@ export default {
|
|
|
}
|
|
|
|
|
|
this.setRelation(relation,7);
|
|
|
+ }else { //重新插值后之后原来有关联的清除关系
|
|
|
+ let haveIndex = this.insertRelationArr.findIndex(_ => _.key===this.insertTargetCell.Uid);
|
|
|
+ haveIndex!==-1 && this.insertRelationArr.splice(haveIndex,1)
|
|
|
+ resetRelationStyle();
|
|
|
}
|
|
|
},
|
|
|
|