fix(测试跟踪): 首页缺陷统计跳转多次切换查询问题
--bug=1028190 --user=宋昌昌 【测试跟踪】首页-测试计划遗留缺陷统计-跳转后页面切换问题 https://www.tapd.cn/55049933/s/1402368
This commit is contained in:
parent
379991d3ab
commit
87dd88209d
|
@ -83,12 +83,15 @@ export default {
|
||||||
this.pathName = '/track/plan/all';
|
this.pathName = '/track/plan/all';
|
||||||
} else if (to.path.indexOf("/track/case") >= 0) {
|
} else if (to.path.indexOf("/track/case") >= 0) {
|
||||||
this.pathName = '/track/case/all?projectId=' + this.getProjectId();
|
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) {
|
} else if(to.path.indexOf("/track/home") >= 0) {
|
||||||
// 默认跳转到首页
|
// 默认跳转到首页
|
||||||
for (let menu of this.menus) {
|
for (let menu of this.menus) {
|
||||||
if (hasPermission(menu.permission)) {
|
if (hasPermission(menu.permission)) {
|
||||||
// 如果有首页的权限则不处理
|
// 如果有首页的权限则不处理
|
||||||
if(menu.path.indexOf("/track/home") >= 0) {
|
if(menu.path.indexOf("/track/home") >= 0) {
|
||||||
|
this.pathName = menu.path;
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
// 否则跳转到第一个有权限的页面
|
// 否则跳转到第一个有权限的页面
|
||||||
|
|
|
@ -135,9 +135,14 @@ export default {
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
case "issue":
|
case "issue":
|
||||||
home = this.$router.resolve(
|
home = this.$router.resolve({
|
||||||
"/track/issue/" + uuid + "/" + dataType + "/" + selectType
|
name: "issueManagement",
|
||||||
);
|
params: {
|
||||||
|
id: uuid,
|
||||||
|
projectId: dataType,
|
||||||
|
dataSelectRange: selectType,
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
if (home) {
|
if (home) {
|
||||||
window.open(home.href, "_blank");
|
window.open(home.href, "_blank");
|
||||||
|
|
|
@ -301,7 +301,10 @@ export default {
|
||||||
activated() {
|
activated() {
|
||||||
if (this.$route.params.dataSelectRange) {
|
if (this.$route.params.dataSelectRange) {
|
||||||
this.dataSelectRange = this.$route.params.dataSelectRange;
|
this.dataSelectRange = this.$route.params.dataSelectRange;
|
||||||
|
} else {
|
||||||
|
this.dataSelectRange = "";
|
||||||
}
|
}
|
||||||
|
console.log(this.dataSelectRange);
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
// 解决错位问题
|
// 解决错位问题
|
||||||
|
@ -469,6 +472,8 @@ export default {
|
||||||
this.page.condition.unClosedTestPlanIssue = true;
|
this.page.condition.unClosedTestPlanIssue = true;
|
||||||
} else if (this.dataSelectRange === 'AllRelatedTestPlan') {
|
} else if (this.dataSelectRange === 'AllRelatedTestPlan') {
|
||||||
this.page.condition.allTestPlanIssue = true;
|
this.page.condition.allTestPlanIssue = true;
|
||||||
|
} else {
|
||||||
|
this.page.condition = {};
|
||||||
}
|
}
|
||||||
this.page.condition.projectId = this.projectId;
|
this.page.condition.projectId = this.projectId;
|
||||||
this.page.condition.workspaceId = this.workspaceId;
|
this.page.condition.workspaceId = this.workspaceId;
|
||||||
|
|
Loading…
Reference in New Issue