diff --git a/src/assets/css/components/views/charts2/graphRightDetailBlock.scss b/src/assets/css/components/views/charts2/graphRightDetailBlock.scss index dfc9a7a2..345804f8 100644 --- a/src/assets/css/components/views/charts2/graphRightDetailBlock.scss +++ b/src/assets/css/components/views/charts2/graphRightDetailBlock.scss @@ -103,7 +103,7 @@ $font-size: 12px; .graph-content-item { .graph-content-item-label, .graph-content-item-value { - width: 100px; + width: 130px; font-family: NotoSansSChineseRegular; font-size: $font-size; color: #717171; @@ -125,14 +125,8 @@ $font-size: 12px; .graph-content-relationship-item { justify-content: space-between; line-height: 24px; - cursor: pointer; - - &:hover { - background: rgba(135, 135, 135, 0.1); - } .graph-relationship-item-label, .graph-relationship-item-value { - font-family: NotoSansSChineseRegular; font-size: $font-size; color: #353636; font-weight: 400; @@ -148,6 +142,10 @@ $font-size: 12px; .graph-relationship-item-value { color: #717171; + + i { + cursor: pointer; + } } } } @@ -196,9 +194,6 @@ $font-size: 12px; .graph-expand-relationship__icon { font-size: 13px; - &:hover { - color: #D80000 !important; - } } .graph-basic-info__block-title { diff --git a/src/assets/css/components/views/charts2/graphRightListBlock.scss b/src/assets/css/components/views/charts2/graphRightListBlock.scss index beecb33f..aa2b5169 100644 --- a/src/assets/css/components/views/charts2/graphRightListBlock.scss +++ b/src/assets/css/components/views/charts2/graphRightListBlock.scss @@ -9,10 +9,9 @@ $font-size: 12px; margin-bottom: 10px; span { - font-family: PingFangSC-Semibold; font-size: 16px; color: #353636; - line-height: 22px; + line-height: 21px; font-weight: 600; } @@ -24,7 +23,6 @@ $font-size: 12px; } .graph-list-header-number { - font-family: NotoSansSChineseRegular; font-size: 12px; color: #717171; font-weight: 400; @@ -49,7 +47,6 @@ $font-size: 12px; display: flex; align-items: center; justify-content: center; - font-family: NotoSansHans-Medium; font-weight: 500; padding: 14px 10px; cursor: pointer; @@ -59,6 +56,11 @@ $font-size: 12px; font-size: 16px; margin-right: 7px; } + + &.graph-list-expand-btn--disabled { + opacity: .4; + cursor: default; + } } } @@ -73,15 +75,9 @@ $font-size: 12px; .graph-list-item-ip { margin-bottom: 10px; - font-family: NotoSansSChineseRegular; font-size: $font-size; color: #353636; font-weight: 400; - cursor: pointer; - - &:hover { - color: #D80000; - } } .graph-list-item-block { @@ -97,7 +93,6 @@ $font-size: 12px; .graph-list-item-label, .graph-list-item-label__app { width: 62px; //margin-right: 15px; - font-family: NotoSansSChineseRegular; font-size: $font-size; color: #717171; font-weight: 400; @@ -118,7 +113,6 @@ $font-size: 12px; } .graph-list-item-value { - font-family: NotoSansSChineseRegular; font-size: $font-size; color: #353636; font-weight: 400; diff --git a/public/images/entity-symbol2/app-colored.svg b/src/assets/img/entity-symbol2/app-colored.svg similarity index 100% rename from public/images/entity-symbol2/app-colored.svg rename to src/assets/img/entity-symbol2/app-colored.svg diff --git a/public/images/entity-symbol2/app.svg b/src/assets/img/entity-symbol2/app.svg similarity index 100% rename from public/images/entity-symbol2/app.svg rename to src/assets/img/entity-symbol2/app.svg diff --git a/public/images/entity-symbol2/domain-colored.svg b/src/assets/img/entity-symbol2/domain-colored.svg similarity index 100% rename from public/images/entity-symbol2/domain-colored.svg rename to src/assets/img/entity-symbol2/domain-colored.svg diff --git a/public/images/entity-symbol2/domain-colored2.svg b/src/assets/img/entity-symbol2/domain-colored2.svg similarity index 100% rename from public/images/entity-symbol2/domain-colored2.svg rename to src/assets/img/entity-symbol2/domain-colored2.svg diff --git a/public/images/entity-symbol2/domain.svg b/src/assets/img/entity-symbol2/domain.svg similarity index 100% rename from public/images/entity-symbol2/domain.svg rename to src/assets/img/entity-symbol2/domain.svg diff --git a/public/images/entity-symbol2/ip-colored.svg b/src/assets/img/entity-symbol2/ip-colored.svg similarity index 100% rename from public/images/entity-symbol2/ip-colored.svg rename to src/assets/img/entity-symbol2/ip-colored.svg diff --git a/public/images/entity-symbol2/ip.svg b/src/assets/img/entity-symbol2/ip.svg similarity index 100% rename from public/images/entity-symbol2/ip.svg rename to src/assets/img/entity-symbol2/ip.svg diff --git a/src/utils/api.js b/src/utils/api.js index 3fa6108f..efb68903 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -255,6 +255,8 @@ export const api = { informationAggregation: apiVersion + '/entity/detail/kb/intelligence/list', // 实体关系 entityGraph: { + basicInfo: apiVersion + '/entity/graph/relation/basic', + tags: apiVersion + '/entity/graph/relation/kb/intelligence/tag', relatedEntityCount: apiVersion + '/entity/graph/relation/summaryCount', domainRelatedIp: apiVersion + '/entity/graph/relation/domain/relate/ips', domainRelatedApp: apiVersion + '/entity/graph/relation/domain/relate/apps', diff --git a/src/views/charts/charts/IpBasicInfo.vue b/src/views/charts/charts/IpBasicInfo.vue index ba38933c..aa50526f 100644 --- a/src/views/charts/charts/IpBasicInfo.vue +++ b/src/views/charts/charts/IpBasicInfo.vue @@ -37,25 +37,15 @@ export default { location () { let location = '' if (this.chartInfo) { - if (this.chartInfo.country) { - location = this.chartInfo.country - if (this.chartInfo.province) { - location += ', ' - location += this.chartInfo.province - if (this.chartInfo.city) { - location += ', ' - location += this.chartInfo.city - } - } - } else if (this.chartInfo.province) { - location = this.chartInfo.province - if (this.chartInfo.city) { - location += ', ' - location += this.chartInfo.city - } - } else if (this.chartInfo.city) { + if (this.chartInfo.city) { location = this.chartInfo.city } + if (this.chartInfo.province) { + location = location ? `${this.chartInfo.province}, ${location}` : this.chartInfo.province + } + if (this.chartInfo.country) { + location = location ? `${this.chartInfo.country}, ${location}` : this.chartInfo.country + } } return location }, diff --git a/src/views/entityExplorer/EntityGraph.vue b/src/views/entityExplorer/EntityGraph.vue index 3fc337e2..aae9216e 100644 --- a/src/views/entityExplorer/EntityGraph.vue +++ b/src/views/entityExplorer/EntityGraph.vue @@ -7,28 +7,37 @@ v-model="rightBox.show" direction="rtl" custom-class="entity-graph__detail" + :close-on-click-modal="true" :modal="false" - :size="360" + :size="400" :with-header="false" destroy-on-close> - - - + + + @@ -39,53 +48,52 @@ diff --git a/src/views/entityExplorer/entityGraphDetail/AppOrDomainList.vue b/src/views/entityExplorer/entityGraphDetail/AppOrDomainList.vue deleted file mode 100644 index 1f96c9b2..00000000 --- a/src/views/entityExplorer/entityGraphDetail/AppOrDomainList.vue +++ /dev/null @@ -1,155 +0,0 @@ - - - diff --git a/src/views/entityExplorer/entityGraphDetail/DomainList.vue b/src/views/entityExplorer/entityGraphDetail/DomainList.vue new file mode 100644 index 00000000..1bd1037e --- /dev/null +++ b/src/views/entityExplorer/entityGraphDetail/DomainList.vue @@ -0,0 +1,111 @@ + + + diff --git a/src/views/entityExplorer/entityGraphDetail/GraphDetail.vue b/src/views/entityExplorer/entityGraphDetail/GraphDetail.vue index d0543955..5c5decd6 100644 --- a/src/views/entityExplorer/entityGraphDetail/GraphDetail.vue +++ b/src/views/entityExplorer/entityGraphDetail/GraphDetail.vue @@ -5,10 +5,10 @@
-
{{ entityType[entity.entityType] }}
+
{{ entityType[entity.type || entity.entityType] }}
-
{{ entity.entityName }}
+
{{ $_.get(entity, 'detailData.vertex', '') }}
@@ -30,15 +30,94 @@
-
-
{{ item.label }}:
-
{{ item.value || '-' }}
-
+ + +
+
@@ -47,28 +126,17 @@
-
- - - +
+
+
+ + {{ item.label }}: +
+
+ {{ item.value }}/{{ item.total }} + +
+
@@ -76,14 +144,8 @@ {{ item.label }}:
- {{ item.value.length }}/{{ item.total }} - - - + {{ item.value }}/{{ item.total }} +
@@ -95,13 +157,13 @@
- {{ $t('entity.graph.labels') }} + {{ $t('entity.graph.tags') }}
-
+
{{ic.value}}
@@ -112,15 +174,13 @@ - -