c41fc04e by lihua

修复关系网右键菜单问题

1 parent 4f47f3ae
......@@ -143,7 +143,8 @@ const handleContextMenu = (model) => {
router.push({
name: 'metadataStandard',
query: {
standardGuid: model.guid
standardGuid: model.guid,
name: model.standardName
}
});
}
......
......@@ -80,7 +80,7 @@ const treeDataLoading = ref(false);
const nodeClick = (data) => {
const ele = <HTMLElement>document.querySelector(".g6-component-contextmenu")
if (ele) {
ele.style.display = "none"
ele.style.visibility = "hidden"
}
if (data.disabled) {
treeInfo.value.currentNodeKey = data.guid;
......
......@@ -463,6 +463,12 @@ function batchDelete () {
onActivated(() => {
if (route.query.standardGuid) {
treeInfo.value.currentNodeKey = route.query.standardGuid as string;
let obj = {
guid: route.query.standardGuid,
standardName: route.query.name
}
treeInfo.value.currentObj = obj;
nodeClick(obj);
}
})
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!