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
3d36203a
Commit
3d36203a
authored
Aug 11, 2020
by
刘殿昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
流程图一点点功能,数据分析菜单
parent
2e38167d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
118 additions
and
59 deletions
+118
-59
src/components/work-flow/super-flow.vue
src/components/work-flow/super-flow.vue
+77
-40
src/pages/data-analysis/data-analysis.vue
src/pages/data-analysis/data-analysis.vue
+19
-19
src/pages/workbench/component-center/process-management/process-design/index.vue
...ponent-center/process-management/process-design/index.vue
+22
-0
No files found.
src/components/work-flow/super-flow.vue
View file @
3d36203a
<
template
>
<div>
<div
class=
"super-flow-demo1"
>
<div
class=
"scale_block"
>
<div
class=
"scale_control"
>
...
...
@@ -46,6 +45,16 @@
</
template
>
</super-flow>
</div>
<div
class=
"flow_options"
>
<p
class=
"options_head"
>
操作
</p>
<div
class=
"options_item"
>
<img
:src=
"require('@/assets/imgs/lcsj_ic_set.png')"
class=
"options_img"
/>
<p
class=
"options_text"
>
常规设置
</p>
</div>
<div
class=
"options_item"
>
<img
:src=
"require('@/assets/imgs/lcsj_ic_chajian.png')"
class=
"options_img"
/>
<p
class=
"options_text"
>
插件设置
</p>
</div>
</div>
</div>
</template>
...
...
@@ -285,6 +294,34 @@ export default {
height: 100%;
overflow: hidden;
}
.flow_options {
width: 84px;
height: 244px;
background-color: #f8f9fd;
border-radius: 42px;
position: absolute;
top: 10px;
right: 0;
text-align: center;
.options_head {
color: #242c43;
font-size: 14px;
font-weight: bold;
margin-top: 30px;
}
.options_item {
margin-top: 20px;
cursor: pointer;
color: #242c43;
&:hover {
color: #515fe7;
}
.options_img {
width: 40px;
height: 40px;
}
}
}
}
.node-item {
@node-item-height: 42px;
...
...
src/pages/data-analysis/data-analysis.vue
View file @
3d36203a
<
template
>
<div
class=
"fwgl_container"
>
<side-nav-bar
title=
"
数据分析
中心"
title=
"
运营管控
中心"
imgSrc=
"tool_fuwu"
:nav-list=
"navList"
:title-path=
"navList[0] && navList[0].path"
...
...
@@ -22,29 +22,29 @@ export default {
data
:
()
=>
({
userNav
:
[
{
name
:
"
我的服务数据
分析
"
,
name
:
"
服务
分析
"
,
path
:
`/data_analysis/my_service`
},
{
name
:
"
我的应用数据
分析
"
,
name
:
"
应用
分析
"
,
path
:
`/data_analysis/my_application`
},
{
name
:
"
组织服务数据分析
"
,
path
:
`/data_analysis/org_service`
},
{
name
:
"
组织应用数据分析
"
,
path
:
`/data_analysis/org_application`
},
{
name
:
"
运行概况-组织
"
,
path
:
`/data_analysis/operation_overview`
},
{
name
:
"
服务管控-组织
"
,
path
:
`/data_analysis/service_control`
}
//
{
//
name: "组织服务数据分析",
//
path: `/data_analysis/org_service`
//
},
//
{
//
name: "组织应用数据分析",
//
path: `/data_analysis/org_application`
//
},
//
{
//
name: "运行概况-组织",
//
path: `/data_analysis/operation_overview`
//
},
//
{
//
name: "服务管控-组织",
//
path: `/data_analysis/service_control`
//
}
],
navList
:
[]
}),
...
...
src/pages/workbench/component-center/process-management/process-design/index.vue
View file @
3d36203a
...
...
@@ -135,6 +135,8 @@ export default {
let
end_id
=
""
;
let
start_before
=
0
;
let
end_after
=
0
;
let
in_edge
=
0
;
let
out_edge
=
0
;
data
.
nodeList
.
forEach
((
item
)
=>
{
if
(
item
.
meta
.
type
==
0
)
{
start_num
++
;
...
...
@@ -144,6 +146,21 @@ export default {
end_num
++
;
end_id
=
item
.
id
;
}
if
(
data
.
linkList
.
findIndex
((
el
)
=>
{
return
el
.
startId
==
item
.
id
;
})
==
-
1
&&
item
.
id
!=
end_id
)
{
in_edge
++
;
}
else
if
(
data
.
linkList
.
findIndex
((
el
)
=>
{
return
el
.
endId
==
item
.
id
;
})
==
-
1
&&
item
.
id
!=
start_id
)
{
out_edge
++
;
}
});
data
.
linkList
.
forEach
((
item
)
=>
{
if
(
start_id
==
item
.
endId
)
{
...
...
@@ -168,6 +185,11 @@ export default {
message
:
"
结束节点后面不应连接其它节点
"
,
type
:
"
warning
"
,
});
}
else
if
(
in_edge
!=
0
||
out_edge
!=
0
)
{
this
.
$message
({
message
:
"
请保证每个节点都被连接
"
,
type
:
"
warning
"
,
});
}
},
backToList
()
{
...
...
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