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
393836df
Commit
393836df
authored
Apr 10, 2021
by
莫晓莉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
传入stepName
parent
5230c886
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
96 additions
and
36 deletions
+96
-36
src/views/dashboard-kettle/components/appBulletFrame/tableInput.vue
+2
-1
src/views/dialogs-components/global/trans-graph/main.vue
+2
-1
src/views/output-dialog/Excel-output.vue
+50
-16
src/views/output-dialog/delete.vue
+4
-2
src/views/output-dialog/insertOrUpdate.vue
+2
-1
src/views/output-dialog/micro-excel.vue
+10
-1
src/views/output-dialog/synchronize.vue
+6
-2
src/views/output-dialog/table-out.vue
+10
-8
src/views/output-dialog/text-file-output.vue
+5
-2
src/views/output-dialog/update.vue
+5
-2
No files found.
src/views/dashboard-kettle/components/appBulletFrame/tableInput.vue
View file @
393836df
...
...
@@ -162,12 +162,13 @@ import {
}
from
"@/api/kettle/link"
;
export
default
{
props
:
[
"connectionNode"
,
"stepName"
,
"form"
,
"graphXml"
,
"getXmlVal"
,
"graph"
],
//从父组件传过来的值
props
:
[
"connectionNode"
,
"stepName"
,
"form"
,
"graphXml"
,
"getXmlVal"
,],
//从父组件传过来的值
components
:
{
main
,
},
data
()
{
return
{
graph
:{},
tableDetails
:{},
connectionName
:
""
,
browsing
:
false
,
...
...
src/views/dialogs-components/global/trans-graph/main.vue
View file @
393836df
...
...
@@ -20,7 +20,8 @@
</el-tab-pane>
<el-tab-pane
label=
"日志"
name=
"second"
:disabled=
"!finished"
>
<div
style=
"height:50vh;overflow-y:auto;"
>
{{mylog}}
</div>
<!-- <div style="height:50vh;overflow-y:auto;">{{mylog}}</div> -->
<div
style=
"height:50vh;overflow-y:auto;white-space:pre-line;"
v-html=
"mylog"
></div>
</el-tab-pane>
...
...
src/views/output-dialog/Excel-output.vue
View file @
393836df
...
...
@@ -376,6 +376,7 @@
<el-card
class=
"box-card"
style=
"margin-top:15px;"
>
<div
slot=
"header"
class=
"clearfix"
>
<el-button
style=
"padding: 3px 0"
type=
"text"
@
click=
"fieldClick(true)"
>
新增字段
</el-button>
<el-button
style=
"padding: 3px 0"
type=
"text"
@
click=
"inputOutputFields"
>
获取字段
</el-button>
</div>
<table-list
ref=
"tableDia"
:tableHead=
"tableHead"
:tableData=
"tableData"
:field
.
sync=
"editDia"
:fieldClick=
"fieldClick"
></table-list>
...
...
@@ -454,11 +455,13 @@ import {
getFontalignment
,
//表头对齐方式
// getFontname,//数据字体
getValueMetaStore
,
getValueFormatStore
getValueFormatStore
,
inputOutputFields
,
}
from
"@/api/kettle/file"
;
export
default
({
data
(){
return
{
newGraph
:{},
metaStoreList
:[],
//类型
formatStoreList
:[],
//字段格式
field
:
false
,
//编辑弹窗
...
...
@@ -537,21 +540,21 @@ export default ({
],
// 表格数据
tableData
:
[
{
name
:
'31'
,
type
:
'鞠婧祎'
,
format
:
'女'
},
{
name
:
'32'
,
type
:
'鞠婧祎'
,
format
:
'女'
},
{
name
:
'33'
,
type
:
'鞠婧祎'
,
format
:
'女'
},
//
{
//
name: '31',
//
type: '鞠婧祎',
//
format: '女'
//
},
//
{
//
name: '32',
//
type: '鞠婧祎',
//
format: '女'
//
},
//
{
//
name: '33',
//
type: '鞠婧祎',
//
format: '女'
//
},
],
formatTimeList
:[],
//时间日期格式
codeList
:[],
//编码
...
...
@@ -615,6 +618,13 @@ export default ({
},
methods
:{
clickFun
(
graph
){
console
.
log
(
graph
,
1
)
this
.
newGraph
=
graph
// setTimeout(() => {
// this.$refs.databaseChoose.clickFun(graph,121331);
// }, 500);
},
handleClose
(){
this
.
$emit
(
"update:excelOutPutVisible"
,
false
);
},
...
...
@@ -776,6 +786,30 @@ export default ({
}
})
},
// 获取字段
inputOutputFields
(){
if
(
this
.
doubleClickCell
){
var
title
=
this
.
doubleClickCell
.
value
.
attributes
.
label
.
value
}
console
.
log
(
'获取cell888888==='
,
this
.
doubleClickCell
);
let
pamer
=
new
FormData
();
// 创建form对象
pamer
.
append
(
"stepName"
,
encodeURIComponent
(
title
));
// pamer.append("graphXml", this.getXmlVal);
// 画布xml转码
const
codec
=
new
mxCodec
();
const
encodedModel
=
codec
.
encode
(
this
.
newGraph
.
getModel
());
//xml对象
console
.
log
(
"获取字段的画布详情:"
,
encodedModel
);
// var myXmlVal = mxUtils.getXml(encodedModel);//xml字符串
var
myXmlVal
=
mxUtils
.
getPrettyXml
(
encodedModel
);
//xml字符串
pamer
.
append
(
"graphXml"
,
myXmlVal
);
pamer
.
append
(
"before"
,
true
);
pamer
.
append
(
"query"
,
''
);
inputOutputFields
(
pamer
).
then
(
res
=>
{
console
.
log
(
'字段'
,
res
);
// this.fieldsList2=res;
})
},
}
})
...
...
src/views/output-dialog/delete.vue
View file @
393836df
...
...
@@ -288,7 +288,8 @@ export default ({
},
tableFields
(){
if
(
this
.
doubleClickCell
){
var
title
=
this
.
doubleClickCell
.
title
// var title=this.doubleClickCell.title;
var
title
=
this
.
doubleClickCell
.
value
.
attributes
.
label
.
value
}
console
.
log
(
'获取cell888888==='
,
this
.
doubleClickCell
);
let
pamer
=
new
FormData
();
// 创建form对象
...
...
@@ -320,7 +321,8 @@ export default ({
//获取表输出
inputOutputFields
(){
if
(
this
.
doubleClickCell
){
var
title
=
this
.
doubleClickCell
.
title
// var title=this.doubleClickCell.title;
var
title
=
this
.
doubleClickCell
.
value
.
attributes
.
label
.
value
}
console
.
log
(
'获取cell888888==='
,
this
.
doubleClickCell
);
let
pamer
=
new
FormData
();
// 创建form对象
...
...
src/views/output-dialog/insertOrUpdate.vue
View file @
393836df
...
...
@@ -400,7 +400,8 @@ export default ({
//获取字段
getFields
(
num
){
if
(
this
.
doubleClickCell
){
var
title
=
this
.
doubleClickCell
.
title
// var title=this.doubleClickCell.title;
var
title
=
this
.
doubleClickCell
.
value
.
attributes
.
label
.
value
;
}
console
.
log
(
'获取cell888888==='
,
this
.
doubleClickCell
);
let
pamer
=
new
FormData
();
// 创建form对象
...
...
src/views/output-dialog/micro-excel.vue
View file @
393836df
...
...
@@ -401,6 +401,7 @@ getValueFormatStore
export
default
({
data
(){
return
{
newGraph
:{},
formName
:
''
,
//当前那个属性选择文件夹
metaStoreList
:[],
//类型
formatStoreList
:[],
//字段格式
...
...
@@ -567,6 +568,13 @@ export default ({
this
.
excelwritemethod
();
//如果输出文件中已存在工作表
},
methods
:{
clickFun
(
graph
){
console
.
log
(
graph
,
1
)
this
.
newGraph
=
graph
setTimeout
(()
=>
{
this
.
$refs
.
databaseChoose
.
clickFun
(
graph
,
121331
);
},
500
);
},
handleClose
(){
this
.
$emit
(
"update:microVisible"
,
false
);
},
...
...
@@ -645,7 +653,8 @@ export default ({
//超链接
inputOutputFields
(){
if
(
this
.
doubleClickCell
){
var
title
=
this
.
doubleClickCell
.
title
// var title=this.doubleClickCell.title
var
title
=
this
.
doubleClickCell
.
value
.
attributes
.
label
.
value
}
console
.
log
(
'获取cell888888==='
,
this
.
doubleClickCell
);
let
pamer
=
new
FormData
();
// 创建form对象
...
...
src/views/output-dialog/synchronize.vue
View file @
393836df
...
...
@@ -532,7 +532,9 @@ export default ({
// -----更新end------------------
tableFields
(){
if
(
this
.
doubleClickCell
){
var
title
=
this
.
doubleClickCell
.
title
// var title=this.doubleClickCell.title;
var
title
=
this
.
doubleClickCell
.
value
.
attributes
.
label
.
value
;
}
console
.
log
(
'获取cell888888==='
,
this
.
doubleClickCell
);
let
pamer
=
new
FormData
();
// 创建form对象
...
...
@@ -562,7 +564,9 @@ export default ({
//获取表输出
inputOutputFields
(){
if
(
this
.
doubleClickCell
){
var
title
=
this
.
doubleClickCell
.
title
// var title=this.doubleClickCell.title
var
title
=
this
.
doubleClickCell
.
value
.
attributes
.
label
.
value
;
}
console
.
log
(
'获取cell888888==='
,
this
.
doubleClickCell
);
let
pamer
=
new
FormData
();
// 创建form对象
...
...
src/views/output-dialog/table-out.vue
View file @
393836df
...
...
@@ -351,9 +351,10 @@ export default ({
},
tableFields
(){
// if(this.doubleClickCell){
// var title=this.doubleClickCell.title
// }
if
(
this
.
doubleClickCell
){
// var title=this.doubleClickCell.title
var
title
=
this
.
doubleClickCell
.
value
.
attributes
.
label
.
value
}
console
.
log
(
'获取cell888888==='
,
this
.
doubleClickCell
);
let
pamer
=
new
FormData
();
// 创建form对象
// pamer.append("stepName", encodeURIComponent(title));
...
...
@@ -384,13 +385,14 @@ export default ({
},
//获取表输出
inputOutputFields
(){
// if(this.doubleClickCell){
// var title=this.doubleClickCell.title
// }
if
(
this
.
doubleClickCell
){
// var title=this.doubleClickCell.title
var
title
=
this
.
doubleClickCell
.
value
.
attributes
.
label
.
value
}
console
.
log
(
'获取cell888888==='
,
this
.
doubleClickCell
);
let
pamer
=
new
FormData
();
// 创建form对象
//
pamer.append("stepName", encodeURIComponent(title));
pamer
.
append
(
"stepName"
,
encodeURIComponent
(
this
.
tableOutForm
.
label
));
pamer
.
append
(
"stepName"
,
encodeURIComponent
(
title
));
//
pamer.append("stepName", encodeURIComponent(this.tableOutForm.label));
// pamer.append("graphXml", this.getXmlVal);
// 画布xml转码
...
...
src/views/output-dialog/text-file-output.vue
View file @
393836df
...
...
@@ -10,7 +10,7 @@
<div
id=
"ExcelInputDialog"
></div>
<el-form
ref=
"textFileForm"
:model=
"textFileForm"
label-width=
"200px"
>
<el-form-item
label=
"步骤名称:"
label-width=
"120px"
>
<el-input
v-model=
"textFileForm.
name
"
></el-input>
<el-input
v-model=
"textFileForm.
label"
value=
"文件文本输出
"
></el-input>
</el-form-item>
<el-tabs
v-model=
"activeName"
type=
"border-card"
>
<el-tab-pane
label=
"文件"
name=
"content"
>
...
...
@@ -689,11 +689,14 @@ export default ({
//获取表输出
inputOutputFields
(){
if
(
this
.
doubleClickCell
){
var
title
=
this
.
doubleClickCell
.
title
// var title=this.doubleClickCell.title;
var
title
=
this
.
doubleClickCell
.
value
.
attributes
.
label
.
value
}
console
.
log
(
'获取cell888888==='
,
this
.
doubleClickCell
);
let
pamer
=
new
FormData
();
// 创建form对象
pamer
.
append
(
"stepName"
,
encodeURIComponent
(
title
));
// pamer.append("stepName", encodeURIComponent(this.textFileForm.label));
// pamer.append("graphXml", this.getXmlVal);
// 画布xml转码
const
codec
=
new
mxCodec
();
...
...
src/views/output-dialog/update.vue
View file @
393836df
...
...
@@ -426,7 +426,9 @@ export default ({
tableFields
(){
if
(
this
.
doubleClickCell
){
var
title
=
this
.
doubleClickCell
.
title
// var title=this.doubleClickCell.title;
var
title
=
this
.
doubleClickCell
.
value
.
attributes
.
label
.
value
;
}
console
.
log
(
'获取cell888888==='
,
this
.
doubleClickCell
);
let
pamer
=
new
FormData
();
// 创建form对象
...
...
@@ -456,7 +458,8 @@ export default ({
//获取表输出
inputOutputFields
(){
if
(
this
.
doubleClickCell
){
var
title
=
this
.
doubleClickCell
.
title
// var title=this.doubleClickCell.title;
var
title
=
this
.
doubleClickCell
.
value
.
attributes
.
label
.
value
;
}
console
.
log
(
'获取cell888888==='
,
this
.
doubleClickCell
);
let
pamer
=
new
FormData
();
// 创建form对象
...
...
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