Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
DolphinScheduler
提交
e2d516f2
DolphinScheduler
项目概览
apache
/
DolphinScheduler
上一次同步 1 年多
通知
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,发现更多精彩内容 >>
未验证
提交
e2d516f2
编写于
11月 12, 2021
作者:
W
wangyizhi
提交者:
GitHub
11月 12, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Optimize DAG page opening speed (#6830)
上级
5453f1e3
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
40 addition
and
32 deletion
+40
-32
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue
...rc/js/conf/home/pages/dag/_source/formModel/formModel.vue
+3
-3
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/sub_process.vue
...nf/home/pages/dag/_source/formModel/tasks/sub_process.vue
+33
-19
dolphinscheduler-ui/src/js/conf/home/pages/dag/definitionDetails.vue
...duler-ui/src/js/conf/home/pages/dag/definitionDetails.vue
+1
-3
dolphinscheduler-ui/src/js/conf/home/pages/dag/index.vue
dolphinscheduler-ui/src/js/conf/home/pages/dag/index.vue
+1
-3
dolphinscheduler-ui/src/js/conf/home/pages/dag/instanceDetails.vue
...heduler-ui/src/js/conf/home/pages/dag/instanceDetails.vue
+1
-3
dolphinscheduler-ui/src/js/conf/home/store/dag/actions.js
dolphinscheduler-ui/src/js/conf/home/store/dag/actions.js
+1
-1
未找到文件。
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue
浏览文件 @
e2d516f2
...
...
@@ -659,10 +659,10 @@
const
processDefinitionId
=
this
.
backfillItem
.
params
.
processDefinitionId
const
process
=
this
.
processListS
.
find
(
(
process
)
=>
process
.
processDefinition
.
id
===
processDefinitionId
(
def
)
=>
def
.
id
===
processDefinitionId
)
this
.
$emit
(
'
onSubProcess
'
,
{
subProcessCode
:
process
.
processDefinition
.
code
,
subProcessCode
:
process
.
code
,
fromThis
:
this
})
}
...
...
@@ -949,7 +949,7 @@
* Child workflow entry show/hide
*/
_isGoSubProcess
()
{
return
this
.
nodeData
.
taskType
===
'
SUB_PROCESS
'
&&
this
.
name
return
this
.
nodeData
.
taskType
===
'
SUB_PROCESS
'
&&
this
.
name
&&
this
.
processListS
&&
this
.
processListS
.
length
>
0
},
taskInstance
()
{
if
(
this
.
taskInstances
.
length
>
0
)
{
...
...
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/sub_process.vue
浏览文件 @
e2d516f2
...
...
@@ -42,6 +42,7 @@
import
i18n
from
'
@/module/i18n
'
import
disabledState
from
'
@/module/mixin/disabledState
'
import
mListBox
from
'
./_source/listBox
'
import
{
mapActions
,
mapState
}
from
'
vuex
'
export
default
{
name
:
'
sub_process
'
,
...
...
@@ -57,7 +58,11 @@
props
:
{
backfillItem
:
Object
},
computed
:
{
...
mapState
(
'
dag
'
,
[
'
processListS
'
])
},
methods
:
{
...
mapActions
(
'
dag
'
,
[
'
getProcessList
'
]),
/**
* Node unified authentication parameters
*/
...
...
@@ -82,6 +87,15 @@
*/
_handleName
(
id
)
{
return
_
.
filter
(
this
.
processDefinitionList
,
v
=>
id
===
v
.
id
)[
0
].
name
},
/**
* Get all processDefinition list
*/
getAllProcessDefinitions
()
{
if
(
!
this
.
processListS
||
this
.
processListS
.
length
===
0
)
{
return
this
.
getProcessList
()
}
return
Promise
.
resolve
(
this
.
processListS
)
}
},
watch
:
{
...
...
@@ -92,32 +106,32 @@
}
},
created
()
{
let
processListS
=
_
.
cloneDeep
(
this
.
store
.
state
.
dag
.
processListS
)
let
code
=
null
if
(
this
.
router
.
history
.
current
.
name
===
'
projects-instance-details
'
)
{
code
=
this
.
router
.
history
.
current
.
query
.
code
||
null
}
else
{
code
=
this
.
router
.
history
.
current
.
params
.
code
||
null
}
this
.
processDefinitionList
=
processListS
.
map
(
v
=>
{
return
{
id
:
v
.
processDefinition
.
id
,
code
:
v
.
processDefinition
.
code
,
name
:
v
.
processDefinition
.
name
,
disabled
:
false
this
.
getAllProcessDefinitions
().
then
((
processListS
)
=>
{
this
.
processDefinitionList
=
processListS
.
map
(
def
=>
{
return
{
id
:
def
.
id
,
code
:
def
.
code
,
name
:
def
.
name
,
disabled
:
false
}
}).
filter
(
a
=>
(
a
.
code
+
''
)
!==
code
)
let
o
=
this
.
backfillItem
// Non-null objects represent backfill
if
(
!
_
.
isEmpty
(
o
))
{
this
.
wdiCurr
=
o
.
params
.
processDefinitionId
}
else
{
if
(
this
.
processDefinitionList
.
length
)
{
this
.
wdiCurr
=
this
.
processDefinitionList
[
0
].
id
this
.
$emit
(
'
on-set-process-name
'
,
this
.
_handleName
(
this
.
wdiCurr
))
}
}
}).
filter
(
a
=>
(
a
.
code
+
''
)
!==
code
)
let
o
=
this
.
backfillItem
// Non-null objects represent backfill
if
(
!
_
.
isEmpty
(
o
))
{
this
.
wdiCurr
=
o
.
params
.
processDefinitionId
}
else
{
if
(
this
.
processDefinitionList
.
length
)
{
this
.
wdiCurr
=
this
.
processDefinitionList
[
0
].
id
this
.
$emit
(
'
on-set-process-name
'
,
this
.
_handleName
(
this
.
wdiCurr
))
}
}
})
},
mounted
()
{
},
...
...
dolphinscheduler-ui/src/js/conf/home/pages/dag/definitionDetails.vue
浏览文件 @
e2d516f2
...
...
@@ -46,7 +46,7 @@
props
:
{},
methods
:
{
...
mapMutations
(
'
dag
'
,
[
'
resetParams
'
,
'
setIsDetails
'
]),
...
mapActions
(
'
dag
'
,
[
'
getPro
cessList
'
,
'
getPro
jectList
'
,
'
getResourcesList
'
,
'
getProcessDetails
'
,
'
getResourcesListJar
'
]),
...
mapActions
(
'
dag
'
,
[
'
getProjectList
'
,
'
getResourcesList
'
,
'
getProcessDetails
'
,
'
getResourcesListJar
'
]),
...
mapActions
(
'
security
'
,
[
'
getTenantList
'
,
'
getWorkerGroupsAll
'
,
'
getAlarmGroupsAll
'
]),
/**
* init
...
...
@@ -59,8 +59,6 @@
Promise
.
all
([
// Node details
this
.
getProcessDetails
(
this
.
$route
.
params
.
code
),
// get process definition
this
.
getProcessList
(),
// get project
this
.
getProjectList
(),
// get resource
...
...
dolphinscheduler-ui/src/js/conf/home/pages/dag/index.vue
浏览文件 @
e2d516f2
...
...
@@ -40,7 +40,7 @@
props
:
{},
methods
:
{
...
mapMutations
(
'
dag
'
,
[
'
resetParams
'
]),
...
mapActions
(
'
dag
'
,
[
'
getPro
cessList
'
,
'
getPro
jectList
'
,
'
getResourcesList
'
,
'
getResourcesListJar
'
,
'
getResourcesListJar
'
]),
...
mapActions
(
'
dag
'
,
[
'
getProjectList
'
,
'
getResourcesList
'
,
'
getResourcesListJar
'
,
'
getResourcesListJar
'
]),
...
mapActions
(
'
security
'
,
[
'
getTenantList
'
,
'
getWorkerGroupsAll
'
,
'
getAlarmGroupsAll
'
]),
/**
* init
...
...
@@ -51,8 +51,6 @@
this
.
resetParams
()
// Promise Get node needs data
Promise
.
all
([
// get process definition
this
.
getProcessList
(),
// get project
this
.
getProjectList
(),
// get jar
...
...
dolphinscheduler-ui/src/js/conf/home/pages/dag/instanceDetails.vue
浏览文件 @
e2d516f2
...
...
@@ -43,7 +43,7 @@
props
:
{},
methods
:
{
...
mapMutations
(
'
dag
'
,
[
'
setIsDetails
'
,
'
resetParams
'
]),
...
mapActions
(
'
dag
'
,
[
'
getPro
cessList
'
,
'
getPro
jectList
'
,
'
getResourcesList
'
,
'
getInstancedetail
'
,
'
getResourcesListJar
'
]),
...
mapActions
(
'
dag
'
,
[
'
getProjectList
'
,
'
getResourcesList
'
,
'
getInstancedetail
'
,
'
getResourcesListJar
'
]),
...
mapActions
(
'
security
'
,
[
'
getTenantList
'
,
'
getWorkerGroupsAll
'
,
'
getAlarmGroupsAll
'
]),
/**
* init
...
...
@@ -56,8 +56,6 @@
Promise
.
all
([
// Process instance details
this
.
getInstancedetail
(
this
.
$route
.
params
.
id
),
// get process definition
this
.
getProcessList
(),
// get project
this
.
getProjectList
(),
// get resources
...
...
dolphinscheduler-ui/src/js/conf/home/store/dag/actions.js
浏览文件 @
e2d516f2
...
...
@@ -352,7 +352,7 @@ export default {
resolve
()
return
}
io
.
get
(
`projects/
${
state
.
projectCode
}
/process-definition/list`
,
payload
,
res
=>
{
io
.
get
(
`projects/
${
state
.
projectCode
}
/process-definition/
simple-
list`
,
payload
,
res
=>
{
state
.
processListS
=
res
.
data
resolve
(
res
.
data
)
}).
catch
(
res
=>
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录