mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-11-29 18:48:13 +08:00
fix(测试跟踪): 用例列表点击模块,url没有加上模块ID
This commit is contained in:
parent
17dd9c0730
commit
b6fcffa573
@ -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) {
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user