Commit aaaf8fa0 by 黄志甲

up

parent 5ef19943
......@@ -106,10 +106,6 @@ export default {
},
methods: {
clickFun(graph){
let codec = new mxCodec();
let encodedModel = codec.encode(graph.getModel());
let myXmlVal = mxUtils.getPrettyXml(encodedModel);
console.log('myXmlVal2',myXmlVal)
this.$refs.establishDia.clickFun(graph);
},
......
......@@ -495,11 +495,6 @@ export default {
clickFun(graph){
console.log(graph,3)
this.newGraph = graph;
let codec = new mxCodec();
let encodedModel = codec.encode(graph.getModel());
let myXmlVal = mxUtils.getPrettyXml(encodedModel);
console.log('myXmlVal3',myXmlVal)
},
......@@ -533,39 +528,39 @@ export default {
data.append("graphXml", myXmlVal);
data.append("name", name);
// 写死测试----------
var testJson={
name: "mytest",
type: "MYSQL",
access: "0",
hostname: "192.168.0.44",
databaseName: "test",
port: "3306",
username: "root",
password: "123456",
stramingReasults: "",
supportBooleanDataType: "true",
supportTimestampDataType: "true",
preserveReservedCaseCheck: "true",
extraOptions: [],
usingConnectionPool: "N",
initialPoolSize: "5",
maximumPoolSize: "10",
partitioned: "N",
partitionInfo: [],
};//创建数据库
// this.createModel=JSON.parse(testJson);
this.createModel=testJson;
console.log("写死的数据库----",this.createModel);
this.$emit("getSonValue", this.createModel.name); //组件要传回父组件的值
// // 写死测试----------
// var testJson={
// name: "mytest",
// type: "MYSQL",
// access: "0",
// hostname: "192.168.0.44",
// databaseName: "test",
// port: "3306",
// username: "root",
// password: "123456",
// stramingReasults: "",
// supportBooleanDataType: "true",
// supportTimestampDataType: "true",
// preserveReservedCaseCheck: "true",
// extraOptions: [],
// usingConnectionPool: "N",
// initialPoolSize: "5",
// maximumPoolSize: "10",
// partitioned: "N",
// partitionInfo: [],
// };//创建数据库
// // this.createModel=JSON.parse(testJson);
// this.createModel=testJson;
// console.log("写死的数据库----",this.createModel);
// this.$emit("getSonValue", this.createModel.name); //组件要传回父组件的值
// return
// 写死测试-------
getTransDatabase(data).then((res) => {
if (res) {
console.log("数据库详情:", res);
// this.dataBaseDetail = res;
// this.chooseParams(this.dataBaseDetail);
this.dataBaseDetail = res;
this.chooseParams(this.dataBaseDetail);
......
......@@ -327,22 +327,12 @@ export default ({
}
},
methods:{
...mapMutations(['SET_GRAPH']),
clickFun(graph){
console.log(graph,1)
this.newGraph = graph
this.SET_GRAPH(graph)
setTimeout(() => {
this.$refs.databaseChoose.clickFun(graph,121331);
}, 500);
let codec = new mxCodec();
let encodedModel = codec.encode(graph.getModel());
let myXmlVal = mxUtils.getPrettyXml(encodedModel);
console.log('myXmlVal1',myXmlVal)
},
confirm(){
this.tableOutForm.label=this.doubleClickCell.title;
......
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