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
a802f027
Commit
a802f027
authored
Apr 02, 2021
by
莫晓莉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
表输出
parent
82eb9552
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
10 deletions
+34
-10
src/views/output-dialog/table-out.vue
+34
-10
No files found.
src/views/output-dialog/table-out.vue
View file @
a802f027
...
...
@@ -5,6 +5,7 @@
:visible
.
sync=
"tableOutPutVisible"
width=
"800px"
:before-close=
"handleClose"
@
open=
"dialogOpen"
top=
"10%"
append-to-body
>
...
...
@@ -197,6 +198,20 @@
</template>
<
script
>
import
mxgraph
from
"@/utils/mxgraph"
;
const
{
mxGraph
,
mxUtils
,
mxEvent
,
mxKeyHandler
,
mxRubberband
,
mxConstants
,
mxStencilRegistry
,
mxStencil
,
mxCodec
,
mxGraphModel
,
mxGeometry
,
}
=
mxgraph
import
{
inputOutputFields
,
//获取表输出
...
...
@@ -306,12 +321,18 @@ export default ({
type
:
Boolean
,
default
:
false
},
explorer
:
Function
explorer
:
Function
,
graph
:
Object
,
doubleClickCell
:
Object
,
getXmlVal
:
String
},
mounted
(){
},
created
(){
this
.
dialogOpen
();
},
watch
:{
tableOutForm
(
n
,
o
){
console
.
log
(
'表单值变化'
,
n
,
o
)
...
...
@@ -330,20 +351,23 @@ export default ({
this
.
$emit
(
"update:tableOutPutVisible"
,
false
);
},
//获取表输出
inputOutputFields
(){
dialogOpen
(){
// var enc = new mxCodec(mxUtils.createXmlDocument());
// var node = enc.encode(graph.getModel());
// store.baseParams.stepName = encodeURIComponent(cell.getAttribute('label'));
// store.baseParams.graphXml = mxUtils.getPrettyXml(node);
// store.baseParams.before = true
// var node = enc.encode(graph.getModel());
// console.log('获取===',node);
// var changeXml = mxUtils.getPrettyXml(node);
if
(
this
.
doubleClickCell
){
var
title
=
this
.
doubleClickCell
.
title
}
console
.
log
(
'获取cell88==='
,
this
.
doubleClickCell
);
let
pamer
=
new
FormData
();
// 创建form对象
pamer
.
append
(
"stepName"
,
this
.
nodePath
);
pamer
.
append
(
"graphXml"
,
"transformation"
);
pamer
.
append
(
"stepName"
,
encodeURIComponent
(
title
)
);
pamer
.
append
(
"graphXml"
,
this
.
getXmlVal
);
pamer
.
append
(
"before"
,
true
);
pamer
.
append
(
"query"
,
''
);
inputOutputFields
(
pamer
).
then
(
res
=>
{
console
.
log
(
res
,
'返回空白画布xml'
);
this
.
blankCanvas
=
res
console
.
log
(
'字段'
,
res
);
//
this.blankCanvas = res
})
},
...
...
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