fix: 修复detection列表展开时接口入参不全的问题
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
:page-type="pageType"
|
||||
:timeFilter="timeFilter"
|
||||
:key="index"
|
||||
:pageObj="pageObj"
|
||||
:ref="`detectionRow${index}`"
|
||||
:index="index"
|
||||
@switchCollapse="switchCollapse"
|
||||
|
||||
@@ -78,22 +78,26 @@
|
||||
v-if="pageType === detectionPageType.securityEvent"
|
||||
:detection="detection"
|
||||
:time-filter="timeFilter"
|
||||
:pageObj="pageObj"
|
||||
></detection-security-event-overview>
|
||||
<template v-else>
|
||||
<detection-performance-event-ip-overview
|
||||
v-if="detection.entityType === entityType.ip.toLowerCase()"
|
||||
:detection="detection"
|
||||
:time-filter="timeFilter"
|
||||
:pageObj="pageObj"
|
||||
></detection-performance-event-ip-overview>
|
||||
<detection-performance-event-domain-overview
|
||||
v-else-if="detection.entityType === entityType.domain.toLowerCase()"
|
||||
:detection="detection"
|
||||
:time-filter="timeFilter"
|
||||
:pageObj="pageObj"
|
||||
></detection-performance-event-domain-overview>
|
||||
<detection-performance-event-app-overview
|
||||
v-else-if="detection.entityType === entityType.app.toLowerCase()"
|
||||
:detection="detection"
|
||||
:time-filter="timeFilter"
|
||||
:pageObj="pageObj"
|
||||
></detection-performance-event-app-overview>
|
||||
</template>
|
||||
</div>
|
||||
@@ -123,7 +127,8 @@ export default {
|
||||
index: Number,
|
||||
timeFilter: Object,
|
||||
detection: Object,
|
||||
pageType: String // 安全事件、服务质量
|
||||
pageType: String, // 安全事件、服务质量
|
||||
pageObj: Object
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
|
||||
@@ -100,7 +100,8 @@ import _ from 'lodash'
|
||||
export default {
|
||||
name: 'DetectionPerformanceEventAppOverview',
|
||||
props: {
|
||||
detection: Object
|
||||
detection: Object,
|
||||
pageObj: Object
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
@@ -228,7 +229,7 @@ export default {
|
||||
queryBasic () {
|
||||
return new Promise((resolve, reject) => {
|
||||
try {
|
||||
getData(api.detection.performanceEvent.overviewBasic, { appName: this.detection.appName, startTime: this.detection.startTime }).then(data => {
|
||||
getData(api.detection.performanceEvent.overviewBasic, { appName: this.detection.appName, startTime: this.detection.startTime, endTime: this.detection.endTime, pageNo: this.pageObj.pageNo, pageSize: this.pageObj.pageSize }).then(data => {
|
||||
resolve(data[0])
|
||||
}).catch(error => {
|
||||
reject(error)
|
||||
|
||||
@@ -103,7 +103,8 @@ import _ from 'lodash'
|
||||
export default {
|
||||
name: 'DetectionPerformanceEventDomainOverview',
|
||||
props: {
|
||||
detection: Object
|
||||
detection: Object,
|
||||
pageObj: Object
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
@@ -259,7 +260,7 @@ export default {
|
||||
queryBasic () {
|
||||
return new Promise((resolve, reject) => {
|
||||
try {
|
||||
getData(api.detection.performanceEvent.overviewBasic, { domain: this.detection.domain, startTime: this.detection.startTime }).then(data => {
|
||||
getData(api.detection.performanceEvent.overviewBasic, { domain: this.detection.domain, startTime: this.detection.startTime, endTime: this.detection.endTime, pageNo: this.pageObj.pageNo, pageSize: this.pageObj.pageSize }).then(data => {
|
||||
resolve(data[0])
|
||||
}).catch(error => {
|
||||
reject(error)
|
||||
|
||||
@@ -94,7 +94,8 @@ import _ from 'lodash'
|
||||
export default {
|
||||
name: 'DetectionPerformanceEventIpOverview',
|
||||
props: {
|
||||
detection: Object
|
||||
detection: Object,
|
||||
pageObj: Object
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
@@ -220,7 +221,7 @@ export default {
|
||||
queryBasic () {
|
||||
return new Promise((resolve, reject) => {
|
||||
try {
|
||||
getData(api.detection.performanceEvent.overviewBasic, { serverIp: this.detection.serverIp, startTime: this.detection.startTime }).then(data => {
|
||||
getData(api.detection.performanceEvent.overviewBasic, { serverIp: this.detection.serverIp, startTime: this.detection.startTime, endTime: this.detection.endTime, pageNo: this.pageObj.pageNo, pageSize: this.pageObj.pageSize }).then(data => {
|
||||
resolve(data[0])
|
||||
}).catch(error => {
|
||||
reject(error)
|
||||
|
||||
Reference in New Issue
Block a user