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
5b068714
Commit
5b068714
authored
Apr 10, 2021
by
李耀琨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查错
parent
97cee348
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
8 deletions
+43
-8
src/views/dashboard-kettle/components/appBulletFrame/tableInput.vue
+40
-8
src/views/dashboard-kettle/components/designer/mxgraphDesigner.vue
+3
-0
No files found.
src/views/dashboard-kettle/components/appBulletFrame/tableInput.vue
View file @
5b068714
...
...
@@ -14,12 +14,10 @@
v-model=
"form.connection"
style=
"width: 100%"
@
change=
"getField"
@
focus=
"getGraphDataBases"
>
<el-option
v-for=
"item in ComboBox"
:key=
"item.id"
:label=
"item.name"
:value=
"item.name"
v-for=
"(item,index) in namesList"
:key=
"index"
:label=
"item.name"
:value=
"item.name"
/>
</el-select>
<!--
<el-select
v-model=
"form.connection"
style=
"width: 100%"
@
change=
"getField()"
>
...
...
@@ -145,7 +143,12 @@
:scanDialogVisible
.
sync=
"scanDialogVisible"
:chooseType=
"chooseType"
:chooseFlag
.
sync=
"chooseFlag"
:form
.
sync=
"form"
:getXmlVal=
"getXmlVal"
:graph=
"graph"
></estab-dialog>
<!--
<database-choose
ref=
"databaseChoose"
:form
.
sync=
"tableOutForm"
:getXmlVal=
"getXmlVal"
:graph=
"newGraph"
></database-choose>
-->
</div>
</
template
>
...
...
@@ -159,7 +162,7 @@ import {
}
from
"@/api/kettle/link"
;
export
default
{
props
:
[
"connectionNode"
,
"stepName"
,
"form"
,
"graphXml"
],
//从父组件传过来的值
props
:
[
"connectionNode"
,
"stepName"
,
"form"
,
"graphXml"
,
"getXmlVal"
,
"graph"
],
//从父组件传过来的值
components
:
{
main
,
},
...
...
@@ -171,6 +174,7 @@ export default {
dialogVisibleFourth
:
false
,
scanDialogVisible
:
false
,
newForm
:
{},
namesList
:[],
ComboBox
:
[],
library
:
[],
...
...
@@ -205,6 +209,16 @@ export default {
},
// form(newValue, oldValue){ // this.form=newValue; // }
},
methods
:
{
clickFun
(
graph
){
console
.
log
(
graph
,
1
)
this
.
graph
=
graph
setTimeout
(()
=>
{
this
.
$refs
.
establishDia
.
clickFun
(
graph
,
121331
);
},
500
);
},
tableInputName
()
{
this
.
stepName
;
},
...
...
@@ -252,7 +266,15 @@ export default {
// },
//获取新建弹窗返回来的值
getGraphDataBases
(){
// var graph = this.getGraph();
var
root
=
this
.
graph
.
getDefaultParent
(),
data
=
[];
if
(
root
.
getAttribute
(
'databases'
)
!=
null
)
data
=
JSON
.
parse
(
root
.
getAttribute
(
'databases'
));
console
.
log
(
'获取到画布上的databases===='
,
data
);
this
.
namesList
=
data
;
},
// 查询已经建立的所有数据库列表
listNames
()
{
listNames
().
then
((
res
)
=>
{
...
...
@@ -266,12 +288,22 @@ export default {
},
dialogVisibleFourthNew
()
{
this
.
dialogVisibleFourth
=
true
;
this
.
$refs
.
establishDia
.
database
();
this
.
$refs
.
establishDia
.
accessMethod
();
//获取连接方式
// this.$refs.establishDia.database();
// this.$refs.establishDia.accessMethod(); //获取连接方式
this
.
$refs
.
establishDia
.
clickFun
(
this
.
graph
);
//先把画布传过去
this
.
$refs
.
establishDia
.
getTransDatabase
();
this
.
$refs
.
establishDia
.
accessMethod
();
//获取连接方式
},
dialogVisibleFourthFun
()
{
this
.
dialogVisibleFourth
=
true
;
this
.
$refs
.
establishDia
.
database
(
this
.
connectionName
);
// this.$refs.establishDia.database(this.connectionName);
this
.
$refs
.
establishDia
.
clickFun
(
this
.
graph
);
//先把画布传过去
if
(
this
.
selectName
){
this
.
dialogVisibleFourth
=
true
;
}
// this.$refs.establishDia.database(this.selectName);
this
.
$refs
.
establishDia
.
getTransDatabase
(
this
.
selectName
);
this
.
$refs
.
establishDia
.
accessMethod
();
//获取连接方式
},
getField
(
val
)
{
this
.
library
=
this
.
ComboBox
.
find
((
e
)
=>
{
...
...
src/views/dashboard-kettle/components/designer/mxgraphDesigner.vue
View file @
5b068714
...
...
@@ -702,6 +702,8 @@
:connectionNode=
"connectionNode"
:form=
"form"
:graphXml=
"graphXml"
ref=
"TableInputDialog2"
>
</tableInput>
...
...
@@ -1569,6 +1571,7 @@ previousField(){
this
.
form
=
q
;
this
.
form
.
sql
=
decodeURIComponent
(
this
.
form
.
sql
)
console
.
log
(
this
.
form
,
456465465
);
this
.
$refs
.
TableInputDialog2
.
clickFun
(
this
.
graph
);
return
;
}
else
if
(
...
...
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