Commit d31e8c0e authored by 徐一鸣's avatar 徐一鸣

流程概览组件fixed

parent a5f24dd2
...@@ -12,13 +12,17 @@ ...@@ -12,13 +12,17 @@
> >
<template v-slot:node="{ meta }"> <template v-slot:node="{ meta }">
<div <div
v-if="meta.type === 1 || meta.type === 2" v-if="meta.type === 1"
class="flow-node" class="flow-node"
:class="`flow-node-${meta.type}`" :class="`flow-node-${meta.type}`"
> >
<span v-text="meta.name"></span> <span v-text="meta.name"></span>
</div> </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> <span v-text="meta.name"></span>
</div> </div>
<el-tooltip v-else effect="dark" placement="right-start"> <el-tooltip v-else effect="dark" placement="right-start">
...@@ -32,14 +36,14 @@ ...@@ -32,14 +36,14 @@
<div class="plug-in-list"> <div class="plug-in-list">
<span v-for="(plugin, index) in meta.plugins" :key="index"> <span v-for="(plugin, index) in meta.plugins" :key="index">
{{ {{
["-", "接口插件", "流程插件", "超时插件"][ ["-", "接口插件", "流程插件", "超时插件"][
plugin.plugin_type || 0 plugin.plugin_type || 0
] ]
}} }}
</span> </span>
</div> </div>
</div> </div>
<div class="flow-node"> <div class="flow-node" :class="`flow-node-${meta.type}`">
<span v-text="meta.name"></span> <span v-text="meta.name"></span>
<span class="example-count" v-text="meta.running_nodes || 0"></span> <span class="example-count" v-text="meta.running_nodes || 0"></span>
</div> </div>
...@@ -92,7 +96,7 @@ export default { ...@@ -92,7 +96,7 @@ export default {
let nodes = response[1].data.data; let nodes = response[1].data.data;
nodes.forEach((node) => { 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) { if (targetNode) {
targetNode.meta = { targetNode.meta = {
...@@ -105,7 +109,7 @@ export default { ...@@ -105,7 +109,7 @@ export default {
this.nodeList = nodeList; this.nodeList = nodeList;
this.linkList = linkList; this.linkList = linkList;
}) })
.catch(function (error) { .catch(function(error) {
console.log(error); console.log(error);
}); });
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment