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
972d8a7e
Commit
972d8a7e
authored
Apr 02, 2021
by
莫晓莉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
输出
parent
493e0bf1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
12 deletions
+37
-12
src/views/dashboard-kettle/components/designer/mxgraphDesigner.vue
+33
-11
src/views/output-dialog/table-out.vue
+4
-1
No files found.
src/views/dashboard-kettle/components/designer/mxgraphDesigner.vue
View file @
972d8a7e
...
@@ -812,27 +812,27 @@
...
@@ -812,27 +812,27 @@
<outDialog
<outDialog
ref=
"tableOutPut"
ref=
"tableOutPut"
:tableOutPutVisible
.
sync=
"tableOutPutVisible"
:tableOutPutVisible
.
sync=
"tableOutPutVisible"
:graph
.
sync=
"graph"
:doubleClickCell=
"doubleClickCell"
:getXmlVal=
"getXmlVal"
@
fathertrans=
"fathertrans"
></outDialog>
:
saveOutputDialog=
"saveOutputDialog"
:
graph
.
sync=
"graph"
:doubleClickCell=
"doubleClickCell"
:getXmlVal=
"getXmlVal"
@
fathertrans=
"fathertrans"
></outDialog>
<insertOrUpdate
<insertOrUpdate
ref=
"insertOrdate"
ref=
"insertOrdate"
:InsertOrUpdateVisible
.
sync=
"InsertOrUpdateVisible"
:InsertOrUpdateVisible
.
sync=
"InsertOrUpdateVisible"
></insertOrUpdate>
:saveOutputDialog=
"saveOutputDialog"
:doubleClickCell=
"doubleClickCell"
></insertOrUpdate>
<excelOutPutDialog
<excelOutPutDialog
ref=
"excelOut"
ref=
"excelOut"
:excelOutPutVisible
.
sync=
"excelOutPutVisible"
:excelOutPutVisible
.
sync=
"excelOutPutVisible"
></excelOutPutDialog>
:saveOutputDialog=
"saveOutputDialog"
:doubleClickCell=
"doubleClickCell"
></excelOutPutDialog>
<updateDialog
<updateDialog
ref=
"update"
ref=
"update"
:updateVisible
.
sync=
"updateVisible"
:updateVisible
.
sync=
"updateVisible"
></updateDialog>
:saveOutputDialog=
"saveOutputDialog"
:doubleClickCell=
"doubleClickCell"
></updateDialog>
<synDialog
ref=
"syn"
:synVisible
.
sync=
"synVisible"
></synDialog>
<synDialog
ref=
"syn"
:synVisible
.
sync=
"synVisible"
:saveOutputDialog=
"saveOutputDialog"
:doubleClickCell=
"doubleClickCell"
></synDialog>
<delDialog
ref=
"del"
:deleteVisible
.
sync=
"deleteVisible"
></delDialog>
<delDialog
ref=
"del"
:deleteVisible
.
sync=
"deleteVisible"
:saveOutputDialog=
"saveOutputDialog"
:doubleClickCell=
"doubleClickCell"
></delDialog>
<sqlDialog
ref=
"sql"
:sqlVisible
.
sync=
"sqlVisible"
></sqlDialog>
<sqlDialog
ref=
"sql"
:sqlVisible
.
sync=
"sqlVisible"
:saveOutputDialog=
"saveOutputDialog"
:doubleClickCell=
"doubleClickCell"
></sqlDialog>
<textFileDialog
<textFileDialog
ref=
"textFile"
ref=
"textFile"
:fileVisible
.
sync=
"fileVisible"
:fileVisible
.
sync=
"fileVisible"
></textFileDialog>
:saveOutputDialog=
"saveOutputDialog"
></textFileDialog>
<microDialog
ref=
"mic"
:microVisible
.
sync=
"microVisible"
></microDialog>
<microDialog
ref=
"mic"
:microVisible
.
sync=
"microVisible"
:saveOutputDialog=
"saveOutputDialog"
></microDialog>
<!-- 输出弹窗end================== -->
<!-- 输出弹窗end================== -->
<!-- 转换弹窗开始 -->
<!-- 转换弹窗开始 -->
...
@@ -900,6 +900,7 @@ const {
...
@@ -900,6 +900,7 @@ const {
mxGeometry
,
mxGeometry
,
}
=
mxgraph
;
}
=
mxgraph
;
export
default
{
export
default
{
// props: {
// props: {
// dialogVisibleFourth: {
// dialogVisibleFourth: {
...
@@ -1239,7 +1240,7 @@ export default {
...
@@ -1239,7 +1240,7 @@ export default {
this
.
graph
.
convertValueToString
=
(
cell
)
=>
{
this
.
graph
.
convertValueToString
=
(
cell
)
=>
{
console
.
log
(
cell
.
value
.
attributes
,
99999999999999
);
//
console.log(cell.value.attributes,99999999999999);
...
@@ -1297,7 +1298,7 @@ console.log(cell.value.attributes,99999999999999);
...
@@ -1297,7 +1298,7 @@ console.log(cell.value.attributes,99999999999999);
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
.
setXml
();
//
this.setXml();
this
.
doubleClickCell
=
cell
;
this
.
doubleClickCell
=
cell
;
// 获取接口数据
// 获取接口数据
...
@@ -1801,6 +1802,27 @@ console.log(cell.value.attributes,99999999999999);
...
@@ -1801,6 +1802,27 @@ console.log(cell.value.attributes,99999999999999);
// })
// })
// .catch(() => {});
// .catch(() => {});
},
},
//输出组件保存************************
saveOutputDialog
(
params
){
// var graph = getActiveGraph().getGraph();
var
outPutForm
=
params
;
this
.
graph
.
getModel
().
beginUpdate
();
try
{
for
(
var
name
in
outPutForm
)
{
var
edit
=
new
mxCellAttributeChange
(
this
.
doubleClickCell
,
name
,
outPutForm
[
name
]);
this
.
graph
.
getModel
().
execute
(
edit
);
}
}
finally
{
this
.
graph
.
getModel
().
endUpdate
();
}
}
//输出组件保存******************/
},
},
};
};
</
script
>
</
script
>
...
...
src/views/output-dialog/table-out.vue
View file @
972d8a7e
...
@@ -324,7 +324,8 @@ export default ({
...
@@ -324,7 +324,8 @@ export default ({
explorer
:
Function
,
explorer
:
Function
,
graph
:
Object
,
graph
:
Object
,
doubleClickCell
:
Object
,
doubleClickCell
:
Object
,
getXmlVal
:
String
getXmlVal
:
String
,
saveOutputDialog
:
Function
},
},
mounted
(){
mounted
(){
...
@@ -340,7 +341,9 @@ export default ({
...
@@ -340,7 +341,9 @@ export default ({
},
},
methods
:{
methods
:{
confirm
(){
confirm
(){
this
.
tableOutForm
.
label
=
this
.
doubleClickCell
.
title
;
console
.
log
(
'表输出表单数据====='
,
this
.
tableOutForm
)
console
.
log
(
'表输出表单数据====='
,
this
.
tableOutForm
)
this
.
saveOutputDialog
(
this
.
tableOutForm
);
},
},
radioChoose
(
val
){
radioChoose
(
val
){
let
that
=
this
let
that
=
this
...
...
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