Commit c4277ba7 by 李耀琨

解决冲突

parents 72bc21ce 75bf95a4
......@@ -820,32 +820,26 @@
<insertOrUpdate
ref="insertOrdate"
:InsertOrUpdateVisible.sync="InsertOrUpdateVisible"
></insertOrUpdate>
:saveOutputDialog="saveOutputDialog" :doubleClickCell="doubleClickCell"></insertOrUpdate>
<excelOutPutDialog
ref="excelOut"
:excelOutPutVisible.sync="excelOutPutVisible"
></excelOutPutDialog>
:saveOutputDialog="saveOutputDialog" :doubleClickCell="doubleClickCell"></excelOutPutDialog>
<updateDialog
ref="update"
:updateVisible.sync="updateVisible"
></updateDialog>
<synDialog ref="syn" :synVisible.sync="synVisible"></synDialog>
<delDialog ref="del" :deleteVisible.sync="deleteVisible"></delDialog>
<sqlDialog ref="sql" :sqlVisible.sync="sqlVisible"></sqlDialog>
:saveOutputDialog="saveOutputDialog" :doubleClickCell="doubleClickCell"></updateDialog>
<synDialog ref="syn" :synVisible.sync="synVisible" :saveOutputDialog="saveOutputDialog" :doubleClickCell="doubleClickCell"></synDialog>
<delDialog ref="del" :deleteVisible.sync="deleteVisible" :saveOutputDialog="saveOutputDialog" :doubleClickCell="doubleClickCell"></delDialog>
<sqlDialog ref="sql" :sqlVisible.sync="sqlVisible" :saveOutputDialog="saveOutputDialog" :doubleClickCell="doubleClickCell"></sqlDialog>
<textFileDialog
ref="textFile"
:fileVisible.sync="fileVisible"
></textFileDialog>
<microDialog ref="mic" :microVisible.sync="microVisible"></microDialog>
:saveOutputDialog="saveOutputDialog"></textFileDialog>
<microDialog ref="mic" :microVisible.sync="microVisible" :saveOutputDialog="saveOutputDialog"></microDialog>
<!-- 输出弹窗end================== -->
<!-- 转换弹窗开始 -->
<trans-graph
ref="transGraph"
:transGraphVisible.sync="transGraphVisible"
:getXmlVal.sync="getXmlVal"
></trans-graph>
<!-- 转换弹窗结束 -->
</div>
</template>
......@@ -899,9 +893,9 @@ const {
mxCodec,
mxGraphModel,
mxGeometry,
mxCell,
} = mxgraph;
export default {
// props: {
// dialogVisibleFourth: {
......@@ -915,8 +909,6 @@ export default {
data() {
return {
transGraphVisible: false, //转换弹窗
doubleClickCell: {}, //双击的cell
monitorCanvas: "", //监听画布
getXmlVal: "", //获取上一个xml
keyHandler: null,
......@@ -924,7 +916,6 @@ export default {
graphXml: "",
xmlDocuments: "", //获取解码的xml
boxInformation: "", //弹框信息
nodeData: {}, //节点数据
toolItemData:{},//新增节点时的值
// mxl=================================
......@@ -1081,11 +1072,9 @@ export default {
this.graph.getModel().beginUpdate();
try {
var doc = mxUtils.parseXml(decodeURIComponent(this.blankCanvas));
console.log(doc, 77777777777777);
var codec = new mxCodec(doc);
codec.decode(doc.documentElement, this.graph.getModel());
console.log(codec.decode(doc.documentElement), 222222222222222222);
} finally {
this.graph.getModel().endUpdate();
}
......@@ -1093,15 +1082,6 @@ export default {
excelLnputDetermine() {
this.excelLnput = !this.excelLnput;
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);
},
// 子组件发射回来的弹窗变量变为true
fathertrans(res) {
......@@ -1343,6 +1323,7 @@ export default {
pamerFields.append("valueType", "all");
inputOutputFields().then((res) => {});
if (cell.ids == "step1" || cell.value.attributes.ctype.value == "ExcelInput") {
this.excelLnput = !this.excelLnput;
......@@ -1355,6 +1336,7 @@ export default {
this.form = q
return;
} else if (cell.ids == "step7" || cell.value.attributes.ctype.value == "TableInput") {
this.TableInputDialog = !this.TableInputDialog;
let q = {};
......@@ -1365,6 +1347,7 @@ export default {
}
this.form = q
return;
} else if (cell.ids == "step6" || cell.value.attributes.ctype.value == "SystemInfo") {
this.SystemInfoDialog = !this.SystemInfoDialog;
let q = {};
......@@ -1375,6 +1358,7 @@ export default {
}
this.form = q
return;
} else if (cell.ids == "step5" || cell.value.attributes.ctype.value == "DataGrid") {
this.ConstantDialog = !this.ConstantDialog;
let q = {};
......@@ -1385,6 +1369,7 @@ export default {
}
this.form = q
return;
} else if (cell.ids == "step4" || cell.value.attributes.ctype.value == "RandomValue") {
this.RandomValueDialog = !this.RandomValueDialog;
let q = {};
......@@ -1395,6 +1380,7 @@ export default {
}
this.form = q
return;
} else if (cell.ids == "step3" || cell.value.attributes.ctype.value == "RowGenerator") {
this.RowGeneratorDialog = !this.RowGeneratorDialog;
let q = {};
......@@ -1405,6 +1391,7 @@ export default {
}
this.form = q
return;
} else if (cell.ids == "step2" || cell.value.attributes.ctype.value == "TextFileInput") {
this.TextFileInputDialog = !this.TextFileInputDialog;
let q = {};
......@@ -1861,6 +1848,27 @@ export default {
// })
// .catch(() => {});
},
//输出组件保存************************
saveOutputDialog(params){
// var graph = getActiveGraph().getGraph();
var outPutForm=params;
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();
}
}
//输出组件保存******************/
},
};
</script>
......
......@@ -94,13 +94,13 @@ export default {
formData.append("node", node);
getFileexplorer(formData).then((res) => {
if (res) {
if(path==''){
// if(path==''){
console.log('1111111111111111');
this.fileTreeList = res;
}else{
console.log('222222222222');
this.fileTreeListResolve=res
}
// }else{
// console.log('222222222222');
// this.fileTreeListResolve=res
// }
} else {
this.$message.error(res.errMsg);
......@@ -117,9 +117,28 @@ export default {
return resolve(this.fileTreeList);
} else {
var path = node.data.id;
var node= node.data.id;;
this.getFileTreeList(path,node);
resolve(this.fileTreeListResolve);
var node= node.data.id;
var formData = new FormData();
formData.append("path",path);
formData.append("extension", 0);
formData.append("node", node);
getFileexplorer(formData).then((res) => {
if (res) {
console.log("获取列表-------", res);
if (res.length > 0) {
resolve(res);
} else if (!res.success) {
// let data = [];
let data=null;
resolve(data);
}
} else {
this.$message.error(res.errMsg);
}
});
// this.getFileTreeList(path,node);
// resolve(this.fileTreeListResolve);
}
},
......
......@@ -324,7 +324,8 @@ export default ({
explorer:Function,
graph:Object,
doubleClickCell:Object,
getXmlVal:String
getXmlVal:String,
saveOutputDialog:Function
},
mounted(){
......@@ -340,7 +341,9 @@ export default ({
},
methods:{
confirm(){
this.tableOutForm.label=this.doubleClickCell.title;
console.log('表输出表单数据=====',this.tableOutForm)
this.saveOutputDialog(this.tableOutForm);
},
radioChoose(val){
let that = this
......
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