Commit f54fd41c by 莫晓莉

mxl

parent 75bf95a4
...@@ -1250,11 +1250,14 @@ export default { ...@@ -1250,11 +1250,14 @@ export default {
// console.log(cell.value.attributes,99999999999999); // console.log(cell.value.attributes,99999999999999);
console.log('获取cell--',cell);
// cell.title = cell.value.attributes.label.value; // cell.title = cell.value.attributes.label.value;
// cell.ctype = cell.value.attributes.ctype.value; // cell.ctype = cell.value.attributes.ctype.value;
// let height = cell.geometry.height; // let height = cell.geometry.height;
// let width = cell.geometry.width; // let width = cell.geometry.width;
// let x = cell.geometry.x; // let x = cell.geometry.x;
...@@ -1288,6 +1291,8 @@ export default { ...@@ -1288,6 +1291,8 @@ export default {
// height, // height,
// style // style
// ); // );
cell.title = cell.value.attributes.label.value;
cell.ctype = cell.value.attributes.ctype.value;
...@@ -1305,6 +1310,7 @@ export default { ...@@ -1305,6 +1310,7 @@ export default {
const cell = this.R.pathOr([], ["properties", "cell"], evt); const cell = this.R.pathOr([], ["properties", "cell"], evt);
console.info(cell); // 在控制台输出双击的cell console.info(cell); // 在控制台输出双击的cell
this.nodeData = cell this.nodeData = cell
// this.setXml(); // this.setXml();
this.doubleClickCell=cell; this.doubleClickCell=cell;
...@@ -1388,7 +1394,7 @@ export default { ...@@ -1388,7 +1394,7 @@ export default {
//更新 //更新
this.updateVisible = !this.updateVisible; this.updateVisible = !this.updateVisible;
return; return;
} else if (cell.ids == "step14") { } else if (cell.ids == "step15") {
//文本文件输出 //文本文件输出
this.fileVisible = !this.fileVisible; this.fileVisible = !this.fileVisible;
return; return;
...@@ -1400,15 +1406,15 @@ export default { ...@@ -1400,15 +1406,15 @@ export default {
//插入、更新 //插入、更新
this.InsertOrUpdateVisible = !this.InsertOrUpdateVisible; this.InsertOrUpdateVisible = !this.InsertOrUpdateVisible;
return; return;
} else if (cell.ids == "step11") { } else if (cell.ids == "step10") {
//删除 //删除
this.deleteVisible = !this.deleteVisible; this.deleteVisible = !this.deleteVisible;
return; return;
} else if (cell.ids == "step10") { } else if (cell.ids == "step11") {
//SQL文件输出 //SQL文件输出
this.sqlVisible = !this.sqlVisible; this.sqlVisible = !this.sqlVisible;
return; return;
} else if (cell.ids == "step9") { } else if (cell.ids == "step9" || cell.ctype == "TextFileInput") {
//Excel输出 //Excel输出
this.excelOutPutVisible = !this.excelOutPutVisible; this.excelOutPutVisible = !this.excelOutPutVisible;
return; return;
...@@ -1733,10 +1739,10 @@ export default { ...@@ -1733,10 +1739,10 @@ export default {
save(pamers).then((res) => { save(pamers).then((res) => {
console.log(res); console.log(res);
if (res.success) { if (res.success) {
that.$message.success("保存流程成功!暂时请查先看控制台。"); this.$message.success("保存流程成功!暂时请查先看控制台。");
this.createGraph(); this.createGraph();
} else { } else {
that.$message.error(res.errMsg); this.$message.error(res.errMsg);
} }
}); });
}, },
...@@ -1832,6 +1838,7 @@ export default { ...@@ -1832,6 +1838,7 @@ export default {
//输出组件保存************************ //输出组件保存************************
saveOutputDialog(params){ saveOutputDialog(params){
// var graph = getActiveGraph().getGraph(); // var graph = getActiveGraph().getGraph();
var outPutForm=params; var outPutForm=params;
this.graph.getModel().beginUpdate(); this.graph.getModel().beginUpdate();
try try
...@@ -1845,6 +1852,7 @@ export default { ...@@ -1845,6 +1852,7 @@ export default {
{ {
this.graph.getModel().endUpdate(); this.graph.getModel().endUpdate();
} }
console.log('保存组件到画布===',this.graph);
} }
//输出组件保存******************/ //输出组件保存******************/
}, },
......
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