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
ac711e87
Commit
ac711e87
authored
Mar 26, 2021
by
莫晓莉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mxl---3.26输出弹窗组件
parent
65e63e56
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
16 deletions
+23
-16
src/views/dialogs-components/global/database-choose/main.vue
+20
-13
src/views/dialogs-components/global/establish/main.vue
+3
-3
No files found.
src/views/dialogs-components/global/database-choose/main.vue
View file @
ac711e87
...
...
@@ -22,7 +22,7 @@
<el-form-item
label=
"目的模式:"
>
<el-row
:gutter=
"10"
>
<el-col
:span=
"20"
>
<el-input
v-model=
"
form.name
"
></el-input>
<el-input
v-model=
"
newForm.schema
"
></el-input>
</el-col>
<el-col
class=
"line"
:span=
"3"
>
...
...
@@ -33,7 +33,7 @@
<el-form-item
label=
"目标表:"
prop=
"text"
>
<el-row
:gutter=
"10"
>
<el-col
:span=
"20"
>
<el-input
ref=
"goal"
v-model=
"newForm.t
ext
"
></el-input>
<el-input
ref=
"goal"
v-model=
"newForm.t
able
"
></el-input>
</el-col>
<el-col
class=
"line"
:span=
"3"
>
...
...
@@ -86,16 +86,24 @@ export default {
}
else
if
(
typeof
(
res
)
==
'object'
){
console
.
log
(
'接收子组件的值55555----'
,
res
);
this
.
curNode
=
res
;
// DOM 更新后
// this.$nextTick(() => {
// this.form.text=this.curNode.data.text;
// // this.$refs.goal.values=this.curNode.data.text;
// // this.$refs.goal.refreshData(this.from)
// })
this
.
$set
(
this
.
newForm
,
'text'
,
this
.
curNode
.
data
.
text
)
// this.$refs.goal.refreshData(this.from)
if
(
this
.
chooseType
==
'表'
){
console
.
log
(
'进入表----'
,
res
);
this
.
$set
(
this
.
newForm
,
'table'
,
this
.
curNode
.
data
.
text
);
this
.
$forceUpdate
()
// this.form.text=this.curNode.data.text;
}
console
.
log
(
'this.curNode.data.leaf=====:'
,
this
.
curNode
.
data
.
leaf
);
if
(
this
.
chooseType
==
'模式'
&&
this
.
curNode
.
data
.
leaf
&&
this
.
curNode
.
parent
.
data
.
text
==
this
.
chooseType
){
console
.
log
(
'进入模式----'
,
res
);
this
.
$set
(
this
.
newForm
,
'schema'
,
this
.
curNode
.
data
.
text
);
this
.
$forceUpdate
()
}
// this.$forceUpdate()
console
.
log
(
'chuanhuo====='
,
this
.
newForm
);
// 发射回父组件
this
.
$emit
(
"update:form"
,
this
.
newForm
);
}
else
if
(
typeof
(
res
)
==
'boolean'
){
this
.
dialogVisibleFourth
=
res
;
console
.
log
(
'接收子组件的值2222222----'
,
this
.
dialogVisibleFourth
);
...
...
@@ -123,6 +131,7 @@ export default {
selectNameFunc
(
e
){
console
.
log
(
'当前选中的数'
,
e
);
console
.
log
(
'当前选中的数-==='
,
this
.
selectName
);
this
.
newForm
.
connection
=
this
.
selectName
;
},
//点击选择获取已经创建的数据库列表
clickFunc
(){
...
...
@@ -165,9 +174,7 @@ export default {
},
deep
:
true
},
// form(newValue, oldValue){
// this.form=newValue;
// }
},
...
...
src/views/dialogs-components/global/establish/main.vue
View file @
ac711e87
...
...
@@ -11,7 +11,7 @@
<div
class=
"left-container mybox"
>
<ul
class=
"infinite-list"
>
<li
@
click=
"chooseType(index)"
@
click=
"choose
Base
Type(index)"
:class=
"[index == nowTypeIndex ? 'type-checked' : '']"
v-for=
"(item, index) in linkType"
:key=
"index"
...
...
@@ -474,7 +474,7 @@ export default {
handleCloseFourth
()
{
this
.
$emit
(
"getSonValue"
,
false
);
//组件要传回父组件的值,关闭弹窗
},
chooseType
(
index
)
{
choose
Base
Type
(
index
)
{
this
.
nowTypeIndex
=
index
;
},
...
...
@@ -832,7 +832,7 @@ export default {
console
.
log
(
'点击当前节点data==='
,
data
);
// var arr=[{node:node}]
this
.
curChooseNode
=
node
;
//
this.$emit("getSonValue", this.curChooseNode); //组件要传回父组件的值,关闭弹窗
this
.
$emit
(
"getSonValue"
,
this
.
curChooseNode
);
//组件要传回父组件的值,关闭弹窗
// this.nodePath=data.path;//当前选择数
// this.curNodeIconCls=data.iconCls;//当前选中节点
// console.log('当前节点的文件夹路径:',this.nodePath);
...
...
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