fix(测试计划): 测试计划详情-用例详情-修复左侧列表参数有问题的缺陷
--bug=1044144 --user=吕梦园 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001044144
This commit is contained in:
parent
5e2ef1d10a
commit
8fd06968bb
|
@ -313,7 +313,6 @@
|
||||||
try {
|
try {
|
||||||
caseListLoading.value = true;
|
caseListLoading.value = true;
|
||||||
const res = await getPlanDetailFeatureCaseList({
|
const res = await getPlanDetailFeatureCaseList({
|
||||||
projectId: appStore.currentProjectId,
|
|
||||||
testPlanId: route.query.id as string,
|
testPlanId: route.query.id as string,
|
||||||
keyword: keyword.value,
|
keyword: keyword.value,
|
||||||
current: pageNation.value.current || 1,
|
current: pageNation.value.current || 1,
|
||||||
|
@ -557,7 +556,17 @@
|
||||||
onBeforeMount(async () => {
|
onBeforeMount(async () => {
|
||||||
const lastPageParams = window.history.state.params ? JSON.parse(window.history.state.params) : null; // 获取上个页面带过来的表格查询参数
|
const lastPageParams = window.history.state.params ? JSON.parse(window.history.state.params) : null; // 获取上个页面带过来的表格查询参数
|
||||||
if (lastPageParams) {
|
if (lastPageParams) {
|
||||||
const { total, pageSize, current, keyword: _keyword, sort, moduleIds } = lastPageParams;
|
const {
|
||||||
|
total,
|
||||||
|
pageSize,
|
||||||
|
current,
|
||||||
|
keyword: _keyword,
|
||||||
|
sort,
|
||||||
|
moduleIds,
|
||||||
|
collectionId,
|
||||||
|
treeType,
|
||||||
|
projectId,
|
||||||
|
} = lastPageParams;
|
||||||
pageNation.value = {
|
pageNation.value = {
|
||||||
total: total || 0,
|
total: total || 0,
|
||||||
pageSize,
|
pageSize,
|
||||||
|
@ -567,6 +576,9 @@
|
||||||
otherListQueryParams.value = {
|
otherListQueryParams.value = {
|
||||||
sort,
|
sort,
|
||||||
moduleIds,
|
moduleIds,
|
||||||
|
collectionId,
|
||||||
|
treeType,
|
||||||
|
projectId,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
getPlanDetail();
|
getPlanDetail();
|
||||||
|
|
Loading…
Reference in New Issue