Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
DolphinScheduler
提交
e31f38a1
DolphinScheduler
项目概览
apache
/
DolphinScheduler
上一次同步 接近 2 年
通知
707
Star
9572
Fork
3514
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
DolphinScheduler
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e31f38a1
编写于
3月 21, 2020
作者:
B
break60
提交者:
gaojun2048
6月 29, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
datax add custom
上级
416e0417
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
46 addition
and
27 deletion
+46
-27
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue
...rc/js/conf/home/pages/dag/_source/formModel/formModel.vue
+0
-1
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/datax.vue
.../js/conf/home/pages/dag/_source/formModel/tasks/datax.vue
+44
-26
dolphinscheduler-ui/src/js/module/i18n/locale/en_US.js
dolphinscheduler-ui/src/js/module/i18n/locale/en_US.js
+1
-0
dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js
dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js
+1
-0
未找到文件。
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue
浏览文件 @
e31f38a1
...
@@ -430,7 +430,6 @@
...
@@ -430,7 +430,6 @@
* return params
* return params
*/
*/
_onParams
(
o
)
{
_onParams
(
o
)
{
console
.
log
(
o
)
this
.
params
=
Object
.
assign
({},
o
)
this
.
params
=
Object
.
assign
({},
o
)
},
},
...
...
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/datax.vue
浏览文件 @
e31f38a1
...
@@ -161,7 +161,6 @@
...
@@ -161,7 +161,6 @@
return
{
return
{
// Data Custom template
// Data Custom template
enable
:
false
,
enable
:
false
,
enables
:
false
,
// Data source type
// Data source type
dsType
:
''
,
dsType
:
''
,
// data source
// data source
...
@@ -199,12 +198,17 @@
...
@@ -199,12 +198,17 @@
},
},
methods
:
{
methods
:
{
_onSwitch
(
is
)
{
_onSwitch
(
is
)
{
console
.
log
(
is
)
if
(
is
)
{
this
.
enables
=
true
this
.
customConfig
=
1
this
.
customConfig
=
1
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
_handlerJsonEditor
()
this
.
_handlerJsonEditor
()
},
200
)
},
200
)
}
else
{
this
.
customConfig
=
0
setTimeout
(()
=>
{
this
.
_handlerEditor
()
},
200
)
}
},
},
/**
/**
* return data source
* return data source
...
@@ -237,6 +241,11 @@
...
@@ -237,6 +241,11 @@
*/
*/
_verification
()
{
_verification
()
{
if
(
this
.
customConfig
)
{
if
(
this
.
customConfig
)
{
if
(
!
jsonEditor
.
getValue
())
{
this
.
$message
.
warning
(
`
${
i18n
.
$t
(
'
Please enter a JSON Statement(required)
'
)}
`
)
return
false
}
// storage
// storage
this
.
$emit
(
'
on-params
'
,
{
this
.
$emit
(
'
on-params
'
,
{
customConfig
:
this
.
customConfig
,
customConfig
:
this
.
customConfig
,
...
@@ -245,7 +254,6 @@
...
@@ -245,7 +254,6 @@
})
})
return
true
return
true
}
else
{
}
else
{
console
.
log
(
123
)
if
(
!
editor
.
getValue
())
{
if
(
!
editor
.
getValue
())
{
this
.
$message
.
warning
(
`
${
i18n
.
$t
(
'
Please enter a SQL Statement(required)
'
)}
`
)
this
.
$message
.
warning
(
`
${
i18n
.
$t
(
'
Please enter a SQL Statement(required)
'
)}
`
)
return
false
return
false
...
@@ -387,27 +395,37 @@
...
@@ -387,27 +395,37 @@
// Non-null objects represent backfill
// Non-null objects represent backfill
if
(
!
_
.
isEmpty
(
o
))
{
if
(
!
_
.
isEmpty
(
o
))
{
// backfill
// backfill
this
.
dsType
=
o
.
params
.
dsType
||
''
if
(
o
.
params
.
customConfig
==
0
)
{
this
.
datasource
=
o
.
params
.
dataSource
||
''
this
.
customConfig
=
0
this
.
dtType
=
o
.
params
.
dtType
||
''
this
.
enable
=
false
this
.
datatarget
=
o
.
params
.
dataTarget
||
''
this
.
dsType
=
o
.
params
.
dsType
||
''
this
.
sql
=
o
.
params
.
sql
||
''
this
.
datasource
=
o
.
params
.
dataSource
||
''
this
.
targetTable
=
o
.
params
.
targetTable
||
''
this
.
dtType
=
o
.
params
.
dtType
||
''
this
.
jobSpeedByte
=
o
.
params
.
jobSpeedByte
/
1024
||
0
this
.
datatarget
=
o
.
params
.
dataTarget
||
''
this
.
jobSpeedRecord
=
o
.
params
.
jobSpeedRecord
||
0
this
.
sql
=
o
.
params
.
sql
||
''
this
.
preStatements
=
o
.
params
.
preStatements
||
[]
this
.
targetTable
=
o
.
params
.
targetTable
||
''
this
.
postStatements
=
o
.
params
.
postStatements
||
[]
this
.
jobSpeedByte
=
o
.
params
.
jobSpeedByte
/
1024
||
0
this
.
jobSpeedRecord
=
o
.
params
.
jobSpeedRecord
||
0
this
.
preStatements
=
o
.
params
.
preStatements
||
[]
this
.
postStatements
=
o
.
params
.
postStatements
||
[]
}
else
{
this
.
customConfig
=
1
this
.
enable
=
true
this
.
json
=
o
.
params
.
json
||
[]
this
.
localParams
=
o
.
params
.
localParams
||
''
}
}
}
},
},
mounted
()
{
mounted
()
{
setTimeout
(()
=>
{
if
(
this
.
customConfig
)
{
this
.
_handlerEditor
()
setTimeout
(()
=>
{
},
200
)
this
.
_handlerJsonEditor
()
// this._handlerJsonEditor()
},
200
)
// setTimeout(() => {
}
else
{
// this._handlerJsonEditor()
setTimeout
(()
=>
{
// }, 200)
this
.
_handlerEditor
()
},
200
)
}
},
},
destroyed
()
{
destroyed
()
{
/**
/**
...
...
dolphinscheduler-ui/src/js/module/i18n/locale/en_US.js
浏览文件 @
e31f38a1
...
@@ -120,6 +120,7 @@ export default {
...
@@ -120,6 +120,7 @@ export default {
'
SQL Statement
'
:
'
SQL Statement
'
,
'
SQL Statement
'
:
'
SQL Statement
'
,
'
UDF Function
'
:
'
UDF Function
'
,
'
UDF Function
'
:
'
UDF Function
'
,
'
Please enter a SQL Statement(required)
'
:
'
Please enter a SQL Statement(required)
'
,
'
Please enter a SQL Statement(required)
'
:
'
Please enter a SQL Statement(required)
'
,
'
Please enter a JSON Statement(required)
'
:
'
Please enter a JSON Statement(required)
'
,
'
One form or attachment must be selected
'
:
'
One form or attachment must be selected
'
,
'
One form or attachment must be selected
'
:
'
One form or attachment must be selected
'
,
'
Recipient required
'
:
'
Recipient required
'
,
'
Recipient required
'
:
'
Recipient required
'
,
'
Mail subject required
'
:
'
Mail subject required
'
,
'
Mail subject required
'
:
'
Mail subject required
'
,
...
...
dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js
浏览文件 @
e31f38a1
...
@@ -121,6 +121,7 @@ export default {
...
@@ -121,6 +121,7 @@ export default {
'
SQL Statement
'
:
'
sql语句
'
,
'
SQL Statement
'
:
'
sql语句
'
,
'
UDF Function
'
:
'
UDF函数
'
,
'
UDF Function
'
:
'
UDF函数
'
,
'
Please enter a SQL Statement(required)
'
:
'
请输入sql语句(必填)
'
,
'
Please enter a SQL Statement(required)
'
:
'
请输入sql语句(必填)
'
,
'
Please enter a JSON Statement(required)
'
:
'
请输入json语句(必填)
'
,
'
One form or attachment must be selected
'
:
'
表格、附件必须勾选一个
'
,
'
One form or attachment must be selected
'
:
'
表格、附件必须勾选一个
'
,
'
Recipient required
'
:
'
收件人邮箱必填
'
,
'
Recipient required
'
:
'
收件人邮箱必填
'
,
'
Mail subject required
'
:
'
邮件主题必填
'
,
'
Mail subject required
'
:
'
邮件主题必填
'
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录