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
856f015a
Commit
856f015a
authored
Apr 06, 2021
by
莫晓莉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mxl---提交更新代码
parent
aa5a59d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
46 deletions
+22
-46
src/views/kettle/home2.vue
+2
-27
src/views/output-dialog/table-out.vue
+20
-19
No files found.
src/views/kettle/home2.vue
View file @
856f015a
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
</
template
>
</
template
>
</el-dropdown-item>
</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=
"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-item
class=
"text-center"
>
打开
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown-menu>
</el-dropdown>
</el-dropdown>
...
@@ -345,7 +344,7 @@ import dialogRemind from '../dialogs-components/dialog-remind'//删除提示弹
...
@@ -345,7 +344,7 @@ import dialogRemind from '../dialogs-components/dialog-remind'//删除提示弹
import
{
explorer
,
features
,
remove
,
checkInit
,
drop
}
from
"@/api/kettle/file"
;
import
{
explorer
,
features
,
remove
,
checkInit
}
from
"@/api/kettle/file"
;
import
{
import
{
types
,
types
,
getLinkList
,
getLinkList
,
...
@@ -382,7 +381,6 @@ export default {
...
@@ -382,7 +381,6 @@ export default {
props
:
[
"dragItem"
],
props
:
[
"dragItem"
],
data
()
{
data
()
{
return
{
return
{
curNode
:{},
//删除资源库文件当前点击的节点
curNodeText
:
'数据库名称'
,
//当前点击选中的资源库节点
curNodeText
:
'数据库名称'
,
//当前点击选中的资源库节点
blankCanvas
:
""
,
//空白画布xml
blankCanvas
:
""
,
//空白画布xml
graph
:
null
,
graph
:
null
,
...
@@ -1220,32 +1218,9 @@ props: ["dragItem"],
...
@@ -1220,32 +1218,9 @@ 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
){
handleNodeClick
(
data
,
node
){
console
.
log
(
'点击当前节点==='
,
node
);
console
.
log
(
'点击当前节点==='
,
node
);
this
.
curNode
=
node
;
//当前选中节点
this
.
nodePath
=
data
.
path
;
//当前选择数
this
.
nodePath
=
data
.
path
;
//当前选择数
this
.
curNodeIconCls
=
data
.
iconCls
;
//当前选中节点
this
.
curNodeIconCls
=
data
.
iconCls
;
//当前选中节点
this
.
nodePath
=
data
.
path
;
this
.
nodePath
=
data
.
path
;
console
.
log
(
'当前节点的文件夹路径:'
,
this
.
nodePath
);
console
.
log
(
'当前节点的文件夹路径:'
,
this
.
nodePath
);
...
...
src/views/output-dialog/table-out.vue
View file @
856f015a
...
@@ -307,27 +307,28 @@ export default ({
...
@@ -307,27 +307,28 @@ export default ({
}
}
},
},
props
:[
"title"
,
"nodePath"
,
"tableOutPutVisible"
,
"explorer"
,
"graph"
,
"doubleClickCell"
,
"getXmlVal"
,
"saveOutputDialog"
],
props
:{
//
props:{
title
:{
//
title:{
type
:
String
,
//
type:String,
default
:
''
//
default:''
},
//
},
nodePath
:{
//
nodePath:{
type
:
String
,
//
type:String,
default
:
''
//
default:''
},
//
},
tableOutPutVisible
:{
//
tableOutPutVisible:{
type
:
Boolean
,
//
type: Boolean,
default
:
false
//
default:false
},
//
},
explorer
:
Function
,
//
explorer:Function,
graph
:
Object
,
//
graph:Object,
doubleClickCell
:
Object
,
//
doubleClickCell:Object,
getXmlVal
:
String
,
//
getXmlVal:String,
saveOutputDialog
:
Function
//
saveOutputDialog:Function
},
//
},
mounted
(){
mounted
(){
},
},
...
...
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