diff --git a/src/views/entityExplorer/entityList/Row.vue b/src/views/entityExplorer/entityList/Row.vue index bfaa6b60..5a0fb639 100644 --- a/src/views/entityExplorer/entityList/Row.vue +++ b/src/views/entityExplorer/entityList/Row.vue @@ -2,15 +2,20 @@
- - - +
- {{ entityData.ipAddr || entityData.domainName || entityData.appName || 'Unknown' }} + {{ + entityData.ipAddr || + entityData.domainName || + entityData.appName || + 'Unknown' + }}
@@ -35,7 +40,11 @@ @@ -58,7 +71,7 @@
{{ $t('entities.subcategory') }} :  {{ $t('entities.subcategory') }} :   {{ entityData.appSubcategory || '-' }}
@@ -72,30 +85,37 @@
- {{ $t('entities.sentThroughput') }} :   - - {{ - entityData.bytesSentRate ? unitConvert(entityData.bytesSentRate, unitTypes.byte).join(' ') + 'ps' : '-' - }} - + {{ + $t('entities.sentThroughput') + }} :   + {{ + entityData.bytesSentRate + ? unitConvert( + entityData.bytesSentRate, + unitTypes.byte, + ).join(' ') + 'ps' + : '-' + }}
-
+ v-if="entityData.entityType === 'domain'" + >
-
+ v-if="entityData.entityType === 'app'" + >
-
+ v-if="entityData.entityType === 'ip'" + >
@@ -103,44 +123,57 @@
- {{ $t('entities.receivedThroughput') }} :   - - {{ - entityData.bytesReceivedRate ? unitConvert(entityData.bytesReceivedRate, unitTypes.byte).join(' ') + 'ps' : '-' - }} - + {{ + $t('entities.receivedThroughput') + }} :   + {{ + entityData.bytesReceivedRate + ? unitConvert( + entityData.bytesReceivedRate, + unitTypes.byte, + ).join(' ') + 'ps' + : '-' + }} +
-
+ class="row__charts" + :id="`entityDetailReceived${entityType}${listMode}`" + v-if="entityData.entityType === 'domain'" + >
-
+ class="row__charts" + :id="`entityDetailReceived${entityType}${listMode}`" + v-if="entityData.entityType === 'app'" + >
-
+ class="row__charts" + :id="`entityDetailReceived${entityType}${listMode}`" + v-if="entityData.entityType === 'ip'" + >
{{ $t('entities.recentAlert') }} :   - {{ entityData.performanceCount }} + {{ entityData.performanceCount}}
- {{ $t('entities.recentSecurity') }} :   - {{ entityData.securityCount }} + {{ $t('entities.recentSecurity') }} :   + {{ entityData.securityCount}}
-
+
{{ $t('overall.detail') }}>
@@ -149,7 +182,10 @@
- +
@@ -184,15 +220,15 @@ export default { ipLocationRegion () { return function (entityData) { const hasProvinceAndCity = - entityData.ipLocationProvince && - entityData.ipLocationCity && - entityData.ipLocationProvince !== 'null' && - entityData.ipLocationCity !== 'null' + entityData.ipLocationProvince && + entityData.ipLocationCity && + entityData.ipLocationProvince !== 'null' && + entityData.ipLocationCity !== 'null' const hasProvince = - entityData.ipLocationProvince && - entityData.ipLocationProvince !== 'null' + entityData.ipLocationProvince && + entityData.ipLocationProvince !== 'null' const hasCity = - entityData.ipLocationCity && entityData.ipLocationCity !== 'null' + entityData.ipLocationCity && entityData.ipLocationCity !== 'null' if (hasProvinceAndCity) { return `${entityData.ipLocationProvince}, ${entityData.ipLocationCity}` } else if (hasProvince) {