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
1807c413
Commit
1807c413
authored
Apr 29, 2021
by
莫晓莉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
流程组件switch保存和回显
parent
b36ea399
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
8 deletions
+43
-8
src/api/kettle/file.js
+11
-0
src/views/dashboard-kettle/components/designer/mxgraphDesigner.vue
+32
-8
src/views/stream-dialog/switch.vue
+0
-0
No files found.
src/api/kettle/file.js
View file @
1807c413
...
...
@@ -347,6 +347,17 @@ export function getEntries(data) {
method
:
'post'
})
}
// 获取默认目标步骤
export
function
nextSteps
(
data
)
{
return
request
({
url
:
'etlweb/trans/nextSteps'
,
data
,
method
:
'post'
})
}
...
...
src/views/dashboard-kettle/components/designer/mxgraphDesigner.vue
View file @
1807c413
...
...
@@ -898,10 +898,17 @@
<homeworkDialog
ref=
"myhomework"
:jobHomeworkVisible
.
sync=
"jobHomeworkVisible"
:saveOutputDialog=
"saveOutputDialog"
:jobWorkFormSend=
"outPutFormData11"
:doubleClickCell=
"doubleClickCell"
></homeworkDialog>
<setvalue
ref=
"mySet"
:jobSetVisible
.
sync=
"jobSetVisible"
:saveOutputDialog=
"saveOutputDialog"
:setFormSend=
"outPutFormData12"
:doubleClickCell=
"doubleClickCell"
></setvalue>
<startDialog
ref=
"myStart"
:jobStartVisible
.
sync=
"jobStartVisible"
:saveOutputDialog=
"saveOutputDialog"
:startFormSend=
"outPutFormData10"
:doubleClickCell=
"doubleClickCell"
></startDialog>
<successDialog
ref=
"mySuccess"
:jobSuccessVisible
.
sync=
"jobSuccessVisible"
:saveOutputDialog=
"saveOutputDialog"
:successFormSend=
"outPutFormData14"
:doubleClickCell=
"doubleClickCell"
></successDialog>
<successDialog
ref=
"mySuccess"
:jobSuccessVisible
.
sync=
"jobSuccessVisible"
:saveOutputDialog=
"saveOutputDialog"
:successFormSend=
"outPutFormData14"
:doubleClickCell=
"doubleClickCell"
></successDialog>
<!-- 作业弹窗组件end------------------------------------->
<!-- 转换弹窗组件start333 ------------------------------>
<switchDialog
ref=
"switch"
:switchVisible
.
sync=
"switchVisible"
:saveOutputDialog=
"saveOutputDialog"
:doubleClickCell=
"doubleClickCell"
:switchFormSend=
"outPutFormData15"
></switchDialog>
<!-- 转换弹窗组件end33333------------------------------ -->
<!-- 执行转换开始 -->
<trans-graph
...
...
@@ -993,9 +1000,12 @@ import setvalue from "../../../job-dialog/set-value";
import
startDialog
from
"../../../job-dialog/start"
;
import
successDialog
from
"../../../job-dialog/success"
;
import
homeworkDialog
from
"../../../job-dialog/homework"
;
// 作业弹窗组件结束---------------------------------------
// 流程弹窗组件start3333--------------------
import
switchDialog
from
"../../../stream-dialog/switch"
;
//
作业弹窗组件结束-----------------------
----------------
//
流程弹窗组件end3333333333
----------------
import
mxgraph
from
"@/utils/mxgraph"
;
...
...
@@ -1049,6 +1059,9 @@ export default {
outPutFormData13
:{},
//作业---转换
outPutFormData14
:{},
//作业---成功
outPutFormData
:{},
//输出弹窗组件的表单值
// 转换33start---------
outPutFormData15
:{},
//转换--字段选择
// 转换3end------------
doubleClickCell
:{},
getField
:[],
transGraphVisible
:
false
,
//执行转换弹窗
...
...
@@ -1083,6 +1096,9 @@ export default {
myjobTransVisible
:
false
,
jobSuccessVisible
:
false
,
// 作业弹窗组件数据end----------
// 流程弹窗组件start----------
switchVisible
:
false
,
// 流程弹窗组件end------------
// 输入模块
file
:
[],
...
...
@@ -1171,8 +1187,11 @@ export default {
setvalue
,
startDialog
,
successDialog
,
homeworkDialog
homeworkDialog
,
// 作业弹簧组件end----------------------
// 转换弹窗组件start---------
switchDialog
,
// 转换弹窗组件end-----------
},
//自定义指令 https://www.jb51.net/article/108047.htm
directives
:
{
...
...
@@ -2036,10 +2055,15 @@ previousField(){
setTimeout
(()
=>
{
this
.
$refs
.
mytrans
.
clickFun
(
this
.
graph
);
//向子组件传递画布
},
500
);
return
;
}
else
if
((
this
.
curFileType
==
"transformation"
&&
cell
.
ids
==
"step36"
)
||
cell
.
value
.
attributes
.
ctype
.
value
==
"SwitchCase"
){
//流程--Switch / Case
this
.
switchVisible
=
!
this
.
switchVisible
;
this
.
outPutFormData15
=
this
.
showDataFunc
();
setTimeout
(()
=>
{
this
.
$refs
.
switch
.
clickFun
(
this
.
graph
);
//向子组件传递画布
},
500
);
return
;
}
});
...
...
src/views/stream-dialog/switch.vue
0 → 100644
View file @
1807c413
This diff is collapsed.
Click to expand it.
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