CN-1087 fix: 增加拓展深度和数量的提示语

This commit is contained in:
chenjinsong
2023-08-01 18:23:18 +08:00
parent 7f2d5ce52d
commit 0b36afdbe3
2 changed files with 4 additions and 5 deletions

View File

@@ -665,7 +665,7 @@ export default {
_this.rightBox.loading = false _this.rightBox.loading = false
} }
} else { } else {
// TODO 提示大于5层 this.$message.warning(this.$t('tip.maxExpandDepth'))
} }
_this.addItems(nodes, edges) _this.addItems(nodes, edges)
_this.cleanTempNodesAndTempEdges() _this.cleanTempNodesAndTempEdges()
@@ -783,7 +783,6 @@ export default {
return info.length return info.length
}, },
onCloseBlock () { onCloseBlock () {
// todo 关闭右侧graph面板
this.rightBox.mode = '' this.rightBox.mode = ''
this.rightBox.show = false this.rightBox.show = false
}, },
@@ -966,7 +965,7 @@ export default {
this.rightBox.loading = false this.rightBox.loading = false
} }
} else { } else {
// TODO 提示超过50 this.$message.warning(this.$t('tip.maxExpandCount'))
} }
}, },
async expandDetailList (nodeId, expandType) { async expandDetailList (nodeId, expandType) {
@@ -1021,7 +1020,7 @@ export default {
this.rightBox.loading = false this.rightBox.loading = false
} }
} else { } else {
// TODO 提示超过50 this.$message.warning(this.$t('tip.maxExpandCount'))
} }
} }
}, },

View File

@@ -27,7 +27,7 @@
<div class="digital-certificate-header padding-b-16"> <div class="digital-certificate-header padding-b-16">
<div class="digital-certificate-header__icon graph-header__icon"></div> <div class="digital-certificate-header__icon graph-header__icon"></div>
<div class="graph-list-content-header "> <div class="graph-list-content-header ">
{{ $t('entity.graph.expandedEntityCount') }}:&nbsp;&nbsp; {{ $t('entity.graph.expandedEntityCount') }}:&nbsp
<span>{{$_.get(node, 'sourceNode.myData.relatedEntity.' + $_.get(node, 'myData.entityType') + '.list', []).length}}</span> <span>{{$_.get(node, 'sourceNode.myData.relatedEntity.' + $_.get(node, 'myData.entityType') + '.list', []).length}}</span>
</div> </div>
</div> </div>