Commit 0f9a16d7 by 莫晓莉

打开资源库

parent 961a60c3
...@@ -1205,14 +1205,20 @@ props: ["dragItem"], ...@@ -1205,14 +1205,20 @@ props: ["dragItem"],
}, },
handleNodeClick(data,node){ handleNodeClick(data,node){
console.log('点击当前节点===',node); console.log('点击当前节点===',node);
this.curNodeText=node.data.text;//当前节点 if(node.data.leaf){
this.curNodeText=node.data.text;//当前节点
}else{
this.$message.error('请选择一个资源库!');
return;
}
this.nodePath=data.path;//当前选择数 this.nodePath=data.path;//当前选择数
this.curNodeIconCls=data.iconCls;//当前选中节点 this.curNodeIconCls=data.iconCls;//当前选中节点
console.log('当前节点的文件夹路径:',this.nodePath); console.log('当前节点的文件夹路径:',this.nodePath);
// console.log(data,'当前节点的父节点:',node.parent.data); // console.log(data,'当前节点的父节点:',node.parent.data);
let pamer = new FormData(); // 创建form对象 let pamer = new FormData(); // 创建form对象
pamer.append("path", this.nodePath); pamer.append("path", this.nodePath);
pamer.append("type", "transformation"); pamer.append("type", "transformation");
open(pamer).then(res=>{ open(pamer).then(res=>{
console.log(res,'返回空白画布xml'); console.log(res,'返回空白画布xml');
this.blankCanvas = res; this.blankCanvas = res;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment