From 0c149eafce0aa47cbe45efcb40e4522ff8a3f50c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B4=AA=E6=B4=AA?= <2498601771@qq.com> Date: Thu, 14 Sep 2023 09:48:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9A=82=E6=97=B6=E5=8E=BB=E6=8E=89dete?= =?UTF-8?q?ction=E5=88=97=E8=A1=A8=E7=9A=84=E7=9B=B8=E5=85=B3=E5=9B=BE?= =?UTF-8?q?=E8=A1=A8=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/detections/Index.vue | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/src/views/detections/Index.vue b/src/views/detections/Index.vue index 27beb4b5..1491809b 100644 --- a/src/views/detections/Index.vue +++ b/src/views/detections/Index.vue @@ -282,7 +282,7 @@ export default { // 初始化顶部大柱状图 initEventSeverityTrendData (params) { this.loading = true - getData(api.detection[this.pageType].eventSeverityTrend, params).then(data => { + /* getData(api.detection[this.pageType].eventSeverityTrend, params).then(data => { this.eventSeverityData = data if (!this.$_.isEmpty(data)) { const dataMap = new Map() @@ -354,7 +354,11 @@ export default { this.$nextTick(() => { this.loading = false }) - }) + }) */ + const timer = setTimeout(() => { + this.loading = false + clearTimeout(timer) + }, 150) }, // 初始化左侧事件严重等级和小饼图 @@ -610,7 +614,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 +627,7 @@ export default { this.pageObj.total = data }).catch(error => { console.log(error) - })*/ + }) */ }, timeRefreshChange () { this.initNoData() @@ -685,16 +689,16 @@ export default { q: this.q } this.initEventSeverityTrendData(params) - this.initEventSeverityData(params) + // this.initEventSeverityData(params) if (this.pageType === detectionPageType.securityEvent) { - this.initOffenderIpData(params) - this.initOffenderLocationData(params) - this.initVictimIpData(params) - this.initVictimLocationData(params) - this.initSecurityTypeData(params) + // this.initOffenderIpData(params) + // this.initOffenderLocationData(params) + // this.initVictimIpData(params) + // this.initVictimLocationData(params) + // this.initSecurityTypeData(params) } else if (this.pageType === detectionPageType.performanceEvent) { - this.initActiveEntity(params) - this.initEventTypeData(params) + // this.initActiveEntity(params) + // this.initEventTypeData(params) } }, pageSize (val) {