Commit 1807c413 by 莫晓莉

流程组件switch保存和回显

parent b36ea399
......@@ -347,6 +347,17 @@ export function getEntries(data) {
method: 'post'
})
}
// 获取默认目标步骤
export function nextSteps(data) {
return request({
url: 'etlweb/trans/nextSteps',
data,
method: 'post'
})
}
......
......@@ -899,10 +899,17 @@
<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>
<!-- 作业弹窗组件end------------------------------------->
<!-- 转换弹窗组件start333 ------------------------------>
<switchDialog
ref="switch"
:switchVisible.sync="switchVisible"
:saveOutputDialog="saveOutputDialog"
:doubleClickCell="doubleClickCell"
:switchFormSend="outPutFormData15"></switchDialog>
<!-- 转换弹窗组件end33333------------------------------ -->
<!-- 执行转换开始 -->
<trans-graph
ref="transRef"
......@@ -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;
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment