fix: 性能测试列表为空

This commit is contained in:
chenjianxing 2020-12-28 14:19:49 +08:00
parent 6ee91faf9e
commit 5f1adb6d34
3 changed files with 10 additions and 9 deletions

@ -1 +1 @@
Subproject commit f27d1609d77f7d6c988d37d709466e844d350e17 Subproject commit 79343a2763b014355f91fc21b2356a95ae437973

View File

@ -148,14 +148,15 @@ export default {
initTableData() { initTableData() {
if (this.projectId !== 'all') { if (this.projectId !== 'all') {
this.condition.projectId = this.projectId; this.condition.projectId = this.projectId;
if (!this.condition.projectId) {
return;
}
} }
if (this.condition.projectId) {
this.result = this.$post(this.buildPagePath(this.queryPath), this.condition, response => { this.result = this.$post(this.buildPagePath(this.queryPath), this.condition, response => {
let data = response.data; let data = response.data;
this.total = data.itemCount; this.total = data.itemCount;
this.tableData = data.listObject; this.tableData = data.listObject;
}); });
}
}, },
search(combine) { search(combine) {
this.initTableData(combine); this.initTableData(combine);

@ -1 +1 @@
Subproject commit 7d43154a7c19732407a8e9ace8a7d1ea13c91f36 Subproject commit 8cda5c873cd9985c97adb34efacf507167fa4182