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
90b38d65
Commit
90b38d65
authored
Mar 22, 2021
by
李耀锟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文本文件输入页面和生成记录页面
parent
72257ede
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
588 additions
and
138 deletions
+588
-138
.env.development
+4
-4
src/views/dashboard-kettle/components/appBulletFrame/customConstant.vue
+99
-52
src/views/dashboard-kettle/components/appBulletFrame/generatingRecords.vue
+247
-0
src/views/dashboard-kettle/components/appBulletFrame/getSystemInformation.vue
+8
-0
src/views/dashboard-kettle/components/appBulletFrame/randomNumber.vue
+7
-1
src/views/dashboard-kettle/components/appBulletFrame/tableInput.vue
+141
-41
src/views/dashboard-kettle/components/appBulletFrame/textFileInput.vue
+0
-0
src/views/dashboard-kettle/components/designer/FlowDesigner.vue
+82
-40
No files found.
.env.development
View file @
90b38d65
ENV = 'development'
#
VUE_APP_BASE_API = 'http://192.168.0.2:9888/'
#
VUE_APP_WS_API = 'ws://192.168.0.2:9888/'
VUE_APP_BASE_API = 'http://192.168.0.2:9888/'
VUE_APP_WS_API = 'ws://192.168.0.2:9888/'
VUE_APP_BASE_API = 'http://192.168.0.44:9882/'
VUE_APP_WS_API = 'ws://192.168.0.44:9882/'
#
VUE_APP_BASE_API = 'http://192.168.0.44:9882/'
#
VUE_APP_WS_API = 'ws://192.168.0.44:9882/'
...
...
src/views/dashboard-kettle/components/appBulletFrame/customConstant.vue
View file @
90b38d65
<
template
>
<div
class=
"customConstant"
>
<el-form
ref=
"form"
:model=
"form"
label-width=
"120px"
>
<el-form-item
label=
"步骤名称:"
>
<el-input
v-model=
"form.name"
></el-input>
</el-form-item>
</el-form>
<el-tabs
type=
"border-card"
>
<el-tab-pane
label=
"用户管理"
>
<el-button
size=
"small"
type=
"primary"
style=
"margin: 10px"
<el-tab-pane
label=
"元数据"
>
<el-button
size=
"small"
type=
"primary"
style=
"margin: 10px"
@
click=
"addMetadata"
>
添加元数据
</el-button
>
<el-table
:data=
"tableData"
border
style=
"width: 100%"
>
...
...
@@ -19,7 +29,10 @@
<el-table-column
prop=
"nullable"
label=
"设为空?"
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"100px"
>
<template
slot-scope=
"scope"
>
<el-button
@
click=
"customClick(scope.row)"
type=
"text"
size=
"small"
<el-button
@
click=
"customClick(scope.row)"
type=
"text"
size=
"small"
>
编辑
</el-button
>
<el-button
...
...
@@ -33,34 +46,35 @@
</el-table>
</el-tab-pane>
<el-tab-pane
label=
"配置管理"
>
<el-button
size=
"small"
type=
"primary"
style=
"margin: 10px"
<el-tab-pane
label=
"数据"
>
<el-button
size=
"small"
type=
"primary"
style=
"margin: 10px"
@
click=
"addData"
>
添加数据
</el-button
>
<el-table
:data=
"data"
border
style=
"width: 100%"
>
<el-table-column
prop=
"name"
label=
"名称"
>
</el-table-column>
<el-table-column
prop=
"type"
label=
"类型"
>
</el-table-column>
<el-table-column
prop=
"format"
label=
"格式"
>
</el-table-column>
<el-table-column
prop=
"length"
label=
"长度"
>
</el-table-column>
<el-table-column
prop=
"precision"
label=
"精度"
>
</el-table-column>
<el-table-column
prop=
"currencyType"
label=
"货币类型"
>
<el-table-column
v-for=
"item in tableData"
:key=
"item.id"
:label=
"item.name"
:prop=
"item.name"
>
</el-table-column>
<el-table-column
prop=
"decimal"
label=
"小数"
>
</el-table-column>
<el-table-column
prop=
"group"
label=
"分组"
>
</el-table-column>
<el-table-column
prop=
"value"
label=
"值"
>
</el-table-column>
<el-table-column
prop=
"nullable"
label=
"设为空?"
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"100px"
>
<
template
slot-scope=
"scope"
>
<el-button
@
click=
"customClick(scope.row)"
type=
"text"
size=
"small"
<el-button
@
click=
"valueClick(scope.row)"
type=
"text"
size=
"small"
>
编辑
</el-button
>
<el-button
type=
"text"
size=
"small"
@
click=
"delete
custom(scope.$index, tableD
ata)"
@
click=
"delete
Value(scope.$index, d
ata)"
>
删除
</el-button
>
</
template
>
...
...
@@ -69,11 +83,6 @@
</el-tab-pane>
</el-tabs>
<el-dialog
title=
"添加元数据"
:visible
.
sync=
"metadata"
...
...
@@ -90,7 +99,7 @@
<el-select
v-model=
"metadataForm.type"
style=
"width: 100%"
>
<el-option
v-for=
"item in fieldType"
:key=
"item.i
d
"
:key=
"item.i
ndex
"
:label=
"item.name"
:value=
"item.name"
/>
...
...
@@ -132,17 +141,12 @@
<el-input
v-model=
"metadataForm.value"
></el-input>
</el-form-item>
<el-form-item
label=
"分组:"
>
<el-input
v-model=
"metadataForm.group"
></el-input>
</el-form-item>
<el-form-item
label=
"设为空?:"
>
<el-select
v-model=
"metadataForm.nullable"
style=
"width: 100%"
>
<el-option
label=
"非空"
value=
"0"
></el-option>
<el-option
label=
"空"
value=
"1"
></el-option>
</el-select>
</el-form-item>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
...
...
@@ -151,22 +155,44 @@
</span>
</el-dialog>
<el-dialog
title=
"添加数据"
:visible
.
sync=
"addValue"
width=
"500px"
:before-close=
"handleClose"
:modal=
"false"
>
<el-form
ref=
"form"
:model=
"ValueForm"
label-width=
"120px"
>
<el-form-item
v-for=
"item in tableData"
:key=
"item.index"
:label=
"item.name"
>
<el-input
v-model=
"ValueForm[item.name]"
></el-input>
</el-form-item>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"addValue = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"addValuePush"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
</template>
<
script
>
import
{
valueFormat
,
valueMeta
}
from
"@/api/kettle/link"
;
import
{
valueFormat
,
valueMeta
}
from
"@/api/kettle/link"
;
export
default
{
props
:
[
"
custom
"
],
props
:
[
""
],
data
()
{
return
{
metadataForm
:{},
metadata
:
false
,
form
:
{},
metadataForm
:
{},
metadata
:
false
,
addValue
:
false
,
ValueForm
:
{},
activeName
:
"first"
,
data
:[
],
data
:
[],
tableData
:
[
{
date
:
"2016-05-02"
,
...
...
@@ -175,22 +201,23 @@ export default {
},
{
date
:
"2016-05-04"
,
name
:
"
王小虎
"
,
name
:
"
456456
"
,
address
:
"上海市普陀区金沙江路 1517 弄"
,
},
{
date
:
"2016-05-01"
,
name
:
"
王小虎
"
,
name
:
"
4654
"
,
address
:
"上海市普陀区金沙江路 1519 弄"
,
},
{
date
:
"2016-05-03"
,
name
:
"
王小虎
"
,
name
:
"
710245
"
,
address
:
"上海市普陀区金沙江路 1516 弄"
,
},
],
fieldFormat
:{},
fieldType
:{},
fieldFormat
:
{},
fieldType
:
{},
valueForms
:{}
//
};
},
...
...
@@ -202,6 +229,24 @@ export default {
methods
:
{
addValuePush
(){
this
.
addValue
=
!
this
.
addValue
this
.
data
.
push
(
this
.
ValueForm
)
},
addData
()
{
this
.
addValue
=
!
this
.
addValue
;
},
valueClick
(
val
)
{
this
.
addValue
=
!
this
.
addValue
this
.
metadataForm
=
val
;
},
addMetadata
()
{
this
.
metadata
=
!
this
.
metadata
;
this
.
metadataForm
=
[];
},
// 关闭弹框
handleClose
(
done
)
{
this
.
$confirm
(
"确认关闭?"
)
...
...
@@ -211,6 +256,11 @@ export default {
.
catch
((
_
)
=>
{});
},
deleteValue
(
index
,
rows
){
rows
.
splice
(
index
,
1
);
},
deletecustom
(
index
,
rows
)
{
rows
.
splice
(
index
,
1
);
},
...
...
@@ -219,22 +269,19 @@ export default {
this
.
metadataForm
=
val
;
},
valueFormatFun
()
{
let
pamer2
=
new
FormData
();
// 创建form对象
pamer2
.
append
(
"valueType"
,
"all"
);
pamer2
.
append
(
"valueType"
,
"all"
);
valueFormat
(
pamer2
).
then
((
res
)
=>
{
this
.
fieldFormat
=
res
;
});
},
valueMetaFun
(){
valueMeta
().
then
(
res
=>
{
this
.
fieldType
=
res
})
valueMetaFun
()
{
valueMeta
().
then
((
res
)
=>
{
this
.
fieldType
=
res
;
})
;
},
},
};
</
script
>
...
...
src/views/dashboard-kettle/components/appBulletFrame/generatingRecords.vue
0 → 100644
View file @
90b38d65
<
template
>
<div
class=
"customConstant"
>
<el-form
ref=
"form"
:model=
"form"
label-width=
"120px"
>
<el-form-item
label=
"步骤名称:"
>
<el-input
v-model=
"form.name"
></el-input>
</el-form-item>
</el-form>
<el-card
class=
"box-card"
>
<el-form
ref=
"form"
:model=
"form"
label-width=
"250px"
>
<el-form-item
label=
"限制:"
>
<el-input
v-model=
"form.rowLimit"
></el-input>
</el-form-item>
<el-form-item
label=
"Never stop generating rows:"
>
<el-checkbox
v-model=
"form.neverEnding"
></el-checkbox>
</el-form-item>
<el-form-item
label=
"Interval in ms(delay):"
>
<el-input
v-model=
"form.intervalInMs"
:disabled=
"!form.neverEnding"
></el-input>
</el-form-item>
<el-form-item
label=
"Current row time field name:"
>
<el-input
v-model=
"form.rowTimeField"
:disabled=
"!form.neverEnding"
></el-input>
</el-form-item>
<el-form-item
label=
"Previous row time field name:"
>
<el-input
v-model=
"form.lastTimeField"
:disabled=
"!form.neverEnding"
></el-input>
</el-form-item>
</el-form>
</el-card>
<br>
<el-card
class=
"box-card"
>
<el-button
size=
"small"
type=
"primary"
style=
"margin: 10px"
@
click=
"addField"
>
添加字段
</el-button
>
<el-table
:data=
"tableData"
border
style=
"width: 100%"
>
<el-table-column
prop=
"name"
label=
"名称"
>
</el-table-column>
<el-table-column
prop=
"type"
label=
"类型"
>
</el-table-column>
<el-table-column
prop=
"format"
label=
"格式"
>
</el-table-column>
<el-table-column
prop=
"length"
label=
"长度"
>
</el-table-column>
<el-table-column
prop=
"precision"
label=
"精度"
>
</el-table-column>
<el-table-column
prop=
"currencyType"
label=
"货币类型"
>
</el-table-column>
<el-table-column
prop=
"decimal"
label=
"小数"
>
</el-table-column>
<el-table-column
prop=
"group"
label=
"分组"
>
</el-table-column>
<el-table-column
prop=
"value"
label=
"值"
>
</el-table-column>
<el-table-column
prop=
"nullable"
label=
"设为空?"
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"100px"
>
<template
slot-scope=
"scope"
>
<el-button
@
click=
"customClick(scope.row)"
type=
"text"
size=
"small"
>
编辑
</el-button
>
<el-button
type=
"text"
size=
"small"
@
click=
"deletecustom(scope.$index, tableData)"
>
删除
</el-button
>
</
template
>
</el-table-column>
</el-table>
</el-card>
<el-dialog
title=
"添加字段"
:visible
.
sync=
"metadata"
width=
"500px"
:before-close=
"handleClose"
:modal=
"false"
>
<el-form
ref=
"form"
:model=
"metadataForm"
label-width=
"160px"
>
<el-form-item
label=
"名称:"
>
<el-input
v-model=
"metadataForm.name"
></el-input>
</el-form-item>
<el-form-item
label=
"类型:"
>
<el-select
v-model=
"metadataForm.type"
style=
"width: 100%"
>
<el-option
v-for=
"item in fieldType"
:key=
"item.id"
:label=
"item.name"
:value=
"item.name"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"格式:"
>
<el-select
v-model=
"metadataForm.format"
style=
"width: 100%"
>
<el-option
v-for=
"item in fieldFormat"
:key=
"item.index"
:label=
"item.name"
:value=
"item.name"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"长度:"
>
<el-input
v-model=
"metadataForm.length"
></el-input>
</el-form-item>
<el-form-item
label=
"精度:"
>
<el-input
v-model=
"metadataForm.precision"
></el-input>
</el-form-item>
<el-form-item
label=
"货币类型:"
>
<el-input
v-model=
"metadataForm.currencyType"
></el-input>
</el-form-item>
<el-form-item
label=
"小数:"
>
<el-input
v-model=
"metadataForm.decimal"
></el-input>
</el-form-item>
<el-form-item
label=
"分组:"
>
<el-input
v-model=
"metadataForm.group"
></el-input>
</el-form-item>
<el-form-item
label=
"值:"
>
<el-input
v-model=
"metadataForm.value"
></el-input>
</el-form-item>
<el-form-item
label=
"设为空?:"
>
<el-select
v-model=
"metadataForm.nullable"
style=
"width: 100%"
>
<el-option
label=
"非空"
value=
"0"
></el-option>
<el-option
label=
"空"
value=
"1"
></el-option>
</el-select>
</el-form-item>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"metadata = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"metadata = false"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
</template>
<
script
>
import
{
valueFormat
,
valueMeta
}
from
"@/api/kettle/link"
;
export
default
{
props
:
[
"custom"
],
data
()
{
return
{
form
:{},
metadataForm
:{},
metadata
:
false
,
activeName
:
"first"
,
data
:[
],
tableData
:
[
{
date
:
"2016-05-02"
,
name
:
"王小虎"
,
address
:
"上海市普陀区金沙江路 1518 弄"
,
},
{
date
:
"2016-05-04"
,
name
:
"王小虎"
,
address
:
"上海市普陀区金沙江路 1517 弄"
,
},
{
date
:
"2016-05-01"
,
name
:
"王小虎"
,
address
:
"上海市普陀区金沙江路 1519 弄"
,
},
{
date
:
"2016-05-03"
,
name
:
"王小虎"
,
address
:
"上海市普陀区金沙江路 1516 弄"
,
},
],
fieldFormat
:{},
fieldType
:{},
};
},
created
()
{
this
.
valueFormatFun
();
this
.
valueMetaFun
();
},
methods
:
{
addField
(){
this
.
metadata
=
!
this
.
metadata
;
this
.
metadataForm
=
[];
},
// 关闭弹框
handleClose
(
done
)
{
this
.
$confirm
(
"确认关闭?"
)
.
then
((
_
)
=>
{
done
();
})
.
catch
((
_
)
=>
{});
},
deletecustom
(
index
,
rows
)
{
rows
.
splice
(
index
,
1
);
},
customClick
(
val
)
{
this
.
metadata
=
!
this
.
metadata
;
this
.
metadataForm
=
val
;
},
valueFormatFun
()
{
let
pamer2
=
new
FormData
();
// 创建form对象
pamer2
.
append
(
"valueType"
,
"all"
);
valueFormat
(
pamer2
).
then
((
res
)
=>
{
this
.
fieldFormat
=
res
;
});
},
valueMetaFun
(){
valueMeta
().
then
(
res
=>
{
this
.
fieldType
=
res
})
},
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
*
{
outline
:
none
;
}
</
style
>
src/views/dashboard-kettle/components/appBulletFrame/getSystemInformation.vue
View file @
90b38d65
<
template
>
<div
class=
"getSystemInformation"
>
<el-form
ref=
"form"
:model=
"form"
label-width=
"120px"
>
<el-form-item
label=
"步骤名称:"
>
<el-input
v-model=
"form.name"
></el-input>
</el-form-item>
</el-form>
<el-form
ref=
"form"
:model=
"form"
label-width=
"0px"
>
<el-button
type=
"primary"
@
click=
"addSheet"
style=
"margin: 10px"
>
添加字段
</el-button
...
...
src/views/dashboard-kettle/components/appBulletFrame/randomNumber.vue
View file @
90b38d65
<
template
>
<div
class=
"randomNumber"
>
<el-form
ref=
"from"
:model=
"form"
label-width=
"120px"
>
<el-form-item
label=
"步骤名称:"
>
<el-input
v-model=
"form.name"
></el-input>
</el-form-item>
</el-form>
<el-form
ref=
"form"
:model=
"form"
label-width=
"0px"
>
<el-button
type=
"primary"
@
click=
"addSheet"
style=
"margin: 10px"
>
添加字段
</el-button
...
...
@@ -73,7 +79,7 @@
<
script
>
import
{
randomValueFunc
}
from
"@/api/kettle/link"
;
export
default
{
props
:
[
"
random
"
],
props
:
[
""
],
data
()
{
return
{
form
:
{},
...
...
src/views/dashboard-kettle/components/appBulletFrame/tableInput.vue
View file @
90b38d65
<
template
>
<div
class=
"tableInput"
>
<el-form
ref=
"from"
:model=
"form"
label-width=
"120px"
>
<el-form-item
label=
"步骤名称:"
>
<el-input
v-model=
"form.name"
></el-input>
</el-form-item>
</el-form>
<el-form
ref=
"form"
:model=
"form"
label-width=
"0px"
>
<el-form-item>
<el-row
:gutter=
"10"
>
<el-col
:span=
"13"
>
<el-select
v-model=
"form.connection"
style=
"width: 100%"
@
change=
"getField(form.connection)"
>
<el-select
v-model=
"form.connection"
style=
"width: 100%"
@
change=
"getField"
>
<el-option
v-for=
"item in ComboBox"
:key=
"item.id"
...
...
@@ -13,18 +24,28 @@
:value=
"item.name"
/>
</el-select>
<!--
<el-select
v-model=
"form.connection"
style=
"width: 100%"
@
change=
"getField()"
>
<el-option
v-for=
"item in ComboBox"
:key=
"item.id"
:label=
"item.name"
:value=
"item"
/>
</el-select>
-->
</el-col>
<el-col
class=
"line"
:span=
"2"
>
<el-button
size=
"mini"
>
编辑
</el-button></el-col
>
<el-col
class=
"line"
:span=
"2"
>
<el-button
size=
"mini"
>
新建
</el-button></el-col
<el-button
size=
"mini"
>
新建
</el-button></el-col
>
<el-col
class=
"line"
:span=
"2"
>
<el-button
size=
"mini"
>
向导
</el-button></el-col
>
<el-col
class=
"line"
:span=
"5"
>
<el-button
size=
"mini"
@
click=
"SQLPopup"
>
获取SQL查询语句
</el-button></el-col
<el-button
size=
"mini"
@
click=
"SQLPopup()"
>
获取SQL查询语句
</el-button
></el-col
>
</el-row>
</el-form-item>
...
...
@@ -44,10 +65,12 @@
<el-form-item
label=
"从步骤插入数据:"
>
<el-select
v-model=
"form.lookup"
style=
"width: 100%"
>
<el-option
v-for=
"item in connectionNode"
<el-option
v-for=
"item in connectionNode"
:key=
"item.id"
:label=
"item.name"
:value=
"item.name"
/>
:value=
"item.name"
/>
</el-select>
</el-form-item>
...
...
@@ -58,8 +81,6 @@
<el-form-item
label=
"记录数量限制:"
>
<el-input
v-model=
"form.limit"
></el-input>
</el-form-item>
</el-form>
<el-dialog
...
...
@@ -69,6 +90,14 @@
:before-close=
"handleClose"
:modal=
"false"
>
<el-tree
:data=
"browsingData"
:props=
"defaultProps"
@
node-click=
"handleNodeClick"
></el-tree>
<span
slot=
"footer"
class=
"dialog-footer"
>
...
...
@@ -76,58 +105,132 @@
<el-button
type=
"primary"
@
click=
"browsing = false"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
</
template
>
<
script
>
import
{
listNames
,
explorer
,
listDatabases
}
from
"@/api/kettle/link"
;
import
{
listNames
,
explorer
,
listDatabases
}
from
"@/api/kettle/link"
;
export
default
{
props
:
[
"connectionNode"
],
//从父组件传过来的值
props
:
[
"connectionNode"
],
//从父组件传过来的值
data
()
{
return
{
browsing
:
false
,
browsing
:
false
,
form
:
{
wLazyConversion
:
false
,
wVariables
:
false
,
wEachRow
:
false
,
wLazyConversion
:
false
,
wVariables
:
false
,
wEachRow
:
false
,
},
ComboBox
:
[],
library
:
[],
PopupFrom
:{},
browsingData
:
[],
defaultProps
:
{
children
:
"children"
,
label
:
"text"
,
},
ComboBox
:
{},
libraryName
:[],
};
},
created
()
{
this
.
list
Nam
esFun
();
this
.
list
Databas
esFun
();
},
methods
:
{
getField
(
val
){
console
.
log
(
val
);
listDatabases
({
name
:
val
}).
then
(
res
=>
{
console
.
log
(
res
);
})
// this.libraryName = val
getField
(
val
)
{
this
.
library
=
this
.
ComboBox
.
find
((
e
)
=>
{
return
e
.
name
==
val
;
});
console
.
log
(
this
.
library
);
},
SQLPopup
()
{
SQLPopup
()
{
if
(
this
.
form
.
connection
)
{
this
.
browsing
=
!
this
.
browsing
explorer
({
databaseInfo
:{
name
:
this
.
libraryName
}}).
then
(
res
=>
{
console
.
log
(
res
);
})
}
else
{
this
.
browsing
=
!
this
.
browsing
;
let
pamq
=
new
FormData
();
// 创建form对象
pamq
.
append
(
"databaseInfo"
,
JSON
.
stringify
(
this
.
library
));
pamq
.
append
(
"nodeId"
,
""
);
pamq
.
append
(
"text"
,
""
);
pamq
.
append
(
"includeElement"
,
"15"
);
pamq
.
append
(
"node"
,
""
);
explorer
(
pamq
).
then
((
res
)
=>
{
console
.
log
(
res
,
'------------'
);
this
.
PopupFrom
=
res
// this.browsingData = res
let
pam
=
new
FormData
();
// 创建form对象
pam
.
append
(
"databaseInfo"
,
JSON
.
stringify
(
this
.
library
));
pam
.
append
(
"nodeId"
,
JSON
.
stringify
(
this
.
PopupFrom
[
0
].
nodeId
).
replace
(
"
\"
"
,
""
).
replace
(
"
\"
"
,
""
));
pam
.
append
(
"text"
,
JSON
.
stringify
(
this
.
library
.
name
).
replace
(
"
\"
"
,
""
).
replace
(
"
\"
"
,
""
));
pam
.
append
(
"includeElement"
,
"15"
);
explorer
(
pam
).
then
((
res
)
=>
{
console
.
log
(
res
,
'++++++++++++++++++'
);
this
.
browsingData
=
this
.
PopupFrom
this
.
browsingData
[
0
].
children
=
res
let
itemData
=
this
.
browsingData
[
0
]
console
.
log
(
'======'
,
itemData
,
res
)
itemData
.
children
=
res
this
.
$set
(
this
.
browsingData
,
0
,
itemData
)
// this.browsingData = this.PopupFrom
// this.browsingData[0].children = res
});
});
}
else
{
this
.
$message
.
error
(
"请选择数据库"
);
}
},
handleClose
(
done
)
{
this
.
browsing
=
!
this
.
browsing
loadNode
(
node
,
resolve
)
{
if
(
node
.
level
===
0
)
{
return
resolve
([{
name
:
'region'
}]);
}
if
(
node
.
level
>
this
.
PopupFrom
.
length
)
return
resolve
([]);
setTimeout
(()
=>
{
const
data
=
[{
name
:
'leaf'
,
leaf
:
true
},
{
name
:
'zone'
}];
resolve
(
data
);
},
500
);
},
// handleNodeClick(data) {
// console.log(data);
// let pam = new FormData(); // 创建form对象
// pam.append("databaseInfo", JSON.stringify(this.library));
// pam.append("nodeId", JSON.stringify(data.nodeId).replace("\"", "").replace("\"",""));
// pam.append("text", JSON.stringify(data.text).replace("\"", "").replace("\"",""));
// pam.append("includeElement", "15");
// explorer(pam).then(res=>{
// console.log(res,'..........');
// })
// },
handleClose
(
done
)
{
this
.
browsing
=
!
this
.
browsing
;
// this.$confirm("确认关闭?")
// .then((_) => {
// done();
...
...
@@ -135,13 +238,10 @@ handleClose(done) {
// .catch((_) => {});
},
listNamesFun
()
{
listDatabasesFun
()
{
let
pamer
=
new
FormData
();
// 创建form对象
pamer
.
append
(
"query"
,
""
);
list
Nam
es
(
pamer
).
then
((
res
)
=>
{
list
Databas
es
(
pamer
).
then
((
res
)
=>
{
this
.
ComboBox
=
res
;
});
...
...
src/views/dashboard-kettle/components/appBulletFrame/textFileInput.vue
0 → 100644
View file @
90b38d65
This diff is collapsed.
Click to expand it.
src/views/dashboard-kettle/components/designer/FlowDesigner.vue
View file @
90b38d65
...
...
@@ -126,7 +126,7 @@
:activeElement=
"activeElement"
@
changeNodeSite=
"changeNodeSite"
@
nodeRightMenu=
"nodeRightMenu"
@
clickNode=
"clickNode
"
@
dblclick
.
native=
"clickNode(node)
"
>
</flow-node>
</
template
>
...
...
@@ -332,7 +332,7 @@
></el-checkbox>
</el-form-item>
<el-form-item
label=
"警文件目录:"
>
<el-form-item
label=
"
告
警文件目录:"
>
<el-row
:gutter=
"10"
>
<el-col
:span=
"8"
>
<el-input
...
...
@@ -657,17 +657,13 @@
width=
"800px"
:before-close=
"handleClose"
>
<el-form
ref=
"stepName"
:model=
"stepName"
label-width=
"120px"
>
<el-form-item
label=
"步骤名称:"
>
<el-input
v-model=
"stepName.name"
></el-input>
</el-form-item>
</el-form>
<tableInput
:disabled=
"true"
:connectionNode=
"connectionNode"
>
</tableInput>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"TableInputDialog = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
TableInputDialog=
"work
= false"
<el-button
type=
"primary"
@
click=
"TableInputDialog
= false"
>
确 定
</el-button
>
</span>
...
...
@@ -680,11 +676,7 @@
width=
"800px"
:before-close=
"handleClose"
>
<el-form
ref=
"stepName"
:model=
"stepName"
label-width=
"120px"
>
<el-form-item
label=
"步骤名称:"
>
<el-input
v-model=
"stepName.name"
></el-input>
</el-form-item>
</el-form>
<getSystemInformation
:disabled=
"true"
>
</getSystemInformation>
...
...
@@ -703,11 +695,6 @@
width=
"800px"
:before-close=
"handleClose"
>
<el-form
ref=
"stepName"
:model=
"stepName"
label-width=
"120px"
>
<el-form-item
label=
"步骤名称:"
>
<el-input
v-model=
"stepName.name"
></el-input>
</el-form-item>
</el-form>
<customConstant
:disabled=
"true"
>
</customConstant>
...
...
@@ -719,18 +706,13 @@
</span>
</el-dialog>
<!--
自定义常量数据
-->
<!--
生成随机数
-->
<el-dialog
title=
"
自定义常量数据
"
title=
"
生成随机数
"
:visible
.
sync=
"RandomValueDialog"
width=
"800px"
:before-close=
"handleClose"
>
<el-form
ref=
"stepName"
:model=
"stepName"
label-width=
"120px"
>
<el-form-item
label=
"步骤名称:"
>
<el-input
v-model=
"stepName.name"
></el-input>
</el-form-item>
</el-form>
<randomNumber
:disabled=
"true"
>
</randomNumber>
...
...
@@ -744,6 +726,45 @@
<!-- 生成记录-->
<el-dialog
title=
"生成记录"
:visible
.
sync=
"RowGeneratorDialog"
width=
"800px"
:before-close=
"handleClose"
>
<generatingRecords
:disabed=
"true"
></generatingRecords>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"RowGeneratorDialog = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"RowGeneratorDialog = false"
>
确 定
</el-button
>
</span>
</el-dialog>
<!-- 文本文件输入-->
<el-dialog
title=
"文本文件输入"
:visible
.
sync=
"TextFileInputDialog"
width=
"800px"
:before-close=
"handleClose"
>
<textFileInput
:disabed=
"true"
></textFileInput>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"TextFileInputDialog = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"TextFileInputDialog = false"
>
确 定
</el-button
>
</span>
</el-dialog>
<!-- 输出弹窗start=============== -->
<outDialog
ref=
"tableOutPut"
:tableOutPutVisible
.
sync=
"tableOutPutVisible"
></outDialog>
<insertOrUpdate
ref=
"insertOrdate"
:InsertOrUpdateVisible
.
sync=
"InsertOrUpdateVisible"
></insertOrUpdate>
...
...
@@ -782,11 +803,17 @@ import {
valueFormat
,
valueMeta
,
}
from
"@/api/kettle/link"
;
// 输入弹窗
import
tableInput
from
"../appBulletFrame/tableInput"
;
import
getSystemInformation
from
"../appBulletFrame/getSystemInformation"
;
import
customConstant
from
"../appBulletFrame/customConstant"
;
import
randomNumber
from
"../appBulletFrame/randomNumber"
;
import
generatingRecords
from
"../appBulletFrame/generatingRecords"
;
import
textFileInput
from
"../appBulletFrame/textFileInput"
;
// 输出弹窗start******************************************
...
...
@@ -828,12 +855,24 @@ export default {
fileVisible
:
false
,
microVisible
:
false
,
// mxl=================================
// 输入模块
publicData
:
[],
//全部连接
connectionNode
:[],
TextFileInputDialog
:
false
,
RowGeneratorDialog
:
false
,
TableInputDialog
:
false
,
SystemInfoDialog
:
false
,
ConstantDialog
:
false
,
RandomValueDialog
:
false
,
excelLnput
:
false
,
edit
:
false
,
work
:
false
,
field
:
false
,
form
:
{
checked
:
true
,
},
activeName
:
"file"
,
fieldType
:{},
fieldFormat
:{},
stepName
:{},
...
...
@@ -847,6 +886,9 @@ export default {
},
],
engine
:
[],
// 画布模块
isShowIcon
:
false
,
isLeftMenu
:
true
,
isShowR
:
false
,
...
...
@@ -873,14 +915,7 @@ export default {
workForm
:{},
fieldForm
:{},
excelLnput
:
false
,
edit
:
false
,
work
:
false
,
field
:
false
,
form
:
{
checked
:
true
,
},
activeName
:
"file"
,
};
},
// 一些基础配置移动该文件中
...
...
@@ -891,8 +926,10 @@ export default {
flowNode
,
nodeMenu
,
getSystemInformation
,
generatingRecords
,
customConstant
,
randomNumber
,
textFileInput
,
// FlowNodeForm
// 弹窗组件start***********************
outDialog
,
//表输出
...
...
@@ -1471,11 +1508,7 @@ export default {
console
.
log
(
"点击节点操作"
,
node
);
// this.$emit("dialogVisibleFourth",true);
// this.$emit('updata:dialogVisibleFourth',true); //触发showbox方法,true为向父组件传递的数据
this
.
stepName
.
name
=
node
.
name
this
.
connectionNode
=
this
.
publicData
[
node
.
id
]
console
.
log
(
this
.
connectionNode
);
this
.
isShowR
=
true
;
...
...
@@ -1509,16 +1542,25 @@ export default {
if
(
node
.
ids
==
"step1"
)
{
this
.
excelLnput
=
!
this
.
excelLnput
;
return
;
}
else
if
(
node
.
ids
==
"step7"
)
{
this
.
TableInputDialog
=
!
this
.
TableInputDialog
;
return
;
}
else
if
(
node
.
ids
==
"step6"
)
{
this
.
SystemInfoDialog
=
!
this
.
SystemInfoDialog
;
return
;
}
else
if
(
node
.
ids
==
"step5"
)
{
this
.
ConstantDialog
=
!
this
.
ConstantDialog
;
}
if
(
node
.
ids
==
"step4"
)
{
return
;
}
else
if
(
node
.
ids
==
"step4"
)
{
this
.
RandomValueDialog
=
!
this
.
RandomValueDialog
;
return
;
}
else
if
(
node
.
ids
==
"step3"
)
{
this
.
RowGeneratorDialog
=
!
this
.
RowGeneratorDialog
return
;
}
else
if
(
node
.
ids
==
"step2"
)
{
this
.
TextFileInputDialog
=
!
this
.
TextFileInputDialog
return
;
}
},
// 是否具有该线
...
...
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