fix: 去除部分todo,和完善报告初始化操作的判断

This commit is contained in:
刘洪洪
2023-06-09 10:35:13 +08:00
parent 0a13e99c43
commit ffec88289e
4 changed files with 3 additions and 7 deletions

View File

@@ -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
}

View File

@@ -291,7 +291,6 @@ export default {
let sum = 0
linkInfo.forEach((item) => {
// todo 此处需注意不明确接口返回的方向字段名是拼音还是汉字后期可能会变动缓存中的nextHop
if (s.linkDirection === item.nextHop) {
sum += item.bandwidth
}

View File

@@ -464,7 +464,6 @@ export default {
this.queryList({ ...this.pageObj, ...this.timeFilter })
this.queryListTotal({ ...this.timeFilter })
// todo 当前页面选择其他值,重刷界面仍会被重置,后续记得添加上
// 延时一秒避免初始化时pageSize为20pageNo为1也会调用“搜索”的情况
if (!this.initFlag) {
this.timer = setTimeout(() => {

View File

@@ -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页