Commit 3315d5dc by 莫晓莉

mxl更新提交代码

parent 83dad55d
......@@ -816,7 +816,7 @@
:doubleClickCell="doubleClickCell"
:getXmlVal="getXmlVal"
@fathertrans="fathertrans"
></outDialog>
:saveOutputDialog="saveOutputDialog"></outDialog>
<insertOrUpdate
ref="insertOrdate"
:InsertOrUpdateVisible.sync="InsertOrUpdateVisible"
......@@ -839,7 +839,7 @@
<microDialog ref="mic" :microVisible.sync="microVisible" :saveOutputDialog="saveOutputDialog"></microDialog>
<!-- 输出弹窗end================== -->
:transGraphVisible.sync="transGraphVisible"
<trans-graph :transGraphVisible.sync="transGraphVisible" :getXmlVal="getXmlVal"></trans-graph>
</div>
</template>
......@@ -910,6 +910,7 @@ export default {
data() {
return {
doubleClickCell:{},
transGraphVisible:false,//执行转换弹窗
monitorCanvas: "", //监听画布
getXmlVal: "", //获取上一个xml
keyHandler: null,
......@@ -1061,6 +1062,19 @@ export default {
this.setXml();
this.getXml();
},
// blankCanvas:{
// deep:true,
// immediate:true,
// handler:function(newV,oldV){
// // console.log('watch中:',newV);
// this.monitorCanvas = newV;
// if(newV !=''){
// this.setXml();
// this.getXml();
// }
// }
// }
},
mounted() {
this.createGraph();
......@@ -1759,7 +1773,7 @@ export default {
console.log(res);
if (res.success) {
this.$message.success("保存流程成功!暂时请查先看控制台。");
this.createGraph();
// this.createGraph();
} else {
this.$message.error(res.errMsg);
}
......@@ -1858,19 +1872,27 @@ export default {
// var graph = getActiveGraph().getGraph();
var outPutForm=params;
this.graph.getModel().beginUpdate();
try
{
console.log("子组件传回来的弹窗参数===",outPutForm);
// 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();
}
// } finally
// {
// this.graph.getModel().endUpdate();
// }
console.log('保存组件到画布===',this.graph);
//  for (let name in this.form) {
//         var edit = new mxCellAttributeChange(this.nodeData,name,this.form[name]);
//         this.graph.getModel().execute(edit);
//       }
//       console.log(edit, 4564564564654);
}
//输出组件保存******************/
},
......
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