diff --git a/src/assets/css/components/views/charts2/linkDirectionGrid.scss b/src/assets/css/components/views/charts2/linkDirectionGrid.scss index 4a11a9c0..e69bfa89 100644 --- a/src/assets/css/components/views/charts2/linkDirectionGrid.scss +++ b/src/assets/css/components/views/charts2/linkDirectionGrid.scss @@ -88,7 +88,8 @@ $blue: #046ECA; .item-popover-header { display: flex; align-items: center; - line-height: 32px; + padding: 10px 0; + line-height: 14px; font-size: 14px; font-weight: 600; diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 43fb3242..422c2e82 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -119,11 +119,21 @@ const user = { } } }) - axios.get(api.config, { params: { ckey: 'link_info' } }).then(response => { + axios.get(`${api.knowledgeBase}/13?pageSize=-1`).then(response => { const res = response.data - if (response.status === 200 && res.page.list && res.page.list.length > 0) { - localStorage.setItem(storageKey.linkInfo, res.page.list[0].cvalue) + if (response.status === 200 && res.data.itemList && res.data.itemList.length > 0) { + res.data.itemList.sort((a, b) => { + if (a.inLinkId !== b.inLinkId) { + return a.inLinkId - b.inLinkId + } + return a.outLinkId - b.outLinkId + }) + localStorage.setItem(storageKey.linkInfo, JSON.stringify(res.data.itemList)) + } else { + localStorage.setItem(storageKey.linkInfo, '') } + }).catch(e => { + localStorage.setItem(storageKey.linkInfo, '') }) axios.get(api.config, { params: { ckey: 'schema_explore' } }).then(response => { const res = response.data diff --git a/src/views/charts2/Panel.vue b/src/views/charts2/Panel.vue index 17578ecd..4cf63349 100644 --- a/src/views/charts2/Panel.vue +++ b/src/views/charts2/Panel.vue @@ -124,7 +124,7 @@ export default { watch: { timeFilter: { handler () { - if (this.$route.path === '/panel/networkAppPerformance') { + if (this.$route.path === '/panel/networkAppPerformance' || this.$route.path === '/panel/linkMonitor') { this.$store.commit('resetScoreBase') this.queryScoreBase() if (this.lineQueryCondition || this.networkOverviewBeforeTab) { diff --git a/src/views/charts2/charts/linkMonitor/LinkBlock.vue b/src/views/charts2/charts/linkMonitor/LinkBlock.vue index 8578ab89..f6c154ba 100644 --- a/src/views/charts2/charts/linkMonitor/LinkBlock.vue +++ b/src/views/charts2/charts/linkMonitor/LinkBlock.vue @@ -25,7 +25,7 @@