CN-1087 feat: 实体关系图完善

This commit is contained in:
chenjinsong
2023-07-14 16:50:30 +08:00
parent 19ca35b738
commit f334746a70
11 changed files with 139 additions and 49 deletions

View File

@@ -8,7 +8,7 @@
<span>{{ $t('entities.tab.relatedApp') }}</span>
</div>
<div class="graph-list-header-number">
{{ $t('entity.graph.associatedQuantity') }}:&nbsp;<span>{{entity.count}}</span>
{{ $t('entity.graph.associatedCount') }}:&nbsp;<span>{{entity.count}}</span>
</div>
</div>
@@ -25,7 +25,7 @@
<div class="digital-certificate-header padding-b-12">
<div class="digital-certificate-header__icon graph-header__icon"></div>
<div class="graph-list-content-header ">
{{ $t('entity.graph.expandedEntityQuantity') }}:&nbsp;&nbsp;
{{ $t('entity.graph.expandedEntityCount') }}:&nbsp;&nbsp;
<span>{{ entity.listData ? entity.listData.length : 0 }}</span>
</div>
</div>
@@ -107,9 +107,7 @@ export default {
},
expandList () {
// 继续拓展ip列表传递信息调用接口
if (!this.expandBtnDisable) {
this.$emit('expandList', this.entity.sourceName, this.entity.nodeId)
}
this.$emit('expandList', this.entity.sourceName, this.entity.nodeId)
}
},
mounted () {

View File

@@ -5,10 +5,10 @@
<div>
<div class="graph-list-header-title">
<i class="graph-list-header-icon cn-icon cn-icon-subdomain"></i>
<span>{{ entity.isSubdomain ? $t('entities.subdomain') : $t('entity.graph.resolveDomain') }}</span>
<span>{{ entity.isSubdomain ? $t('entities.subdomain') : (entity.sourceType === 'ip' ? $t('entity.graph.resolveDomain') : $t('entities.relatedDomain')) }}</span>
</div>
<div class="graph-list-header-number">
{{ $t('entity.graph.associatedQuantity') }}:&nbsp;<span>{{entity.count}}</span>
{{ $t('entity.graph.associatedCount') }}:&nbsp;<span>{{entity.count}}</span>
</div>
</div>
@@ -25,7 +25,7 @@
<div class="digital-certificate-header padding-b-12">
<div class="digital-certificate-header__icon graph-header__icon"></div>
<div class="graph-list-content-header ">
{{ $t('entity.graph.expandedEntityQuantity') }}:&nbsp;&nbsp;
{{ $t('entity.graph.expandedEntityCount') }}:&nbsp;&nbsp;
<span>{{ entity.listData ? entity.listData.length : 0 }}</span>
</div>
</div>
@@ -103,9 +103,7 @@ export default {
},
expandList () {
// 继续拓展ip列表传递信息调用接口
if (!this.expandBtnDisable) {
this.$emit('expandList', this.entity.sourceName, this.entity.nodeId)
}
this.$emit('expandList', this.entity.sourceName, this.entity.nodeId)
}
},
mounted () {

View File

@@ -153,7 +153,7 @@
</div>
<!--标签-->
<div v-if="entity.tags" class="digital-certificate graph-basic-info__block">
<div v-if="entity.tags && entity.tags.length > 1" class="digital-certificate graph-basic-info__block">
<div class="digital-certificate-header padding-b-10">
<div class="digital-certificate-header__icon graph-header__icon"></div>
<div class="graph-basic-info__block-title">
@@ -473,14 +473,14 @@ export default {
{
icon: 'cn-icon cn-icon-resolve-ip',
name: 'ip',
label: this.$t('entities.graph.resolveIp'),
label: this.$t('entities.tab.relatedIp'),
value: _.get(n.relatedEntityCount, 'ip.current', '0') || 0,
total: _.get(n.relatedEntityCount, 'ip.total', '0') || 0
},
{
icon: 'cn-icon cn-icon-subdomain',
name: 'domain',
label: this.$t('entity.graph.resolveDomain'),
label: this.$t('entities.relatedDomain'),
value: _.get(n.relatedEntityCount, 'domain.current', '0') || 0,
total: _.get(n.relatedEntityCount, 'domain.total', '0') || 0
}

View File

@@ -5,10 +5,10 @@
<div>
<div class="graph-list-header-title">
<i class="cn-icon cn-icon-resolve-ip graph-list-header-icon"></i>
<span>{{ $t('entities.graph.resolveIp') }}</span>
<span>{{ entity.sourceType === 'domain' ? $t('entities.graph.resolveIp') : $t('entities.tab.relatedIp') }}</span>
</div>
<div class="graph-list-header-number">
{{ $t('entity.graph.associatedQuantity') }}:&nbsp;<span>{{entity.count}}</span>
{{ $t('entity.graph.associatedCount') }}:&nbsp;<span>{{entity.count}}</span>
</div>
</div>
@@ -27,7 +27,7 @@
<div class="digital-certificate-header padding-b-16">
<div class="digital-certificate-header__icon graph-header__icon"></div>
<div class="graph-list-content-header ">
{{ $t('entity.graph.expandedEntityQuantity') }}:&nbsp;&nbsp;
{{ $t('entity.graph.expandedEntityCount') }}:&nbsp;&nbsp;
<span>{{ entity.listData ? entity.listData.length : 0 }}</span>
</div>
</div>