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

View File

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