Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
liyuanzhong001
DolphinScheduler
提交
2087f464
DolphinScheduler
项目概览
liyuanzhong001
/
DolphinScheduler
与 Fork 源项目一致
Fork自
apache / DolphinScheduler
通知
11
Star
0
Fork
0
代码
文件
提交
分支
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,发现更多精彩内容 >>
提交
2087f464
编写于
1月 07, 2020
作者:
Z
zhukai
提交者:
dailidong
1月 07, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Implements the sql type task, now it can be cache the previous input. (#1745)
上级
4b027fbf
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
54 addition
and
4 deletion
+54
-4
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue
...rc/js/conf/home/pages/dag/_source/formModel/formModel.vue
+1
-0
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/_source/datasource.vue
.../pages/dag/_source/formModel/tasks/_source/datasource.vue
+15
-2
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/sql.vue
...rc/js/conf/home/pages/dag/_source/formModel/tasks/sql.vue
+33
-2
dolphinscheduler-ui/src/js/conf/home/store/dag/actions.js
dolphinscheduler-ui/src/js/conf/home/store/dag/actions.js
+5
-0
未找到文件。
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue
浏览文件 @
2087f464
...
...
@@ -143,6 +143,7 @@
<m-sql
v-if=
"taskType === 'SQL'"
@
on-params=
"_onParams"
@
on-cache-params=
"_onCacheParams"
ref=
"SQL"
:create-node-id=
"id"
:backfill-item=
"backfillItem"
>
...
...
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/_source/datasource.vue
浏览文件 @
2087f464
...
...
@@ -112,7 +112,20 @@
})
}
},
watch
:
{},
computed
:
{
cacheParams
()
{
return
{
type
:
this
.
type
,
datasource
:
this
.
datasource
}
}
},
// Watch the cacheParams
watch
:
{
cacheParams
(
val
)
{
this
.
$emit
(
'
on-dsData
'
,
val
);
}
},
created
()
{
let
supportType
=
this
.
supportType
||
[]
this
.
typeList
=
_
.
cloneDeep
(
this
.
store
.
state
.
dag
.
dsTypeListS
)
...
...
@@ -146,4 +159,4 @@
},
components
:
{
}
}
</
script
>
\ No newline at end of file
</
script
>
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/sql.vue
浏览文件 @
2087f464
...
...
@@ -371,6 +371,10 @@
this
.
connParams
=
''
}
},
//Watch the cacheParams
cacheParams
(
val
)
{
this
.
$emit
(
'
on-cache-params
'
,
val
);
}
},
created
()
{
let
o
=
this
.
backfillItem
...
...
@@ -396,7 +400,8 @@
this
.
receivers
=
o
.
params
.
receivers
&&
o
.
params
.
receivers
.
split
(
'
,
'
)
||
[]
this
.
receiversCc
=
o
.
params
.
receiversCc
&&
o
.
params
.
receiversCc
.
split
(
'
,
'
)
||
[]
}
if
(
!
_
.
some
(
this
.
store
.
state
.
dag
.
tasks
,
{
id
:
this
.
createNodeId
})
&&
// read tasks from cache
if
(
!
_
.
some
(
this
.
store
.
state
.
dag
.
cacheTasks
,
{
id
:
this
.
createNodeId
})
&&
this
.
router
.
history
.
current
.
name
!==
'
definition-create
'
)
{
this
.
_getReceiver
()
}
...
...
@@ -415,7 +420,33 @@
editor
.
off
(
$
(
'
.code-sql-mirror
'
),
'
keypress
'
,
this
.
keypress
)
}
},
computed
:
{},
computed
:
{
cacheParams
()
{
return
{
type
:
this
.
type
,
datasource
:
this
.
rtDatasource
,
sql
:
editor
?
editor
.
getValue
()
:
''
,
udfs
:
this
.
udfs
,
sqlType
:
this
.
sqlType
,
title
:
this
.
title
,
receivers
:
this
.
receivers
.
join
(
'
,
'
),
receiversCc
:
this
.
receiversCc
.
join
(
'
,
'
),
showType
:
(()
=>
{
let
showType
=
this
.
showType
if
(
showType
.
length
===
2
&&
showType
[
0
]
===
'
ATTACHMENT
'
)
{
return
[
showType
[
1
],
showType
[
0
]].
join
(
'
,
'
)
}
else
{
return
showType
.
join
(
'
,
'
)
}
})(),
localParams
:
this
.
localParams
,
connParams
:
this
.
connParams
,
preStatements
:
this
.
preStatements
,
postStatements
:
this
.
postStatements
}
}
},
components
:
{
mListBox
,
mDatasource
,
mLocalParams
,
mUdfs
,
mSqlType
,
mStatementList
,
mEmail
}
}
</
script
>
...
...
dolphinscheduler-ui/src/js/conf/home/store/dag/actions.js
浏览文件 @
2087f464
...
...
@@ -110,6 +110,11 @@ export default {
let
processDefinitionJson
=
JSON
.
parse
(
res
.
data
.
processDefinitionJson
)
// tasks info
state
.
tasks
=
processDefinitionJson
.
tasks
// tasks cache
state
.
cacheTasks
=
{}
processDefinitionJson
.
tasks
.
forEach
(
v
=>
{
state
.
cacheTasks
[
v
.
id
]
=
v
})
// global params
state
.
globalParams
=
processDefinitionJson
.
globalParams
// timeout
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录