From 7ae2c30eb4f67494657b03c0234aa74e9b5df509 Mon Sep 17 00:00:00 2001 From: hyx Date: Mon, 21 Mar 2022 15:11:14 +0800 Subject: [PATCH] =?UTF-8?q?CN-399=20Detection--=E6=9C=8D=E5=8A=A1=E8=B4=A8?= =?UTF-8?q?=E9=87=8F=E4=BA=8B=E4=BB=B6=20=E6=8C=87=E6=A0=87=E5=8F=98?= =?UTF-8?q?=E5=8C=96=E6=9B=B2=E7=BA=BF=E5=BC=80=E5=8F=91:=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=9F=A5=E8=AF=A2=E5=8F=82=E6=95=B0=E5=BA=94=E4=B8=BA?= =?UTF-8?q?=E7=A7=92=E7=BA=A7=E6=97=B6=E9=97=B4=E6=88=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DetectionPerformanceEventAppOverview.vue | 4 +- ...etectionPerformanceEventDomainOverview.vue | 319 ++++++++++-------- .../DetectionPerformanceEventIpOverview.vue | 4 +- 3 files changed, 176 insertions(+), 151 deletions(-) diff --git a/src/views/detections/overview/DetectionPerformanceEventAppOverview.vue b/src/views/detections/overview/DetectionPerformanceEventAppOverview.vue index bf278a79..d96596e1 100644 --- a/src/views/detections/overview/DetectionPerformanceEventAppOverview.vue +++ b/src/views/detections/overview/DetectionPerformanceEventAppOverview.vue @@ -160,8 +160,8 @@ export default { get(api.detection.performanceEvent.metric, { domain: this.detection.domain, - startTime: this.searchStartTime*1000, - endTime: this.searchEndTime*1000, + startTime: this.searchStartTime, + endTime: this.searchEndTime, }).then((response) => { if (response.code === 200) { resolve(response.data.result[0]) diff --git a/src/views/detections/overview/DetectionPerformanceEventDomainOverview.vue b/src/views/detections/overview/DetectionPerformanceEventDomainOverview.vue index 26655e6a..008f2b04 100644 --- a/src/views/detections/overview/DetectionPerformanceEventDomainOverview.vue +++ b/src/views/detections/overview/DetectionPerformanceEventDomainOverview.vue @@ -5,9 +5,9 @@
{{ computeSecondaryDomain(detection.domain) }} + class="row__content--link" + @click="goDetail('domain', computeSecondaryDomain(detection.domain))" + >{{ computeSecondaryDomain(detection.domain) }} + mounted () { + this.query() + }, + setup () { + return { + chartOption: metricOption, + } + }, + } + \ No newline at end of file diff --git a/src/views/detections/overview/DetectionPerformanceEventIpOverview.vue b/src/views/detections/overview/DetectionPerformanceEventIpOverview.vue index 0d433a0f..c84e80f1 100644 --- a/src/views/detections/overview/DetectionPerformanceEventIpOverview.vue +++ b/src/views/detections/overview/DetectionPerformanceEventIpOverview.vue @@ -183,8 +183,8 @@ export default { get(api.detection.performanceEvent.metric, { domain: this.detection.domain, - startTime: this.searchStartTime*1000, - endTime: this.searchEndTime*1000, + startTime: this.searchStartTime, + endTime: this.searchEndTime, }).then((response) => { if (response.code === 200) { resolve(response.data.result[0])