perf: 优化测试用例每页显示速度

This commit is contained in:
Captain.B 2020-11-24 10:50:03 +08:00
parent f92209383b
commit a1b37a3c53
3 changed files with 9 additions and 2 deletions

@ -1 +1 @@
Subproject commit 57d6f78efa4b0300be188e8b024511ceef0873ed
Subproject commit 419c75bca64b7c5bfbd1194d7f0fd9919f0caa04

View File

@ -300,6 +300,9 @@ export default {
// param.nodeIds = this.selectNodeIds;
this.condition.nodeIds = this.selectNodeIds;
}
this.getData();
},
getData() {
if (this.currentProject) {
this.condition.projectId = this.currentProject.id;
this.result = this.$post(this.buildPagePath('/test/case/list'), this.condition, response => {
@ -374,6 +377,10 @@ export default {
this.selectRows.clear();
this.$emit('refresh');
},
showAll() {
this.condition = {components: TEST_CASE_CONFIGS};
this.getData();
},
showDetail(row, event, column) {
this.$emit('testCaseDetail', row);
},

@ -1 +1 @@
Subproject commit 71d57ae5d7f8bb5c93a29504ac6f2300dc189ce9
Subproject commit 33bbdb3f528c914bf333b2c1839dd6d3bbd9b569