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
d31e8c0e
Commit
d31e8c0e
authored
Aug 19, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
流程概览组件fixed
parent
a5f24dd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
src/components/work-flow/workflows-view.vue
src/components/work-flow/workflows-view.vue
+12
-8
No files found.
src/components/work-flow/workflows-view.vue
View file @
d31e8c0e
...
...
@@ -12,13 +12,17 @@
>
<template
v-slot:node=
"
{ meta }">
<div
v-if=
"meta.type === 1
|| meta.type === 2
"
v-if=
"meta.type === 1"
class=
"flow-node"
:class=
"`flow-node-$
{meta.type}`"
>
<span
v-text=
"meta.name"
></span>
</div>
<div
v-else-if=
"hideDetail"
class=
"flow-node"
>
<div
v-else-if=
"hideDetail"
class=
"flow-node"
:class=
"`flow-node-$
{meta.type}`"
>
<span
v-text=
"meta.name"
></span>
</div>
<el-tooltip
v-else
effect=
"dark"
placement=
"right-start"
>
...
...
@@ -32,14 +36,14 @@
<div
class=
"plug-in-list"
>
<span
v-for=
"(plugin, index) in meta.plugins"
:key=
"index"
>
{{
[
"
-
"
,
"
接口插件
"
,
"
流程插件
"
,
"
超时插件
"
][
plugin
.
plugin_type
||
0
]
[
"
-
"
,
"
接口插件
"
,
"
流程插件
"
,
"
超时插件
"
][
plugin
.
plugin_type
||
0
]
}}
</span>
</div>
</div>
<div
class=
"flow-node"
>
<div
class=
"flow-node"
:class=
"`flow-node-$
{meta.type}`"
>
<span
v-text=
"meta.name"
></span>
<span
class=
"example-count"
v-text=
"meta.running_nodes || 0"
></span>
</div>
...
...
@@ -92,7 +96,7 @@ export default {
let
nodes
=
response
[
1
].
data
.
data
;
nodes
.
forEach
((
node
)
=>
{
let
targetNode
=
nodeList
.
find
((
v
)
=>
v
.
node_id
===
node
.
id
);
let
targetNode
=
nodeList
.
find
((
v
)
=>
v
.
id
===
node
.
node_
id
);
if
(
targetNode
)
{
targetNode
.
meta
=
{
...
...
@@ -105,7 +109,7 @@ export default {
this
.
nodeList
=
nodeList
;
this
.
linkList
=
linkList
;
})
.
catch
(
function
(
error
)
{
.
catch
(
function
(
error
)
{
console
.
log
(
error
);
});
},
...
...
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