fix: 修复detection列表展开时接口入参不全的问题

This commit is contained in:
刘洪洪
2023-05-16 15:59:59 +08:00
parent 9848941464
commit c4fe2271e8
5 changed files with 16 additions and 7 deletions

View File

@@ -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)