fix(测试跟踪): 测试跟踪首页列表数据切换问题
--bug=1032339 --user=王旭 【测试跟踪】首页-过去7天测试计划失败用例TOP 10-页数切换-显示暂无数据 https://www.tapd.cn/55049933/s/1435638
This commit is contained in:
parent
ebfe7786ba
commit
7e5ceb67ea
|
@ -178,7 +178,7 @@ export default {
|
||||||
homeTestPlanFailureCaseGet(
|
homeTestPlanFailureCaseGet(
|
||||||
this.projectId,
|
this.projectId,
|
||||||
this.pageSize,
|
this.pageSize,
|
||||||
this.currentPage
|
this.currentPage - 1
|
||||||
)
|
)
|
||||||
.then((r) => {
|
.then((r) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
|
|
@ -48,14 +48,29 @@ export default {
|
||||||
},
|
},
|
||||||
change: Function
|
change: Function
|
||||||
},
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
timer: null
|
||||||
|
};
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleSizeChange: function (size) {
|
handleSizeChange: function (size) {
|
||||||
this.$emit('update:pageSize', size)
|
this.$emit('update:pageSize', size);
|
||||||
this.change();
|
if (this.timer === null) {
|
||||||
|
this.timer = setTimeout(() => {
|
||||||
|
this.change();
|
||||||
|
this.timer = null;
|
||||||
|
}, 0);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleCurrentChange(current) {
|
handleCurrentChange(current) {
|
||||||
this.$emit('update:currentPage', current)
|
this.$emit('update:currentPage', current);
|
||||||
this.change();
|
if (this.timer === null) {
|
||||||
|
this.timer = setTimeout(() => {
|
||||||
|
this.change();
|
||||||
|
this.timer = null;
|
||||||
|
}, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue