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
59bc26c6
Commit
59bc26c6
authored
May 11, 2021
by
zlr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除目录判断
parent
7c1522a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
14 deletions
+9
-14
src/views/kettle/home2.vue
+9
-14
No files found.
src/views/kettle/home2.vue
View file @
59bc26c6
...
@@ -1208,22 +1208,17 @@ props: ["dragItem"],
...
@@ -1208,22 +1208,17 @@ props: ["dragItem"],
},
},
// 新建任务
// 新建任务
createJob
(){
createJob
(){
if
(
this
.
curNodeIconCls
==
'imageFolder'
){
this
.
estabDialogVisible
=
true
;
this
.
estabDialogVisible
=
true
;
this
.
estabTitle
=
'任务'
;
this
.
estabTitle
=
'任务'
;
}
else
{
this
.
$message
.
error
(
'请选择资源库中的一个目录'
);
}
},
},
// 新建目录
// 新建目录
createFile
(){
createFile
(){
if
(
this
.
curNodeIconCls
==
'imageFolder'
){
this
.
estabDialogVisible
=
true
;
this
.
estabDialogVisible
=
true
;
this
.
estabTitle
=
'目录'
;
this
.
estabTitle
=
'目录'
;
}
else
{
this
.
$message
.
error
(
'请选择资源库中的一个目录'
);
}
},
},
// 删除资源库文件
// 删除资源库文件
...
@@ -1255,7 +1250,7 @@ props: ["dragItem"],
...
@@ -1255,7 +1250,7 @@ props: ["dragItem"],
this
.
curNode
=
node
;
//当前选中节点
this
.
curNode
=
node
;
//当前选中节点
this
.
nodePath
=
data
.
path
;
//当前选择数
this
.
nodePath
=
data
.
path
;
//当前选择数
this
.
curNodeIconCls
=
node
.
data
.
iconCls
;
this
.
curNodeIconCls
=
node
.
data
.
iconCls
;
console
.
log
(
'当前节点的文件夹路径:'
,
this
.
nodePath
);
console
.
log
(
'当前节点的文件夹路径:'
,
this
.
nodePath
);
if
(
node
.
data
.
leaf
){
if
(
node
.
data
.
leaf
){
this
.
curNodeText
=
node
.
data
.
text
;
//当前节点
this
.
curNodeText
=
node
.
data
.
text
;
//当前节点
...
@@ -1269,7 +1264,7 @@ props: ["dragItem"],
...
@@ -1269,7 +1264,7 @@ props: ["dragItem"],
// this.tabShowFlag=true;//核心对象显项卡显示
// this.tabShowFlag=true;//核心对象显项卡显示
//mxl判断作业和转换----------------------
//mxl判断作业和转换----------------------
if
(
node
.
data
.
type
==
"transformation"
){
if
(
node
.
data
.
type
==
"transformation"
){
this
.
$refs
.
nodeMenu2
.
stepsFun
();
this
.
$refs
.
nodeMenu2
.
stepsFun
();
let
that
=
this
;
let
that
=
this
;
setTimeout
(
function
(){
setTimeout
(
function
(){
...
@@ -1302,10 +1297,10 @@ props: ["dragItem"],
...
@@ -1302,10 +1297,10 @@ props: ["dragItem"],
// this.$message.error('请选择一个资源库!');
// this.$message.error('请选择一个资源库!');
// return;
// return;
// }
// }
// console.log(data,'当前节点的父节点:',node.parent.data);
// console.log(data,'当前节点的父节点:',node.parent.data);
},
},
//修改资源库
//修改资源库
...
@@ -1340,7 +1335,7 @@ props: ["dragItem"],
...
@@ -1340,7 +1335,7 @@ props: ["dragItem"],
console
.
log
(
'导出资源库===='
);
console
.
log
(
'导出资源库===='
);
this
.
exportDialogVisible
=
true
;
this
.
exportDialogVisible
=
true
;
},
},
// 导入资源库弹窗
// 导入资源库弹窗
importTreeDialog
(){
importTreeDialog
(){
console
.
log
(
'导入资源库===='
);
console
.
log
(
'导入资源库===='
);
...
...
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