Commit a802f027 by 莫晓莉

表输出

parent 82eb9552
......@@ -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
// 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
})
},
......
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