fix: 暂时停止detection列表和networkoverview的事件接口的请求

This commit is contained in:
chenjinsong
2023-09-13 10:12:19 +08:00
parent 8958bd9ab9
commit c26d54b9dd
3 changed files with 12 additions and 6 deletions

View File

@@ -66,7 +66,7 @@ export default {
startTime: this.timeFilter && this.timeFilter.startTime ? getSecond(this.timeFilter.startTime) : '',
endTime: this.timeFilter && this.timeFilter.endTime ? getSecond(this.timeFilter.endTime) : ''
}
this.toggleLoading(true)
/*this.toggleLoading(true)
axios.get(api.netWorkOverview.ddosEventAnalysis, { params: params }).then(response => {
const res = response.data
if (response.status === 200) {
@@ -85,7 +85,8 @@ export default {
this.errorMsg = this.errorMsgHandler(e)
}).finally(() => {
this.toggleLoading(false)
})
})*/
this.toggleLoading(false)
}
},
mounted () {

View File

@@ -65,7 +65,7 @@ export default {
startTime: getSecond(this.timeFilter.startTime),
endTime: getSecond(this.timeFilter.endTime)
}
const dom = document.getElementById('chart1')
/*const dom = document.getElementById('chart1')
const dom2 = document.getElementById('chart2')
if (dom) {
if (!this.myChart) {
@@ -145,7 +145,12 @@ export default {
}).finally(() => {
this.loading2 = false
})
}
}*/
this.loading1 = false
this.loading2 = false
this.isNoData = true
this.isNoData2 = true
this.toggleLoading(false)
},
routerJump () {
const params = {

View File

@@ -610,7 +610,7 @@ export default {
pageSize: this.pageObj.pageSize,
pageNo: this.pageObj.pageNo
}
axios.get(api.detection[this.pageType].listBasic, { params }).then(response => {
/*axios.get(api.detection[this.pageType].listBasic, { params }).then(response => {
if (response.status === 200) {
this.listData = response.data.data.result
} else {
@@ -623,7 +623,7 @@ export default {
this.pageObj.total = data
}).catch(error => {
console.log(error)
})
})*/
},
timeRefreshChange () {
this.initNoData()