From ffec88289eef9a4a6e5151cbd275aa7fdd863eae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B4=AA=E6=B4=AA?= <2498601771@qq.com> Date: Fri, 9 Jun 2023 10:35:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=BB=E9=99=A4=E9=83=A8=E5=88=86todo?= =?UTF-8?q?=EF=BC=8C=E5=92=8C=E5=AE=8C=E5=96=84=E6=8A=A5=E5=91=8A=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E6=93=8D=E4=BD=9C=E7=9A=84=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/charts2/charts/entityDetail/EntityDetailLine.vue | 1 - src/views/charts2/charts/linkMonitor/LinkBlock.vue | 1 - src/views/entityExplorer/EntityExplorer.vue | 1 - src/views/report/Report.vue | 7 +++---- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/views/charts2/charts/entityDetail/EntityDetailLine.vue b/src/views/charts2/charts/entityDetail/EntityDetailLine.vue index bb5e8e20..9ff4174d 100644 --- a/src/views/charts2/charts/entityDetail/EntityDetailLine.vue +++ b/src/views/charts2/charts/entityDetail/EntityDetailLine.vue @@ -581,7 +581,6 @@ export default { endTime: Math.ceil(params.areas[0].coordRange[1]) } - // 暂定框选最小范围为5分钟,后续可能会变动 if (rangeObj.endTime - rangeObj.startTime < 5 * 60 * 1000) { rangeObj.startTime = rangeObj.endTime - 5 * 60 * 1000 } diff --git a/src/views/charts2/charts/linkMonitor/LinkBlock.vue b/src/views/charts2/charts/linkMonitor/LinkBlock.vue index 85c2345e..a0290415 100644 --- a/src/views/charts2/charts/linkMonitor/LinkBlock.vue +++ b/src/views/charts2/charts/linkMonitor/LinkBlock.vue @@ -291,7 +291,6 @@ export default { let sum = 0 linkInfo.forEach((item) => { - // todo 此处需注意,不明确接口返回的方向字段名是拼音还是汉字,后期可能会变动缓存中的nextHop if (s.linkDirection === item.nextHop) { sum += item.bandwidth } diff --git a/src/views/entityExplorer/EntityExplorer.vue b/src/views/entityExplorer/EntityExplorer.vue index 412806ec..2d695bda 100644 --- a/src/views/entityExplorer/EntityExplorer.vue +++ b/src/views/entityExplorer/EntityExplorer.vue @@ -464,7 +464,6 @@ export default { this.queryList({ ...this.pageObj, ...this.timeFilter }) this.queryListTotal({ ...this.timeFilter }) - // todo 当前页面选择其他值,重刷界面仍会被重置,后续记得添加上 // 延时一秒,避免初始化时pageSize为20,pageNo为1也会调用“搜索”的情况 if (!this.initFlag) { this.timer = setTimeout(() => { diff --git a/src/views/report/Report.vue b/src/views/report/Report.vue index 57d8c01e..625fac30 100644 --- a/src/views/report/Report.vue +++ b/src/views/report/Report.vue @@ -158,7 +158,7 @@ export default { tableId: 'reportTable', builtinLeftLoading: false, builtinRightLoading: false, - getNum: -1 + isInit: true } }, /** @@ -257,9 +257,7 @@ export default { this.searchLabel.categoryId = this.builtinId } - // 该请求不知道为什么会走2次,此处留个记录,后续解决。 - this.getNum = this.getNum + 1 - if (this.getNum > 0) { + if (!this.isInit) { get(listUrl, this.searchLabel).then(response => { // this.tools.loading = false this.builtinRightLoading = false @@ -281,6 +279,7 @@ export default { } }) } + this.isInit = false }, /** * 点击左侧tab页