diff --git a/core/core-frontend/src/viewsnew/application/module/Leftmenu/index.vue b/core/core-frontend/src/viewsnew/application/module/Leftmenu/index.vue index bf37c55..e2404b5 100644 --- a/core/core-frontend/src/viewsnew/application/module/Leftmenu/index.vue +++ b/core/core-frontend/src/viewsnew/application/module/Leftmenu/index.vue @@ -127,7 +127,7 @@ function editClic(data:any){ window.open('/#/dvsCanvas?dvId=' +data.id, '_blank'); // window.open('/#/dvCanvas?dvId=' + "1097641013486424064", '_blank'); } -function addTreeChildNode(event:any,level:any,pid:any){ // // 添加子节点 +function addTreeChildNode(event:any,level:any,data:any){ // // 添加子节点 let element = document.getElementById("drag_main_area") if(element !=null){ const x = event.clientX; // 水平坐标(相对于元素边界) @@ -138,11 +138,11 @@ function addTreeChildNode(event:any,level:any,pid:any){ // // 添加子节点 popupType.value = 1 dataInfo.value={ appId:projectInfo.value.id, - pid: pid, + pid: data.id, level: level, nodeType: "", name:'', - type:'' + type:data.type } isTreeDrag.value = true } @@ -251,7 +251,7 @@ function delTreeClic(){ // 删除