Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
ETL-admin
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
莫晓莉
ETL-admin
Commits
1b3e4097
Commit
1b3e4097
authored
Apr 02, 2021
by
李耀锟
Browse files
Options
Browse Files
Download
Plain Diff
解决冲突
parents
a9e5c74f
82eb9552
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
6 deletions
+22
-6
src/views/kettle/home2.vue
+22
-6
No files found.
src/views/kettle/home2.vue
View file @
1b3e4097
...
...
@@ -93,7 +93,8 @@
<div
class=
"resize"
title=
"收缩侧边栏"
>
...
</div>
<div
class=
"mid"
>
<el-tabs
v-if=
"tabShowFlag"
style=
"margin-top:-5vh;margin-bottom:0;"
v-model=
"picName"
type=
"card"
closable
@
tab-remove=
"removeTab"
>
<el-tab-pane
label=
"数据库名称"
>
<!-- <el-tab-pane label="数据库名称" > -->
<el-tab-pane
:label=
"curNodeText"
>
<mxgraph-designer
ref=
"pic"
v-if=
"mxGraphShow"
:blankCanvas=
"blankCanvas"
></mxgraph-designer>
</el-tab-pane>
</el-tabs>
...
...
@@ -379,6 +380,7 @@ export default {
props
:
[
"dragItem"
],
data
()
{
return
{
curNodeText
:
'数据库名称'
,
//当前点击选中的资源库节点
blankCanvas
:
""
,
//空白画布xml
graph
:
null
,
flowData
:[],
...
...
@@ -1021,7 +1023,10 @@ props: ["dragItem"],
removeTab
(){},
removeTab
(){
// this.tabShowFlag=false;//关闭画布
// this.activeName="first";//关闭关闭资源库
},
//选出要传给后台的参数集合便于编辑方法 check
// chooseParams(objParams){
// var newObject={};
...
...
@@ -1200,16 +1205,18 @@ props: ["dragItem"],
},
handleNodeClick
(
data
,
node
){
console
.
log
(
'点击当前节点==='
,
node
);
this
.
nodePath
=
data
.
path
;
//当前选择数
this
.
curNodeIconCls
=
data
.
iconCls
;
//当前选中节点
console
.
log
(
'当前节点的文件夹路径:'
,
this
.
nodePath
);
// console.log(data,'当前节点的父节点:',node.parent.data);
if
(
node
.
data
.
leaf
){
this
.
curNodeText
=
node
.
data
.
text
;
//当前节点
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
console
.
log
(
res
,
'返回空白画布xml'
);
this
.
blankCanvas
=
res
;
// this.tabShowFlag=true;//核心对象显项卡显示
this
.
activeName
=
"second"
;
...
...
@@ -1226,6 +1233,15 @@ props: ["dragItem"],
})
}
// else{
// this.$message.error('请选择一个资源库!');
// return;
// }
// console.log(data,'当前节点的父节点:',node.parent.data);
},
//修改资源库
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment