diff --git a/src/assets/css/components/views/location/location.scss b/src/assets/css/components/views/location/location.scss index 0639d6bc..592374c4 100644 --- a/src/assets/css/components/views/location/location.scss +++ b/src/assets/css/components/views/location/location.scss @@ -800,16 +800,22 @@ $color-highlight: #CC4444; .hexagon-tooltip__body { padding: 8px 18px; + .body__header { + color: $color-human; + font-weight: bold; + font-size: 12px; + } + .body__timeline { display: flex; flex-direction: row; padding: 3px 0; .timeline-symbol { - margin-top: 6px; + margin-top: 8px; margin-right: 6px; - width: 8px; - height: 8px; + width: 5px; + height: 5px; border-radius: 50%; background-color: $color-circle; } @@ -821,7 +827,7 @@ $color-highlight: #CC4444; .item__label { padding-right: 10px; text-align: right; - width: 60px; + width: 40px; font-size: 12px; color: $color-text-primary; } diff --git a/src/utils/api.js b/src/utils/api.js index 43820d1c..394a3b3a 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -371,7 +371,8 @@ export const api = { list: apiVersion + '/locationIntelligence/list', followedSubscriber: apiVersion + '/locationIntelligence/followed/subscribers', tracking: apiVersion + '/locationIntelligence/trace/tracking', - follow: apiVersion + '/locationIntelligence/follow' + follow: apiVersion + '/locationIntelligence/follow', + geoLocation: apiVersion + 'locationIntelligence/geolocation' } } diff --git a/src/views/location/Index.vue b/src/views/location/Index.vue index 166dd864..2d21f236 100644 --- a/src/views/location/Index.vue +++ b/src/views/location/Index.vue @@ -109,7 +109,7 @@
MSISDN
-
{{$_.get(item, 'subscriberDto.phoneNumber', '-')}}
+
{{$_.get(item, 'phoneNumber', '-') || '-'}}
@@ -137,11 +137,7 @@
{{$t('location.location')}}
-
China, Shanghai
-
-
-
{{$t('location.phoneNumber')}}
-
{{item.phoneNumber}}
+
{{locationHandler(item)}}
@@ -166,7 +162,7 @@
MSISDN
-
{{$_.get(subscriber, 'subscriberDto.phoneNumber', '-')}}
+
{{$_.get(subscriber, 'phoneNumber', '-') || '-'}}
{{$t('overall.location')}}
-
China, Shanghai
+
{{locationHandler(subscriber)}}
{{ $t('location.trackRecord') }}
@@ -206,7 +202,7 @@
- {{$t('overall.location')}}: {{trackingSubscriberRecordMap[subscriber.subscriberId][0].subscriberLongitude}}, {{trackingSubscriberRecordMap[subscriber.subscriberId][0].subscriberLatitude}} + {{$t('overall.location')}}: {{locationHandler(trackingSubscriberRecordMap[subscriber.subscriberId][0])}}
{{ $t('location.timeOfArrival') }}: {{dateFormatByAppearance(Number(trackingSubscriberRecordMap[subscriber.subscriberId][0].time))}} @@ -232,7 +228,7 @@
- {{$t('overall.location')}}: {{record.subscriberLongitude}}, {{record.subscriberLatitude}} + {{$t('overall.location')}}: {{locationHandler(record)}}
{{ $t('location.timeOfArrival') }}: {{dateFormatByAppearance(Number(record.time))}} @@ -258,6 +254,7 @@
+
@@ -280,7 +277,7 @@
- +
@@ -293,16 +290,12 @@