refactor(测试跟踪): 优化变量名

This commit is contained in:
fit2-zhao 2020-10-15 18:35:53 +08:00
parent 25b40809db
commit 50ee06bff1
2 changed files with 10 additions and 10 deletions

View File

@ -68,7 +68,7 @@
</el-table-column>
</el-table>
<div v-if="!endStatus" style="text-align: center">{{$t('test_track.review_view.last_page')}}</div>
<div v-if="!lineStatus" style="text-align: center">{{$t('test_track.review_view.last_page')}}</div>
<div style="text-align: center"> {{total}} </div>
</el-main>
</el-container>
@ -130,7 +130,7 @@
pageSize: 50,
currentPage: 1,
total: 0,
endStatus: true,
lineStatus: true,
condition: {
components: TEST_CASE_CONFIGS
},
@ -217,7 +217,7 @@
item.checked = false;
});
this.testCases = this.testCases.concat(tableData);
this.endStatus = tableData.length === 50 && this.testCases.length < this.total;
this.lineStatus = tableData.length === 50 && this.testCases.length < this.total;
});
}
@ -251,7 +251,7 @@
},
loadData() {
if (this.dialogFormVisible) {
if (this.endStatus) {
if (this.lineStatus) {
this.currentPage += 1;
this.getTestCases();
}
@ -269,7 +269,7 @@
}
},
close() {
this.endStatus = false;
this.lineStatus = false;
this.selectIds.clear();
this.selectNodeIds = [];
this.selectNodeNames = [];

View File

@ -69,7 +69,7 @@
</el-table-column>
</el-table>
<div v-if="!endStatus" style="text-align: center">{{$t('test_track.review_view.last_page')}}</div>
<div v-if="!lineStatus" style="text-align: center">{{$t('test_track.review_view.last_page')}}</div>
<div style="text-align: center"> {{total}} </div>
</el-main>
</el-container>
@ -134,7 +134,7 @@
pageSize: 50,
currentPage: 1,
total: 0,
endStatus: true,
lineStatus: true,
condition: {
components: TEST_CASE_CONFIGS
},
@ -221,7 +221,7 @@
item.checked = false;
});
this.testReviews = this.testReviews.concat(tableData);
this.endStatus = tableData.length === 50 && this.testReviews.length < this.total;
this.lineStatus = tableData.length === 50 && this.testReviews.length < this.total;
});
}
@ -267,7 +267,7 @@
}
},
close() {
this.endStatus = false;
this.lineStatus = false;
this.selectIds.clear();
this.selectNodeIds = [];
this.selectNodeNames = [];
@ -303,7 +303,7 @@
},
loadData() {
if (this.dialogFormVisible) {
if (this.endStatus) {
if (this.lineStatus) {
this.currentPage += 1;
this.getReviews();
}