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