fix(测试跟踪): 首页缺陷统计跳转多次切换查询问题

--bug=1028190 --user=宋昌昌 【测试跟踪】首页-测试计划遗留缺陷统计-跳转后页面切换问题 https://www.tapd.cn/55049933/s/1402368
This commit is contained in:
song-cc-rock 2023-08-10 13:46:53 +08:00 committed by f2c-ci-robot[bot]
parent 379991d3ab
commit 87dd88209d
3 changed files with 16 additions and 3 deletions

View File

@ -83,12 +83,15 @@ export default {
this.pathName = '/track/plan/all';
} else if (to.path.indexOf("/track/case") >= 0) {
this.pathName = '/track/case/all?projectId=' + this.getProjectId();
} else if (to.path.indexOf("/track/issue") >= 0) {
this.pathName = '/track/issue'
} else if(to.path.indexOf("/track/home") >= 0) {
//
for (let menu of this.menus) {
if (hasPermission(menu.permission)) {
//
if(menu.path.indexOf("/track/home") >= 0) {
this.pathName = menu.path;
break;
} else {
//

View File

@ -135,9 +135,14 @@ export default {
);
break;
case "issue":
home = this.$router.resolve(
"/track/issue/" + uuid + "/" + dataType + "/" + selectType
);
home = this.$router.resolve({
name: "issueManagement",
params: {
id: uuid,
projectId: dataType,
dataSelectRange: selectType,
}
});
}
if (home) {
window.open(home.href, "_blank");

View File

@ -301,7 +301,10 @@ export default {
activated() {
if (this.$route.params.dataSelectRange) {
this.dataSelectRange = this.$route.params.dataSelectRange;
} else {
this.dataSelectRange = "";
}
console.log(this.dataSelectRange);
this.loading = true;
this.$nextTick(() => {
//
@ -469,6 +472,8 @@ export default {
this.page.condition.unClosedTestPlanIssue = true;
} else if (this.dataSelectRange === 'AllRelatedTestPlan') {
this.page.condition.allTestPlanIssue = true;
} else {
this.page.condition = {};
}
this.page.condition.projectId = this.projectId;
this.page.condition.workspaceId = this.workspaceId;