Commit aaaf8fa0 by 黄志甲

up

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