Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
fac63235
Commit
fac63235
authored
Aug 12, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
流程管理调试
parent
15a49db9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
11 deletions
+28
-11
src/components/work-flow/workflows-view.vue
src/components/work-flow/workflows-view.vue
+2
-2
src/pages/workbench/component-center/process-management/designer/index.vue
...ch/component-center/process-management/designer/index.vue
+26
-9
No files found.
src/components/work-flow/workflows-view.vue
View file @
fac63235
...
...
@@ -24,8 +24,8 @@
<el-tooltip
v-else
effect=
"dark"
placement=
"right-start"
>
<div
class=
"node-detail"
slot=
"content"
>
<p>
当前实例数:
{{
meta
.
running_nodes
||
0
}}
</p>
<p>
当前超时比率:
{{
(
meta
.
cur_timeout_rate
||
0
)
/
100
}}
%
</p>
<p>
总超时比率:
{{
(
meta
.
total_timeout_rate
||
0
)
/
100
}}
%
</p>
<p>
当前超时比率:
{{
(
meta
.
cur_timeout_rate
||
0
)
*
100
}}
%
</p>
<p>
总超时比率:
{{
(
meta
.
total_timeout_rate
||
0
)
*
100
}}
%
</p>
<p>
节点平均耗时:
{{
meta
.
avg_elapsed_time
||
0
}}
分钟
</p>
<p>
节点最大耗时:
{{
meta
.
max_elapsed_time
||
0
}}
分钟
</p>
<p>
节点插件:
</p>
...
...
src/pages/workbench/component-center/process-management/designer/index.vue
View file @
fac63235
...
...
@@ -280,9 +280,9 @@ export default {
},
];
},
refresh
()
{
refresh
Page
()
{
this
.
init
(
this
.
tempFilter
);
},
// 刷新当前页列表
},
showDialog
()
{
this
.
$refs
.
dialog
.
show
();
},
...
...
@@ -295,13 +295,13 @@ export default {
},
addNewProcess
()
{
this
.
$router
.
push
(
"
/progress/designer/design
"
);
},
// FIXME: 新建流程
},
editItem
(
item
)
{
this
.
$router
.
push
(
"
/progress/designer/design
"
);
},
// FIXME: 编辑流程
this
.
$router
.
push
(
`/progress/designer/design_edit/
${
item
.
workflows_id
}
`
);
},
detailItem
(
item
)
{
this
.
$router
.
push
(
`/progress/designer/detail/
${
item
.
workflows_id
}
`
);
},
// TODO: 查看详情
},
publishItem
(
item
)
{
this
.
dialogInfo
.
title
=
"
提示
"
;
this
.
dialogInfo
.
msg
=
`发布后流程后,流程将部署到工作区域并上架到服务超市,是否发布该流程?`
;
...
...
@@ -348,7 +348,7 @@ export default {
newName
:
""
,
};
this
.
copyProcessShow
();
},
//
TODO:
复制流程
},
// 复制流程
cancelCopyProcess
()
{
this
.
copyProcessHide
();
},
// 复制流程-取消
...
...
@@ -368,10 +368,27 @@ export default {
this
.
dialogInfo
.
cancelText
=
"
取消
"
;
this
.
dialogInfo
.
sunbmitText
=
"
确定
"
;
this
.
dialogInfo
.
submit
=
()
=>
{
console
.
log
(
`删除
${
item
.
name
}
`
);
this
.
$http
.
delete
(
"
/apaas/serviceapp/v3/workflows/del
"
,
{
params
:
{
id
:
item
.
workflows_id
,
},
})
.
then
(({
data
})
=>
{
if
(
data
.
success
===
1
)
{
this
.
$message
.
success
(
data
.
errMsg
||
"
删除成功
"
);
this
.
refreshPage
();
}
else
{
this
.
$message
.
error
(
data
.
errMsg
||
"
删除失败
"
);
}
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
this
.
$message
.
error
(
"
删除失败
"
);
});
};
this
.
showDialog
();
},
// TODO: 删除流程
},
},
created
()
{
this
.
initFilter
();
...
...
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