fix(测试跟踪): 用例列表点击模块,url没有加上模块ID

This commit is contained in:
chenjianxing 2023-03-01 14:54:19 +08:00 committed by fit2-zhao
parent 17dd9c0730
commit b6fcffa573
2 changed files with 11 additions and 2 deletions

View File

@ -549,6 +549,10 @@ export default {
watch: {
'$route'(to) {
if (to.path.indexOf("/track/case/all") >= 0) {
if (to.query.moduleId) {
//
return;
}
this.getTemplateField();
let ids = this.$route.params.ids;
if (ids) {

View File

@ -66,6 +66,7 @@ import {
testCaseNodeEdit,
testCaseNodePos
} from "@/api/test-case-node";
import {hasPermission} from "@/business/utils/sdk-utils";
export default {
name: "TestCaseNodeTree",
@ -322,8 +323,9 @@ export default {
this.currentNode = node;
this.$emit("nodeSelectEvent", node, node.data.id === 'root' ? [] : nodeIds, pNodes);
// TAB
// this.nohupReloadTree(node.data.id);
//
this.nohupReloadTree(node.data.id);
},
nohupReloadTree(selectNodeId) {
if (this.projectId) {
@ -348,6 +350,9 @@ export default {
},
openMinderConfirm() {
let isTestCaseMinderChanged = useStore().isTestCaseMinderChanged;
if (!hasPermission('PROJECT_TRACK_CASE:READ+EDIT')) {
return false;
}
if (isTestCaseMinderChanged) {
this.$refs.isChangeConfirm.open();
}