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
82eb9552
Commit
82eb9552
authored
Apr 01, 2021
by
莫晓莉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
显示画板资源库名称
parent
0f9a16d7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
12 deletions
+15
-12
src/views/kettle/home2.vue
+15
-12
No files found.
src/views/kettle/home2.vue
View file @
82eb9552
...
@@ -399,7 +399,7 @@ props: ["dragItem"],
...
@@ -399,7 +399,7 @@ props: ["dragItem"],
deleteLink
,
//删除资源库模块的方法
deleteLink
,
//删除资源库模块的方法
dialogVisibleRemind
:
false
,
//资源库信息删除提示弹窗
dialogVisibleRemind
:
false
,
//资源库信息删除提示弹窗
testDialogueFlag
:
false
,
//测试弹弹窗
testDialogueFlag
:
false
,
//测试弹弹窗
tabShowFlag
:
fals
e
,
//控制选项卡的显示和隐藏
tabShowFlag
:
tru
e
,
//控制选项卡的显示和隐藏
picName
:
''
,
//画板的标签明名称
picName
:
''
,
//画板的标签明名称
accessDataList
:[],
//连接类型
accessDataList
:[],
//连接类型
typesList
:[],
//资源库连接类型
typesList
:[],
//资源库连接类型
...
@@ -1024,8 +1024,8 @@ props: ["dragItem"],
...
@@ -1024,8 +1024,8 @@ props: ["dragItem"],
removeTab
(){
removeTab
(){
this
.
tabShowFlag
=
false
;
//关闭画布
//
this.tabShowFlag=false;//关闭画布
this
.
activeName
=
"first"
;
//关闭关闭资源库
//
this.activeName="first";//关闭关闭资源库
},
},
//选出要传给后台的参数集合便于编辑方法 check
//选出要传给后台的参数集合便于编辑方法 check
// chooseParams(objParams){
// chooseParams(objParams){
...
@@ -1205,24 +1205,18 @@ props: ["dragItem"],
...
@@ -1205,24 +1205,18 @@ props: ["dragItem"],
},
},
handleNodeClick
(
data
,
node
){
handleNodeClick
(
data
,
node
){
console
.
log
(
'点击当前节点==='
,
node
);
console
.
log
(
'点击当前节点==='
,
node
);
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);
if
(
node
.
data
.
leaf
){
this
.
curNodeText
=
node
.
data
.
text
;
//当前节点
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
;
this
.
tabShowFlag
=
true
;
//核心对象显项卡显示
//
this.tabShowFlag=true;//核心对象显项卡显示
this
.
activeName
=
"second"
;
this
.
activeName
=
"second"
;
// var xmlDocument = mxUtils.parseXml(res);
// var xmlDocument = mxUtils.parseXml(res);
...
@@ -1237,6 +1231,15 @@ props: ["dragItem"],
...
@@ -1237,6 +1231,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