refactor: 前端查询日志显示前5块数据
This commit is contained in:
parent
b5f2afc4f8
commit
1215f15d00
|
@ -21,7 +21,7 @@
|
||||||
result: {},
|
result: {},
|
||||||
id: '',
|
id: '',
|
||||||
page: 1,
|
page: 1,
|
||||||
pageCount: 1,
|
pageCount: 5,
|
||||||
loading: false,
|
loading: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -44,7 +44,6 @@
|
||||||
let url = "/performance/report/log/" + this.id + "/" + resourceId + "/" + this.page;
|
let url = "/performance/report/log/" + this.id + "/" + resourceId + "/" + this.page;
|
||||||
this.$get(url, res => {
|
this.$get(url, res => {
|
||||||
let data = res.data;
|
let data = res.data;
|
||||||
this.pageCount = data.pageCount;
|
|
||||||
data.listObject.forEach(log => {
|
data.listObject.forEach(log => {
|
||||||
this.logContent.push(log);
|
this.logContent.push(log);
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue