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
f54fd41c
Commit
f54fd41c
authored
Apr 02, 2021
by
莫晓莉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mxl
parent
75bf95a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
src/views/dashboard-kettle/components/designer/mxgraphDesigner.vue
+15
-7
No files found.
src/views/dashboard-kettle/components/designer/mxgraphDesigner.vue
View file @
f54fd41c
...
@@ -1250,11 +1250,14 @@ export default {
...
@@ -1250,11 +1250,14 @@ export default {
// console.log(cell.value.attributes,99999999999999);
// console.log(cell.value.attributes,99999999999999);
console
.
log
(
'获取cell--'
,
cell
);
// cell.title = cell.value.attributes.label.value;
//
cell.title = cell.value.attributes.label.value;
// cell.ctype = cell.value.attributes.ctype.value;
// cell.ctype = cell.value.attributes.ctype.value;
// let height = cell.geometry.height;
// let height = cell.geometry.height;
// let width = cell.geometry.width;
// let width = cell.geometry.width;
// let x = cell.geometry.x;
// let x = cell.geometry.x;
...
@@ -1288,6 +1291,8 @@ export default {
...
@@ -1288,6 +1291,8 @@ export default {
// height,
// height,
// style
// style
// );
// );
cell
.
title
=
cell
.
value
.
attributes
.
label
.
value
;
cell
.
ctype
=
cell
.
value
.
attributes
.
ctype
.
value
;
...
@@ -1305,6 +1310,7 @@ export default {
...
@@ -1305,6 +1310,7 @@ export default {
const
cell
=
this
.
R
.
pathOr
([],
[
"properties"
,
"cell"
],
evt
);
const
cell
=
this
.
R
.
pathOr
([],
[
"properties"
,
"cell"
],
evt
);
console
.
info
(
cell
);
// 在控制台输出双击的cell
console
.
info
(
cell
);
// 在控制台输出双击的cell
this
.
nodeData
=
cell
this
.
nodeData
=
cell
// this.setXml();
// this.setXml();
this
.
doubleClickCell
=
cell
;
this
.
doubleClickCell
=
cell
;
...
@@ -1388,7 +1394,7 @@ export default {
...
@@ -1388,7 +1394,7 @@ export default {
//更新
//更新
this
.
updateVisible
=
!
this
.
updateVisible
;
this
.
updateVisible
=
!
this
.
updateVisible
;
return
;
return
;
}
else
if
(
cell
.
ids
==
"step1
4
"
)
{
}
else
if
(
cell
.
ids
==
"step1
5
"
)
{
//文本文件输出
//文本文件输出
this
.
fileVisible
=
!
this
.
fileVisible
;
this
.
fileVisible
=
!
this
.
fileVisible
;
return
;
return
;
...
@@ -1400,15 +1406,15 @@ export default {
...
@@ -1400,15 +1406,15 @@ export default {
//插入、更新
//插入、更新
this
.
InsertOrUpdateVisible
=
!
this
.
InsertOrUpdateVisible
;
this
.
InsertOrUpdateVisible
=
!
this
.
InsertOrUpdateVisible
;
return
;
return
;
}
else
if
(
cell
.
ids
==
"step1
1
"
)
{
}
else
if
(
cell
.
ids
==
"step1
0
"
)
{
//删除
//删除
this
.
deleteVisible
=
!
this
.
deleteVisible
;
this
.
deleteVisible
=
!
this
.
deleteVisible
;
return
;
return
;
}
else
if
(
cell
.
ids
==
"step1
0
"
)
{
}
else
if
(
cell
.
ids
==
"step1
1
"
)
{
//SQL文件输出
//SQL文件输出
this
.
sqlVisible
=
!
this
.
sqlVisible
;
this
.
sqlVisible
=
!
this
.
sqlVisible
;
return
;
return
;
}
else
if
(
cell
.
ids
==
"step9"
)
{
}
else
if
(
cell
.
ids
==
"step9"
||
cell
.
ctype
==
"TextFileInput"
)
{
//Excel输出
//Excel输出
this
.
excelOutPutVisible
=
!
this
.
excelOutPutVisible
;
this
.
excelOutPutVisible
=
!
this
.
excelOutPutVisible
;
return
;
return
;
...
@@ -1733,10 +1739,10 @@ export default {
...
@@ -1733,10 +1739,10 @@ export default {
save
(
pamers
).
then
((
res
)
=>
{
save
(
pamers
).
then
((
res
)
=>
{
console
.
log
(
res
);
console
.
log
(
res
);
if
(
res
.
success
)
{
if
(
res
.
success
)
{
th
at
.
$message
.
success
(
"保存流程成功!暂时请查先看控制台。"
);
th
is
.
$message
.
success
(
"保存流程成功!暂时请查先看控制台。"
);
this
.
createGraph
();
this
.
createGraph
();
}
else
{
}
else
{
th
at
.
$message
.
error
(
res
.
errMsg
);
th
is
.
$message
.
error
(
res
.
errMsg
);
}
}
});
});
},
},
...
@@ -1832,6 +1838,7 @@ export default {
...
@@ -1832,6 +1838,7 @@ export default {
//输出组件保存************************
//输出组件保存************************
saveOutputDialog
(
params
){
saveOutputDialog
(
params
){
// var graph = getActiveGraph().getGraph();
// var graph = getActiveGraph().getGraph();
var
outPutForm
=
params
;
var
outPutForm
=
params
;
this
.
graph
.
getModel
().
beginUpdate
();
this
.
graph
.
getModel
().
beginUpdate
();
try
try
...
@@ -1845,6 +1852,7 @@ export default {
...
@@ -1845,6 +1852,7 @@ export default {
{
{
this
.
graph
.
getModel
().
endUpdate
();
this
.
graph
.
getModel
().
endUpdate
();
}
}
console
.
log
(
'保存组件到画布==='
,
this
.
graph
);
}
}
//输出组件保存******************/
//输出组件保存******************/
},
},
...
...
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