diff --git a/src/assets/css/components/views/location/location.scss b/src/assets/css/components/views/location/location.scss index 89797c15..adbb3fe5 100644 --- a/src/assets/css/components/views/location/location.scss +++ b/src/assets/css/components/views/location/location.scss @@ -16,6 +16,23 @@ $color-highlight: #CC4444; padding: 0 20px 20px; position: relative; + .subscriber-tags { + display: flex; + flex-wrap: wrap; + + .subscriber-tag { + display: flex; + justify-content: center; + margin: 0 6px 6px 0; + height: 20px; + line-height: 20px; + padding: 0 6px; + font-size: 12px; + border: 1px solid; + border-radius: 2px; + } + } + .location-tabs { .traceTracking-tabs_label { display: flex; diff --git a/src/utils/api.js b/src/utils/api.js index b80dc7fc..ba8ae2c4 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -334,6 +334,7 @@ export const api = { subscriberBasicInfo: apiVersion + '/entity/explorer/detail/basic/subscriber', // subscriber实体响应 domainTags: apiVersion + '/entity/explorer/detail/kb/intelligence/tag/domain', // Domain实体标签响应结果 ipTags: apiVersion + '/entity/explorer/detail/kb/intelligence/tag/ip', // ip实体标签响应结果 + subscriberTags: apiVersion + '/entity/explorer/detail/kb/intelligence/tag/subscriber', // ip实体标签响应结果 domainThroughput: apiVersion + '/entity/explorer/detail/traffic/throughput/domain', // 实体流量信息 ipThroughput: apiVersion + '/entity/explorer/detail/traffic/throughput/ip', // 实体流量信息 appThroughput: apiVersion + '/entity/explorer/detail/traffic/throughput/app', // 实体流量信息 diff --git a/src/views/charts2/charts/entityDetail/EntityDetailBasicInfo.vue b/src/views/charts2/charts/entityDetail/EntityDetailBasicInfo.vue index 1f1b90dd..e84f7b57 100644 --- a/src/views/charts2/charts/entityDetail/EntityDetailBasicInfo.vue +++ b/src/views/charts2/charts/entityDetail/EntityDetailBasicInfo.vue @@ -130,13 +130,8 @@ export default { this.showError = false this.levelTwoTags = [] const basicInfoRequest = axios.get(`${api.entity.basicInfo}/${this.entity.entityType}?resource=${this.entity.entityName}`) - let requestArray = [] - if (this.entity.entityType === entityType.subscriber) { - requestArray = [null, basicInfoRequest] - } else { - const tagRequest = axios.get(`${api.entity.tags}/${this.entity.entityType}?resource=${this.entity.entityName}`) - requestArray = [tagRequest, basicInfoRequest] - } + const tagRequest = axios.get(`${api.entity.tags}/${this.entity.entityType}?resource=${this.entity.entityName}`) + const requestArray = [tagRequest, basicInfoRequest] Promise.all(requestArray).then(response => { const tagData = response[0] let tagError = '' diff --git a/src/views/charts2/charts/entityDetail/EntityDetailMap.vue b/src/views/charts2/charts/entityDetail/EntityDetailMap.vue index 5cf32d65..e2b9d70c 100644 --- a/src/views/charts2/charts/entityDetail/EntityDetailMap.vue +++ b/src/views/charts2/charts/entityDetail/EntityDetailMap.vue @@ -347,7 +347,7 @@ export default { const { href } = this.$router.resolve({ path: '/location/tracking', query: { - sid: this.entityValue, + subscriberId: this.entity.entityName, startTime: this.timeFilter.startTime, endTime: this.timeFilter.endTime, range: this.timeFilter.dateRangeValue diff --git a/src/views/entityExplorer/entityList/Row.vue b/src/views/entityExplorer/entityList/Row.vue index aaf167b8..09ece5a5 100644 --- a/src/views/entityExplorer/entityList/Row.vue +++ b/src/views/entityExplorer/entityList/Row.vue @@ -299,8 +299,12 @@ export default { url = api.entity.entityList.ipTags break } + case ('subscriber_id'): { + url = api.entity.entityList.subscriberTags + break + } } - if (this.entity.entityType === 'domain' || this.entity.entityType === 'ip' || this.entity.entityType === 'subscriber') { + if (this.entity.entityType === 'domain' || this.entity.entityType === 'ip' || this.entity.entityType === 'subscriber_id') { axios.get(`${url}?resource=${this.entity.entityValue}`).then(responese => { const res = responese.data if (responese.status === 200) { diff --git a/src/views/location/Index.vue b/src/views/location/Index.vue index 5d1f438a..013f8e4f 100644 --- a/src/views/location/Index.vue +++ b/src/views/location/Index.vue @@ -186,6 +186,14 @@
+ + + {{ tag.value }} + +
MSISDN
{{item.phoneNumber}}
@@ -202,14 +210,14 @@
APN
{{item.apn || '-'}}
-
+
{{$t('location.location')}}
{{locationHandler(item)}}
@@ -262,17 +270,29 @@
+ + + {{ tag.value }} + +
MSISDN
-
{{subscriber.phoneNumber}}
+
{{subscriber.phoneNumber || '-'}}
-
{{$t('entities.group')}}
-
Terrorist
+
IMEI
+
{{subscriber.imei || '-'}}
-
{{$t('overall.info')}}
-
Leader
+
IMSI
+
{{subscriber.imsi || '-'}}
+
+
+
APN
+
{{subscriber.apn || '-'}}
{{$t('overall.location')}}
@@ -372,6 +392,14 @@
+ + + {{ tag.value }} + +