|
@@ -116,12 +116,13 @@
|
|
|
api.graphic(data, res => {
|
|
|
res.Content.forEach(item => {
|
|
|
// 二级从属关系
|
|
|
- item.ChildGraphicTypeList.forEach(child => {
|
|
|
+ (item.ChildGraphicTypeList != null) && item.ChildGraphicTypeList.forEach(child => {
|
|
|
+
|
|
|
this.countNumber.forEach(number => {
|
|
|
if (number.GraphTypeName === child.GraphTypeName) { //二级名字
|
|
|
number.RelationTypeProjectList.forEach(counts => {
|
|
|
//对应子集
|
|
|
- child.RelationTypeProjectList.forEach(relation => {
|
|
|
+ (child.RelationTypeProjectList != null) && child.RelationTypeProjectList.forEach(relation => {
|
|
|
if (relation.Id === counts.Id) {
|
|
|
relation.count = counts.Count
|
|
|
}
|