Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
DolphinScheduler
提交
b81574ec
DolphinScheduler
项目概览
apache
/
DolphinScheduler
上一次同步 1 年多
通知
706
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,体验更适合开发者的 AI 搜索 >>
未验证
提交
b81574ec
编写于
8月 10, 2022
作者:
S
Sheldon
提交者:
GitHub
8月 10, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[Feature-10117][UI] Hide node execution when start from the workflow definition list page (#11372)
Co-authored-by: sheldonliu <sheldonliu>
上级
26a21566
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
21 addition
and
14 deletion
+21
-14
dolphinscheduler-ui/src/views/projects/workflow/definition/components/start-modal.tsx
...s/projects/workflow/definition/components/start-modal.tsx
+21
-14
未找到文件。
dolphinscheduler-ui/src/views/projects/workflow/definition/components/start-modal.tsx
浏览文件 @
b81574ec
...
@@ -23,9 +23,11 @@ import {
...
@@ -23,9 +23,11 @@ import {
onMounted
,
onMounted
,
ref
,
ref
,
watch
,
watch
,
getCurrentInstance
getCurrentInstance
,
computed
}
from
'
vue
'
}
from
'
vue
'
import
{
useI18n
}
from
'
vue-i18n
'
import
{
useI18n
}
from
'
vue-i18n
'
import
{
useRoute
}
from
"
vue-router
"
import
Modal
from
'
@/components/modal
'
import
Modal
from
'
@/components/modal
'
import
{
useForm
}
from
'
./use-form
'
import
{
useForm
}
from
'
./use-form
'
import
{
useModal
}
from
'
./use-modal
'
import
{
useModal
}
from
'
./use-modal
'
...
@@ -74,6 +76,7 @@ export default defineComponent({
...
@@ -74,6 +76,7 @@ export default defineComponent({
setup
(
props
,
ctx
)
{
setup
(
props
,
ctx
)
{
const
parallelismRef
=
ref
(
false
)
const
parallelismRef
=
ref
(
false
)
const
{
t
}
=
useI18n
()
const
{
t
}
=
useI18n
()
const
route
=
useRoute
()
const
{
startState
}
=
useForm
()
const
{
startState
}
=
useForm
()
const
{
const
{
variables
,
variables
,
...
@@ -144,6 +147,8 @@ export default defineComponent({
...
@@ -144,6 +147,8 @@ export default defineComponent({
}
}
]
]
const
showTaskDependType
=
computed
(()
=>
route
.
name
===
'
workflow-definition-detail
'
)
const
renderLabel
=
(
option
:
any
)
=>
{
const
renderLabel
=
(
option
:
any
)
=>
{
return
[
return
[
h
(
h
(
...
@@ -205,6 +210,7 @@ export default defineComponent({
...
@@ -205,6 +210,7 @@ export default defineComponent({
return
{
return
{
t
,
t
,
showTaskDependType
,
parallelismRef
,
parallelismRef
,
hideModal
,
hideModal
,
handleStart
,
handleStart
,
...
@@ -224,7 +230,6 @@ export default defineComponent({
...
@@ -224,7 +230,6 @@ export default defineComponent({
render
()
{
render
()
{
const
{
t
}
=
this
const
{
t
}
=
this
return
(
return
(
<
Modal
<
Modal
show
=
{
this
.
show
}
show
=
{
this
.
show
}
...
@@ -255,18 +260,20 @@ export default defineComponent({
...
@@ -255,18 +260,20 @@ export default defineComponent({
</
NSpace
>
</
NSpace
>
</
NRadioGroup
>
</
NRadioGroup
>
</
NFormItem
>
</
NFormItem
>
<
NFormItem
{
this
.
showTaskDependType
&&
(
label
=
{
t
(
'
project.workflow.node_execution
'
)
}
<
NFormItem
path
=
'taskDependType'
label
=
{
t
(
'
project.workflow.node_execution
'
)
}
>
path
=
'taskDependType'
<
NRadioGroup
v
-
model
:
value
=
{
this
.
startForm
.
taskDependType
}
>
>
<
NSpace
>
<
NRadioGroup
v
-
model
:
value
=
{
this
.
startForm
.
taskDependType
}
>
<
NRadio
value
=
'TASK_POST'
>
{
t
(
'
project.workflow.backward_execution
'
)
}
</
NRadio
>
<
NSpace
>
<
NRadio
value
=
'TASK_PRE'
>
{
t
(
'
project.workflow.forward_execution
'
)
}
</
NRadio
>
<
NRadio
value
=
'TASK_POST'
>
{
t
(
'
project.workflow.backward_execution
'
)
}
</
NRadio
>
<
NRadio
value
=
'TASK_ONLY'
>
{
t
(
'
project.workflow.current_node_execution
'
)
}
</
NRadio
>
<
NRadio
value
=
'TASK_PRE'
>
{
t
(
'
project.workflow.forward_execution
'
)
}
</
NRadio
>
</
NSpace
>
<
NRadio
value
=
'TASK_ONLY'
>
{
t
(
'
project.workflow.current_node_execution
'
)
}
</
NRadio
>
</
NRadioGroup
>
</
NSpace
>
</
NFormItem
>
</
NRadioGroup
>
</
NFormItem
>)
}
<
NFormItem
<
NFormItem
label
=
{
t
(
'
project.workflow.notification_strategy
'
)
}
label
=
{
t
(
'
project.workflow.notification_strategy
'
)
}
path
=
'warningType'
path
=
'warningType'
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录