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
0c1107b6
Commit
0c1107b6
authored
Apr 02, 2021
by
李耀琨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://139.159.239.83:9093/mxl/ETL-admin
into master
parents
6f87fa5f
8900a0f7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
8 deletions
+43
-8
src/api/kettle/file.js
+8
-0
src/views/dashboard-kettle/components/designer/mxgraphDesigner.vue
+8
-6
src/views/kettle/home2.vue
+27
-2
No files found.
src/api/kettle/file.js
View file @
0c1107b6
...
...
@@ -245,6 +245,14 @@ export function doTrans(data) {
method
:
'post'
})
}
//删除资源库
export
function
drop
(
data
)
{
return
request
({
url
:
'etlweb/repository/drop'
,
data
,
method
:
'post'
})
}
...
...
src/views/dashboard-kettle/components/designer/mxgraphDesigner.vue
View file @
0c1107b6
...
...
@@ -1411,7 +1411,7 @@ export default {
//更新
this
.
updateVisible
=
!
this
.
updateVisible
;
return
;
}
else
if
(
cell
.
ids
==
"step1
4
"
)
{
}
else
if
(
cell
.
ids
==
"step1
5
"
)
{
//文本文件输出
this
.
fileVisible
=
!
this
.
fileVisible
;
return
;
...
...
@@ -1423,15 +1423,15 @@ export default {
//插入、更新
this
.
InsertOrUpdateVisible
=
!
this
.
InsertOrUpdateVisible
;
return
;
}
else
if
(
cell
.
ids
==
"step1
1
"
)
{
}
else
if
(
cell
.
ids
==
"step1
0
"
)
{
//删除
this
.
deleteVisible
=
!
this
.
deleteVisible
;
return
;
}
else
if
(
cell
.
ids
==
"step1
0
"
)
{
}
else
if
(
cell
.
ids
==
"step1
1
"
)
{
//SQL文件输出
this
.
sqlVisible
=
!
this
.
sqlVisible
;
return
;
}
else
if
(
cell
.
ids
==
"step9"
)
{
}
else
if
(
cell
.
ids
==
"step9"
||
cell
.
ctype
==
"TextFileInput"
)
{
//Excel输出
this
.
excelOutPutVisible
=
!
this
.
excelOutPutVisible
;
return
;
...
...
@@ -1757,10 +1757,10 @@ export default {
save
(
pamers
).
then
((
res
)
=>
{
console
.
log
(
res
);
if
(
res
.
success
)
{
th
at
.
$message
.
success
(
"保存流程成功!暂时请查先看控制台。"
);
th
is
.
$message
.
success
(
"保存流程成功!暂时请查先看控制台。"
);
this
.
createGraph
();
}
else
{
th
at
.
$message
.
error
(
res
.
errMsg
);
th
is
.
$message
.
error
(
res
.
errMsg
);
}
});
},
...
...
@@ -1855,6 +1855,7 @@ export default {
//输出组件保存************************
saveOutputDialog
(
params
){
// var graph = getActiveGraph().getGraph();
var
outPutForm
=
params
;
this
.
graph
.
getModel
().
beginUpdate
();
try
...
...
@@ -1868,6 +1869,7 @@ export default {
{
this
.
graph
.
getModel
().
endUpdate
();
}
console
.
log
(
'保存组件到画布==='
,
this
.
graph
);
}
//输出组件保存******************/
},
...
...
src/views/kettle/home2.vue
View file @
0c1107b6
...
...
@@ -28,6 +28,7 @@
</
template
>
</el-dropdown-item>
<el-dropdown-item
style=
"text-align:right"
@
click
.
native=
"createFile()"
>
新建目录
</el-dropdown-item>
<el-dropdown-item
style=
"text-align:right"
@
click
.
native=
"deleteFile()"
>
删除
</el-dropdown-item>
<el-dropdown-item
class=
"text-center"
>
打开
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
...
...
@@ -344,7 +345,7 @@ import dialogRemind from '../dialogs-components/dialog-remind'//删除提示弹
import
{
explorer
,
features
,
remove
,
checkInit
}
from
"@/api/kettle/file"
;
import
{
explorer
,
features
,
remove
,
checkInit
,
drop
}
from
"@/api/kettle/file"
;
import
{
types
,
getLinkList
,
...
...
@@ -381,6 +382,7 @@ export default {
props
:
[
"dragItem"
],
data
()
{
return
{
curNode
:{},
//删除资源库文件当前点击的节点
curNodeText
:
'数据库名称'
,
//当前点击选中的资源库节点
blankCanvas
:
""
,
//空白画布xml
graph
:
null
,
...
...
@@ -1218,9 +1220,32 @@ props: ["dragItem"],
}
},
// 删除资源库文件
deleteFile
(){
console
.
log
(
"删除当前节点=========="
,
this
.
curNode
);
var
path
=
this
.
curNode
.
data
.
path
;
var
type
=
this
.
curNode
.
data
.
type
;
if
(
type
==
null
){
type
=
''
}
let
pamer
=
new
FormData
();
// 创建form对象
pamer
.
append
(
"path"
,
path
);
pamer
.
append
(
"type"
,
type
);
drop
(
pamer
).
then
(
res
=>
{
if
(
res
){
console
.
log
(
'删除资源库文件=='
,
res
)
this
.
$message
.
success
(
'删除成功'
);
// 刷新
this
.
explorer
(
''
);
}
})
},
handleNodeClick
(
data
,
node
){
console
.
log
(
'点击当前节点==='
,
node
);
this
.
nodePath
=
data
.
path
;
//当前选择数
this
.
curNode
=
node
;
//当前选中节点
this
.
nodePath
=
data
.
path
;
//当前选择数
this
.
curNodeIconCls
=
data
.
iconCls
;
//当前选中节点
this
.
nodePath
=
data
.
path
;
console
.
log
(
'当前节点的文件夹路径:'
,
this
.
nodePath
);
...
...
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