fix(测试跟踪):测试计划报告跳转功能用例页面权限判断
--bug=1026111 --user=王旭 【测试跟踪】测试计划-报告-功能用例-点击ID-无项目权限-新增tab页并提示无权限 https://www.tapd.cn/55049933/s/1371147
This commit is contained in:
parent
4051eb1097
commit
1de6f5401a
|
@ -13,7 +13,7 @@
|
||||||
<el-link
|
<el-link
|
||||||
v-else
|
v-else
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="redirectFunctionCaseEditPage(row.caseId)"
|
@click="redirectFunctionCaseEditPage(row.caseId, row.projectId)"
|
||||||
>
|
>
|
||||||
{{ row.isCustomNum ? row.customNum : row.num }}
|
{{ row.isCustomNum ? row.customNum : row.num }}
|
||||||
</el-link>
|
</el-link>
|
||||||
|
@ -82,6 +82,9 @@ import PriorityTableItem from "../../../../../../common/tableItems/planview/Prio
|
||||||
import TypeTableItem from "../../../../../../common/tableItems/planview/TypeTableItem";
|
import TypeTableItem from "../../../../../../common/tableItems/planview/TypeTableItem";
|
||||||
import MethodTableItem from "../../../../../../common/tableItems/planview/MethodTableItem";
|
import MethodTableItem from "../../../../../../common/tableItems/planview/MethodTableItem";
|
||||||
import StatusTableItem from "../../../../../../common/tableItems/planview/StatusTableItem";
|
import StatusTableItem from "../../../../../../common/tableItems/planview/StatusTableItem";
|
||||||
|
import {hasPermission} from "metersphere-frontend/src/utils/permission";
|
||||||
|
import {getEditSimpleTestCase} from "@/api/testCase";
|
||||||
|
import {openCaseEdit} from "@/business/case/test-case";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "FunctionalCases",
|
name: "FunctionalCases",
|
||||||
|
@ -138,14 +141,12 @@ export default {
|
||||||
this.testCases = this.allTestCase;
|
this.testCases = this.allTestCase;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
redirectFunctionCaseEditPage(caseId) {
|
redirectFunctionCaseEditPage(caseId, projectId) {
|
||||||
let home = this.$router.resolve({
|
getEditSimpleTestCase(caseId)
|
||||||
name: "testCaseEdit",
|
.then((r) => {
|
||||||
params: {
|
openCaseEdit({caseId: caseId, projectId: projectId}, this);
|
||||||
caseId: caseId,
|
})
|
||||||
},
|
.catch(() => {});
|
||||||
});
|
|
||||||
window.open(home.href, "_blank");
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue