fix(测试跟踪): 用例评审用例名称没有显示的问题

--bug=1013024 --user=李玉号 【测试跟踪】github#13324  用例评审页面,一直点向下图标 或者
下一条用例图标,从第9条用例,到第10条,第11条,中间会出现用例名称没有被显示的问题
https://www.tapd.cn/55049933/s/1154098

Closes #13324
This commit is contained in:
shiziyuan9527 2022-05-07 15:19:51 +08:00 committed by halo-ci-bot[bot]
parent 4c57eab181
commit 9d866434cd
2 changed files with 7 additions and 0 deletions

View File

@ -370,6 +370,7 @@ export default {
if (this.index === this.testCases.length - 1 && this.pageNum === this.pageTotal) {
return;
} else if (this.index === this.testCases.length - 1) {
// this.index = 0;
this.$emit('nextPage');
return;
}
@ -380,6 +381,7 @@ export default {
if (this.index === 0 && this.pageNum === 1) {
return;
} else if (this.index === 0) {
// this.index = this.pageSize - 1;
this.$emit('prePage');
return;
}

View File

@ -383,10 +383,15 @@ export default {
this.result = getTestReviewTestCase(this.currentPage, this.pageSize, this.condition, (data) => {
this.total = data.itemCount;
this.tableData = data.listObject;
this.getPreData();
if (callback && typeof callback === "function") {
callback();
}
setTimeout(() => {
this.$refs.table.reloadTable()
}, 200);
});
this.getNexPageData();
}
},
getNexPageData() {