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
582d0eb8
Commit
582d0eb8
authored
Jun 08, 2021
by
李耀琨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gg
parent
febcd04a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
5 deletions
+51
-5
src/views/dashboard-kettle/components/appBulletFrame/conversionSettings.vue
+0
-0
src/views/dashboard-kettle/components/appBulletFrame/mapping.vue
+51
-5
src/views/dashboard-kettle/components/designer/mxgraphDesigner.vue
+0
-0
No files found.
src/views/dashboard-kettle/components/appBulletFrame/conversionSettings.vue
View file @
582d0eb8
This diff is collapsed.
Click to expand it.
src/views/dashboard-kettle/components/appBulletFrame/mapping.vue
View file @
582d0eb8
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
</el-col>
</el-col>
<el-col
class=
"line"
:span=
"2"
>
<el-col
class=
"line"
:span=
"2"
>
<el-button
size=
"mini"
>
浏览
</el-button>
<el-button
size=
"mini"
@
click=
"filePathSelection = true"
>
浏览
</el-button>
</el-col>
</el-col>
</el-row>
</el-row>
</el-form-item>
</el-form-item>
...
@@ -166,15 +166,14 @@
...
@@ -166,15 +166,14 @@
height=
" 250 "
height=
" 250 "
border
border
style=
"width: 100%"
style=
"width: 100%"
:row-style=
"{ height: '10px' }"
:cell-style=
"{ height: '10px' }"
>
>
<el-table-column
prop=
"parent"
label=
"原字段名"
>
<el-table-column
prop=
"parent"
label=
"原字段名"
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"child"
label=
"要映射成的字段名"
>
<el-table-column
prop=
"child"
label=
"要映射成的字段名"
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
width=
"
12
0"
>
<el-table-column
label=
"操作"
width=
"
9
0"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
<el-button
@
click=
"addInputField(false, scope.row)"
@
click=
"addInputField(false, scope.row)"
...
@@ -193,12 +192,21 @@
...
@@ -193,12 +192,21 @@
</el-table>
</el-table>
<el-form
:model=
"form"
>
<el-form
:model=
"form"
>
<el-form-item>
<el-form-item>
<el-row
:gutter=
"10"
>
<el-col
:span=
"19"
>
<el-checkbox
<el-checkbox
v-model=
"form.rename_on_output"
v-model=
"form.rename_on_output"
true-label=
"Y"
true-label=
"Y"
false-label=
"N"
false-label=
"N"
></el-checkbox>
></el-checkbox>
输出时字段名再重新映射回原来输入时的名字?
输出时字段名再重新映射回原来输入时的名字?
</el-col>
<el-col
:span=
"4"
>
<el-button>
字段映射...
</el-button>
</el-col>
</el-row>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
...
@@ -315,7 +323,7 @@
...
@@ -315,7 +323,7 @@
<el-table-column
prop=
"child"
label=
"要映射成的字段名"
>
<el-table-column
prop=
"child"
label=
"要映射成的字段名"
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
width=
"
6
0"
>
<el-table-column
label=
"操作"
width=
"
9
0"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
<el-button
@
click=
"addOutputField(false, scope.row)"
@
click=
"addOutputField(false, scope.row)"
...
@@ -406,6 +414,29 @@
...
@@ -406,6 +414,29 @@
<el-button
type=
"primary"
@
click=
"addoutputBoxFun"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"addoutputBoxFun"
>
确 定
</el-button>
</span>
</span>
</el-dialog>
</el-dialog>
<!-- 文件浏览器-->
<el-dialog
title=
"文件浏览器"
:visible
.
sync=
"filePathSelection"
width=
"500px"
:before-close=
"handleClose"
:modal=
"false"
>
<browseFiles
:disabed=
"true"
v-on:route=
"route"
></browseFiles>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"filePathSelection = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"addFilePathSelection"
>
确 定
</el-button
>
</span>
</el-dialog>
</div>
</div>
</template>
</template>
...
@@ -446,6 +477,7 @@ export default {
...
@@ -446,6 +477,7 @@ export default {
connectionNode
:
[],
connectionNode
:
[],
tableData
:
[],
tableData
:
[],
newGraph
:
[],
newGraph
:
[],
filePathSelection
:
false
,
metadataBox
:
false
,
metadataBox
:
false
,
selectModifyBox
:
false
,
selectModifyBox
:
false
,
inputBox
:
false
,
inputBox
:
false
,
...
@@ -472,6 +504,7 @@ export default {
...
@@ -472,6 +504,7 @@ export default {
inputState
:
1
,
inputState
:
1
,
mappings
:
{},
mappings
:
{},
inherit
:
"Y"
,
inherit
:
"Y"
,
localPath
:{},
};
};
},
},
...
@@ -541,6 +574,19 @@ export default {
...
@@ -541,6 +574,19 @@ export default {
}
}
},
},
route
(
flowData
){
this
.
localPath
.
fileName
=
flowData
.
name
console
.
log
(
this
.
localPath
);
},
addFilePathSelection
(){
this
.
filePathSelection
=
!
this
.
filePathSelection
this
.
form
.
directory
=
this
.
localPath
.
fileName
},
inputSelection
(
val
,
index
)
{
inputSelection
(
val
,
index
)
{
this
.
inputIndex
=
index
;
this
.
inputIndex
=
index
;
console
.
log
(
val
);
console
.
log
(
val
);
...
...
src/views/dashboard-kettle/components/designer/mxgraphDesigner.vue
View file @
582d0eb8
This diff is collapsed.
Click to expand it.
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