ef4436ab by lihua

修复关系网右键菜单问题

1 parent a250be3b
...@@ -143,7 +143,8 @@ const handleContextMenu = (model) => { ...@@ -143,7 +143,8 @@ const handleContextMenu = (model) => {
143 router.push({ 143 router.push({
144 name: 'metadataStandard', 144 name: 'metadataStandard',
145 query: { 145 query: {
146 standardGuid: model.guid 146 standardGuid: model.guid,
147 name: model.standardName
147 } 148 }
148 }); 149 });
149 } 150 }
......
...@@ -80,7 +80,7 @@ const treeDataLoading = ref(false); ...@@ -80,7 +80,7 @@ const treeDataLoading = ref(false);
80 const nodeClick = (data) => { 80 const nodeClick = (data) => {
81 const ele = <HTMLElement>document.querySelector(".g6-component-contextmenu") 81 const ele = <HTMLElement>document.querySelector(".g6-component-contextmenu")
82 if (ele) { 82 if (ele) {
83 ele.style.display = "none" 83 ele.style.visibility = "hidden"
84 } 84 }
85 if (data.disabled) { 85 if (data.disabled) {
86 treeInfo.value.currentNodeKey = data.guid; 86 treeInfo.value.currentNodeKey = data.guid;
......
...@@ -463,6 +463,12 @@ function batchDelete () { ...@@ -463,6 +463,12 @@ function batchDelete () {
463 onActivated(() => { 463 onActivated(() => {
464 if (route.query.standardGuid) { 464 if (route.query.standardGuid) {
465 treeInfo.value.currentNodeKey = route.query.standardGuid as string; 465 treeInfo.value.currentNodeKey = route.query.standardGuid as string;
466 let obj = {
467 guid: route.query.standardGuid,
468 standardName: route.query.name
469 }
470 treeInfo.value.currentObj = obj;
471 nodeClick(obj);
466 } 472 }
467 }) 473 })
468 474
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!