diff --git a/src/assets/css/components/views/entityExplorer/entityFilter.scss b/src/assets/css/components/views/entityExplorer/entityFilter.scss index d3061e4b..dec1ca45 100644 --- a/src/assets/css/components/views/entityExplorer/entityFilter.scss +++ b/src/assets/css/components/views/entityExplorer/entityFilter.scss @@ -59,4 +59,67 @@ } } } + + .entity-pop-custom { + padding: 0 10px 10px 10px; + border: 1px solid #EBEEF5; + position: absolute; + top: 210px; + left: 580px; + width: 420px; + height:370px; + color: #606266; + background: #fff; + border-radius: 4px; + z-index: 999999; + box-shadow: 0 0 10px #CCC; + box-sizing: border-box; + + .el-button--mini{ + padding: 5px 7px; + } + .pop-title{ + margin-left: 10px; + margin-top:17px; + font-family: Roboto-Black; + font-size: 16px; + color: #333333; + letter-spacing: 0; + line-height: 16px; + font-weight: 400; + span { + padding-left: 6px; + color: #333; + } + } + .filter-top-box { + margin-top: 12px; + width: 100%; + height: 350px; + .filter-top-body{ + height: 305px; + overflow: auto; + display: flex; + flex-direction: column; + .filter-top-type { + padding-left: 10px; + font-size: 14px; + color: #666666; + letter-spacing: 0; + font-weight: 400; + .top-table-percent{ + display:grid; + grid-template-columns: 50% auto; + grid-template-rows: 100%; + grid-row-gap: 0px; + grid-column-gap: 0px; + .top-table-progress{ + align-content: center; + padding-top: 8px; + } + } + } + } + } + } } diff --git a/src/components/entities/EntityTop.vue b/src/components/entities/EntityTop.vue new file mode 100644 index 00000000..0bb847ad --- /dev/null +++ b/src/components/entities/EntityTop.vue @@ -0,0 +1,145 @@ + + + + + + {{item.label}} + + + + + + {{item.value}}{{$t('overall.operator')}}{{item.label}} + + + + + + + + {{ scope.row.percent }}% + + + + + + + + + + + + + diff --git a/src/utils/api.js b/src/utils/api.js index b5826dcb..226a2762 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -26,7 +26,8 @@ export const api = { entityFilter: '/interface/entity/filter', ipThroughput: '/interface/entity/ip/detail/throughput', domainThroughput: '/interface/entity/domain/detail/throughput', - appThroughput: '/interface/entity/app/detail/throughput' + appThroughput: '/interface/entity/app/detail/throughput', + filterTop: '/interface/entity/filter/top' } /* panel */ diff --git a/src/views/entityExplorer/EntityFilter.vue b/src/views/entityExplorer/EntityFilter.vue index 26c10ce8..d61da250 100644 --- a/src/views/entityExplorer/EntityFilter.vue +++ b/src/views/entityExplorer/EntityFilter.vue @@ -1,30 +1,95 @@ - - - {{$t('entities.filter')}} - - {{filter.title}} - - - - - {{item.label}} + + + {{$t('entities.filter')}} + + {{filter.title}} + + + + + {{item.label}} + + {{item.value}} - {{item.value}} + + + + + - +