Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
ETL-admin
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
莫晓莉
ETL-admin
Commits
aaaf8fa0
Commit
aaaf8fa0
authored
Apr 09, 2021
by
黄志甲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
up
parent
5ef19943
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
46 deletions
+27
-46
src/views/dialogs-components/global/database-choose/main.vue
+0
-4
src/views/dialogs-components/global/establish/main.vue
+27
-32
src/views/output-dialog/table-out.vue
+0
-10
No files found.
src/views/dialogs-components/global/database-choose/main.vue
View file @
aaaf8fa0
...
...
@@ -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
);
},
...
...
src/views/dialogs-components/global/establish/main.vue
View file @
aaaf8fa0
...
...
@@ -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
);
...
...
src/views/output-dialog/table-out.vue
View file @
aaaf8fa0
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment