diff --git a/src/assets/css/components/views/charts2/panel.scss b/src/assets/css/components/views/charts2/panel.scss
index 5e8d9f58..c094c480 100644
--- a/src/assets/css/components/views/charts2/panel.scss
+++ b/src/assets/css/components/views/charts2/panel.scss
@@ -129,5 +129,6 @@
font-size: 12px;
color: #353636;
font-weight: 400;
+ line-height: 12px;
margin-top: -2px !important;
}
diff --git a/src/assets/css/components/views/location/location.scss b/src/assets/css/components/views/location/location.scss
index 506fe40b..9be33b48 100644
--- a/src/assets/css/components/views/location/location.scss
+++ b/src/assets/css/components/views/location/location.scss
@@ -524,6 +524,12 @@ $color-highlight: #CC4444;
.header__title {
font-size: 16px;
+
+ i {
+ margin-left: 10px;
+ font-size: 12px;
+ cursor: pointer;
+ }
}
.header__content {
diff --git a/src/utils/api.js b/src/utils/api.js
index 3c95787e..b80dc7fc 100644
--- a/src/utils/api.js
+++ b/src/utils/api.js
@@ -380,6 +380,7 @@ export const api = {
count: apiVersion + '/locationIntelligence/active/count',
baseStation: apiVersion + '/locationIntelligence/baseStation',
list: apiVersion + '/locationIntelligence/list',
+ totalCount: apiVersion + '/locationIntelligence/list/count',
followedSubscriber: apiVersion + '/locationIntelligence/followed/subscribers',
tracking: apiVersion + '/locationIntelligence/trace/tracking',
follow: apiVersion + '/locationIntelligence/follow',
diff --git a/src/views/charts2/Panel.vue b/src/views/charts2/Panel.vue
index f3bec690..d88d0ade 100644
--- a/src/views/charts2/Panel.vue
+++ b/src/views/charts2/Panel.vue
@@ -7,18 +7,18 @@
Score:{{score}}
-
-
-
-
-
-
+
+
+
+
+
+
config.js > 默认值。
const dateRangeValue = rangeParam ? parseInt(rangeParam) : (DEFAULT_TIME_FILTER_RANGE.entity.subscriberKpi || 60)
diff --git a/src/views/charts2/charts/entityDetail/EntityDetailSubscriberTopApp.vue b/src/views/charts2/charts/entityDetail/EntityDetailSubscriberTopApp.vue
index b7abf6ff..2cb9d7da 100644
--- a/src/views/charts2/charts/entityDetail/EntityDetailSubscriberTopApp.vue
+++ b/src/views/charts2/charts/entityDetail/EntityDetailSubscriberTopApp.vue
@@ -67,9 +67,12 @@ export default {
const queryCondition = ref(query.queryCondition || '')
// 获取url携带的range、startTime、endTime
- const rangeParam = query.topAppRange
+ /*const rangeParam = query.topAppRange
const startTimeParam = query.topAppStartTime
- const endTimeParam = query.topAppEndTime
+ const endTimeParam = query.topAppEndTime*/
+ const rangeParam = query.range
+ const startTimeParam = query.startTime
+ const endTimeParam = query.endTime
// 优先级:url > config.js > 默认值。
const dateRangeValue = rangeParam ? parseInt(rangeParam) : (DEFAULT_TIME_FILTER_RANGE.entity.subscriberTopApp || 60)
diff --git a/src/views/entityExplorer/EntityExplorer.vue b/src/views/entityExplorer/EntityExplorer.vue
index d7696d40..1a236445 100644
--- a/src/views/entityExplorer/EntityExplorer.vue
+++ b/src/views/entityExplorer/EntityExplorer.vue
@@ -641,7 +641,8 @@ export default {
})
}
}).catch(e => {
- this.$message.error(e.response.data.message)
+ this.$message.error(this.errorMsgHandler(e))
+ console.error(e)
}).finally(() => {
this.newFilterData[index].loading = false
this.newFilterData[index].firstLoad = false
@@ -672,8 +673,10 @@ export default {
} else {
this.$message.error(response.data.message)
}
- }).catch(() => {
+ }).catch(e => {
this.listData = []
+ this.$message.error(this.errorMsgHandler(e))
+ console.error(e)
}).finally(() => {
this.listLoading = false
})
@@ -696,6 +699,7 @@ export default {
}
}).catch(e => {
console.error(e)
+ this.$message.error(this.errorMsgHandler(e))
this.summaryCount = { totalCount: 0, domainCount: 0, ipCount: 0, appCount: 0, subscriberCount: 0 }
}).finally(() => {
this.loadingCount = false
@@ -712,6 +716,9 @@ export default {
if (response.status === 200) {
this.pageObj.total = response.data.data.result
}
+ }).catch(e => {
+ this.$message.error(this.errorMsgHandler(e))
+ console.error(e)
})
},
handleQ (params) {
@@ -739,8 +746,9 @@ export default {
this.entityAppTotal = response.data.data.appCount
this.entitySubscriberTotal = response.data.data.subscriberCount
}
- }).catch((e) => {
- this.$message.error(e.response.data.message)
+ }).catch(e => {
+ this.$message.error(this.errorMsgHandler(e))
+ console.error(e)
}).finally(() => {
this.loadingDomain = false
this.loadingIp = false
@@ -756,7 +764,8 @@ export default {
this.entitySubscriberActive = response.data.data.subscriberCount
}
}).catch((e) => {
- this.$message.error(e.response.data.message)
+ this.$message.error(this.errorMsgHandler(e))
+ console.error(e)
}).finally(() => {
this.loadingDomainActive = false
this.loadingIpActive = false
@@ -853,7 +862,9 @@ export default {
}
})
this.$store.commit('setScoreBase', scoreBase)
- }).catch(() => {
+ }).catch(e => {
+ this.$message.error(this.errorMsgHandler(e))
+ console.error(e)
}).finally(() => {
})
},
diff --git a/src/views/entityExplorer/entityList/detailOverview/Subscriber.vue b/src/views/entityExplorer/entityList/detailOverview/Subscriber.vue
index 223335e9..68ad15f1 100644
--- a/src/views/entityExplorer/entityList/detailOverview/Subscriber.vue
+++ b/src/views/entityExplorer/entityList/detailOverview/Subscriber.vue
@@ -105,7 +105,7 @@
-
+
diff --git a/src/views/entityExplorer/entityList/detailOverview/SubscriberMap.vue b/src/views/entityExplorer/entityList/detailOverview/SubscriberMap.vue
index 0f994936..c9044833 100644
--- a/src/views/entityExplorer/entityList/detailOverview/SubscriberMap.vue
+++ b/src/views/entityExplorer/entityList/detailOverview/SubscriberMap.vue
@@ -273,11 +273,11 @@ export default {
if (find) {
this.trackingSubscriber.trackRecords = find.trackRecords
+ this.moveToCenter(find.trackRecords)
} else {
this.trackingSubscriber.trackRecords = []
}
this.trackingSubscriber.show = false
- this.moveToCenter(find.trackRecords)
} else {
this.trackingSubscriber.trackRecords = []
}
@@ -482,6 +482,7 @@ export default {
this.trackingHumanMarker = new maplibregl.Marker({ element: el }).setLngLat(coordinates).addTo(this.mapChart)
},
renderTrackingHexagon () {
+ this.bindTrackingHexagonEvents()
if (!this.currentShowSubscriber) {
return true
}
@@ -521,7 +522,6 @@ export default {
// 最后所在地的图标
const coordinate = h3ToGeo(currentShowSubscriberRecords[0].hexId)
this.renderTrackingMarker([coordinate[1], coordinate[0]])
- this.bindTrackingHexagonEvents()
}
},
mapLineDataConverter () {
@@ -649,12 +649,13 @@ export default {
}
}
},
- setup () {
- const dateRangeValue = DEFAULT_TIME_FILTER_RANGE.entity.subscriberMap || 60
+ setup (props) {
+ /* const dateRangeValue = DEFAULT_TIME_FILTER_RANGE.entity.subscriberMap || 60
const timeFilter = ref({ dateRangeValue })
const { startTime, endTime } = getNowTime(dateRangeValue)
timeFilter.value.startTime = startTime
- timeFilter.value.endTime = endTime
+ timeFilter.value.endTime = endTime */
+ const timeFilter = ref(_.cloneDeep(props.timeFilter))
const currentPoint = ref({})
const tooltip = ref({
diff --git a/src/views/location/Index.vue b/src/views/location/Index.vue
index 96c6bb1f..0e557312 100644
--- a/src/views/location/Index.vue
+++ b/src/views/location/Index.vue
@@ -74,7 +74,7 @@
- {{$t('location.subscribers')}}
+ {{$t('location.subscribers')}} {{subscribersTotalCount}}
@@ -111,7 +111,18 @@