From 65461cd261938465e1e65ac718c4b0c021ed721b Mon Sep 17 00:00:00 2001 From: hanyuxia Date: Fri, 17 May 2024 17:51:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20CN-1660=20location=20map=20=E9=A1=B5=20?= =?UTF-8?q?subscriber=20=E5=88=97=E8=A1=A8=E6=94=B9=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/views/location/location.scss | 162 +++++++----- src/utils/constants.js | 17 +- src/views/location/Index.vue | 248 +++++++++--------- 3 files changed, 235 insertions(+), 192 deletions(-) diff --git a/src/assets/css/components/views/location/location.scss b/src/assets/css/components/views/location/location.scss index 2b9d43c2..0639d6bc 100644 --- a/src/assets/css/components/views/location/location.scss +++ b/src/assets/css/components/views/location/location.scss @@ -82,73 +82,6 @@ $color-highlight: #CC4444; .panel__time { display: flex; } - - .el-select { - .search-active { - float: left; - border-radius: 3px; - width: 6px; - height: 6px; - margin-right: 10px; - position: relative; - top: 50%; - transform: translateY(-50%); - text-align: center; - } - - .search-value { - font-size: 14px; - margin-right: 20px; - } - - .search-id { - color: var(--el-color-info); - } - - .search-follow__icon { - position: absolute; - top: 50%; - right: 10px; - transform: translateY(-50%); - color: $color-search-follow; - margin-right: 10px; - text-align: center; - - i { - font-size: 12px; - } - } - - .search-content { - display: flex; - flex-direction: column; - height: 100%; - justify-content: center; - } - - .active-icon { - background: $color-business; - } - - .inactive-icon { - background: $color-inactive; - } - - .search-select { - max-height: 250px; - } - - .search-select .el-scrollbar__wrap { - max-height: 250px; - overflow-y: auto; - } - - .el-select-dropdown .el-scrollbar .el-select-dropdown__wrap .el-scrollbar__view.el-select-dropdown__list .el-select-dropdown__item { - position: relative; - height: 48px; - line-height: 16px; - } - } } .el-tabs { @@ -302,9 +235,90 @@ $color-highlight: #CC4444; .analysis-statistics { width: 330px; - overflow-y: auto; + overflow-y: scroll; padding-right: 5px; + .analysis-statistics__search { + margin-bottom: 10px; + padding-left: 20px; + .el-select { + .search-active { + float: left; + border-radius: 3px; + width: 6px; + height: 6px; + margin-right: 10px; + position: relative; + top: 50%; + transform: translateY(-50%); + text-align: center; + } + .search-value { + font-size: 14px; + margin-right: 20px; + } + + .search-id { + color: var(--el-color-info); + } + + .search-follow__icon { + position: absolute; + top: 50%; + right: 10px; + transform: translateY(-50%); + color: $color-search-follow; + margin-right: 10px; + text-align: center; + + i { + font-size: 12px; + } + } + + .search-content { + display: flex; + flex-direction: column; + height: 100%; + justify-content: center; + } + + .active-icon { + background: $color-business; + } + + .inactive-icon { + background: $color-inactive; + } + + .search-select { + max-height: 250px; + } + + .search-select .el-scrollbar__wrap { + max-height: 250px; + overflow-y: auto; + } + + .el-select-dropdown .el-scrollbar .el-select-dropdown__wrap .el-scrollbar__view.el-select-dropdown__list .el-select-dropdown__item { + position: relative; + height: 48px; + line-height: 16px; + } + } + } + .analysis-statistics__condition { + display: flex; + justify-content: space-between; + margin-bottom: 10px; + padding-left: 20px; + font-size: 16px; + color: $color-text-primary; + .el-checkbox__label { + font-size: 14px; + color: $color-text-primary !important; + } + } .analysis-statistics__chart { margin: 0 0 10px 20px; height: 148px; @@ -411,6 +425,12 @@ $color-highlight: #CC4444; padding-left: 20px; font-size: 16px; color: $color-text-primary; + display: flex; + justify-content: space-between; + .el-checkbox__label { + font-size: 14px; + color: $color-text-primary !important; + } } .analysis-statistics__no-tracking-tip { @@ -511,10 +531,12 @@ $color-highlight: #CC4444; .cancel-follow { margin-right: 14px; - + height: 100%; + display: flex; + align-items: center; i { cursor: pointer; - font-size: 8px; + font-size: 12px; } } } diff --git a/src/utils/constants.js b/src/utils/constants.js index 8a92a60f..334a1348 100644 --- a/src/utils/constants.js +++ b/src/utils/constants.js @@ -54,7 +54,7 @@ export const largeCountryList = ['CN', 'US', 'RU', 'AU', 'CA', 'KZ', 'IN', 'BR'] export const dbTableColumnCustomizeConfig = [ { - version: '24.04.01', + version: '24.04.06', tableName: dbUserTableColumnCustomizeConfig },{ version: '24.04.01', @@ -2662,6 +2662,21 @@ export const defaultMapConfig = { defaultZoom: 12 // 默认缩放等级 } +export const mapLevelField = [ + { + level: 1, + field: 'first_location' + }, + { + level: 2, + field: 'second_location' + }, + { + level: 3, + field: 'third_location' + } +] + export const report = { timeRuleList: [ { name: 'overall.today', value: 'today' }, diff --git a/src/views/location/Index.vue b/src/views/location/Index.vue index 2b093d28..e97fc0ee 100644 --- a/src/views/location/Index.vue +++ b/src/views/location/Index.vue @@ -15,48 +15,6 @@
- - - -
- {{ item.phoneNumber }} - ID  {{ item.subscriberId }} -
- - - - -
- -
-
+
@@ -112,11 +71,28 @@
- {{$t('location.followedSubscribers')}} - + {{$t('location.subscribers')}} + +
+ +
+
+ + HexId:{{ curHexId }} + +
+
-