Commit e8853010 by 李耀琨

点击获取空画布xml

parent 5e610f23
...@@ -288,6 +288,17 @@ export function fileexplorer(data){ ...@@ -288,6 +288,17 @@ export function fileexplorer(data){
//返回画布初始xml
export function open(data){
return request({
url: 'etlweb/repository/open',
data,
method: 'post'
})
}
......
...@@ -355,6 +355,7 @@ import { ...@@ -355,6 +355,7 @@ import {
check,//编辑数据库 check,//编辑数据库
loginRepository,//连接数据库 loginRepository,//连接数据库
addRepository,//资源库信息 addRepository,//资源库信息
open
} from "@/api/kettle/link"; } from "@/api/kettle/link";
// import Establish from '../dialogs-components/establish.vue' // import Establish from '../dialogs-components/establish.vue'
// import Scan from '../dialogs-components/scan.vue' // import Scan from '../dialogs-components/scan.vue'
...@@ -378,6 +379,7 @@ export default { ...@@ -378,6 +379,7 @@ export default {
props: ["dragItem"], props: ["dragItem"],
data() { data() {
return { return {
blankCanvas:"",//空白画布xml
graph:null, graph:null,
flowData:[], flowData:[],
...@@ -1202,6 +1204,15 @@ props: ["dragItem"], ...@@ -1202,6 +1204,15 @@ props: ["dragItem"],
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对象
pamer.append("path", this.nodePath);
pamer.append("type", "transformation");
open(pamer).then(res=>{
console.log(res,'返回空白画布xml');
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