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
9a8367b5
Commit
9a8367b5
authored
Aug 13, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of cloud.wodcloud.com:apaas/apaas-v3-ui into dev
parents
1f7efcaa
503745ce
Changes
17
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
1283 additions
and
178 deletions
+1283
-178
src/assets/i18n/language-zh.js
src/assets/i18n/language-zh.js
+4
-1
src/components/general/side-nav-bar-class.vue
src/components/general/side-nav-bar-class.vue
+108
-0
src/components/service-header.vue
src/components/service-header.vue
+12
-1
src/components/service-list/service_list.vue
src/components/service-list/service_list.vue
+0
-1
src/components/work-flow/super-flow.vue
src/components/work-flow/super-flow.vue
+308
-92
src/pages/data-analysis/data-analysis.vue
src/pages/data-analysis/data-analysis.vue
+47
-17
src/pages/data-analysis/super-application.vue
src/pages/data-analysis/super-application.vue
+54
-0
src/pages/data-analysis/super-service.vue
src/pages/data-analysis/super-service.vue
+62
-0
src/pages/service_shop/shop_list.vue
src/pages/service_shop/shop_list.vue
+58
-8
src/pages/technical-support/index.vue
src/pages/technical-support/index.vue
+50
-4
src/pages/workbench/component-center/process-management/designer/detail.vue
...h/component-center/process-management/designer/detail.vue
+100
-6
src/pages/workbench/component-center/process-management/monitoring/index.vue
.../component-center/process-management/monitoring/index.vue
+18
-18
src/pages/workbench/component-center/process-management/process-design/edit.vue
...mponent-center/process-management/process-design/edit.vue
+336
-0
src/pages/workbench/component-center/process-management/process-design/index.vue
...ponent-center/process-management/process-design/index.vue
+93
-29
src/pages/workbench/yygl/approval_app_detail.vue
src/pages/workbench/yygl/approval_app_detail.vue
+1
-1
src/request/api/workbench.js
src/request/api/workbench.js
+17
-0
src/router/index.js
src/router/index.js
+15
-0
No files found.
src/assets/i18n/language-zh.js
View file @
9a8367b5
...
...
@@ -38,5 +38,8 @@ export const lang = {
online_component_tool
:
"
在线组件中心
"
,
process_design
:
"
流程设计
"
,
process_management
:
"
流程管理
"
,
new
:
"
新建
"
new
:
"
新建
"
,
// technical-support
technical_support
:
"
技术支持
"
}
\ No newline at end of file
src/components/general/side-nav-bar-class.vue
0 → 100644
View file @
9a8367b5
<
template
>
<div
class=
"side_nav_bar"
>
<h3
class=
"side_nav_bar_title"
@
click=
"titleAction"
>
<img
:src=
"titleIcon"
width=
"20"
style=
"margin-right: 10px;"
/>
<span
v-text=
"title"
></span>
</h3>
<div
v-for=
"(nav, index) in navList"
:key=
"'nav' + index"
>
<div
class=
"side_nav_bar_first_title"
>
{{
nav
.
name
}}
</div>
<ul
class=
"side_nav_bar_list"
>
<router-link
tag=
"li"
v-for=
"(item, indexs) in nav.child"
:class=
"
{ current: $route.path.indexOf(item.path) > -1 }"
:key="index + 'a' + indexs"
:to="item.path"
>
<span
v-text=
"item.name"
></span>
</router-link>
</ul>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
"
sideNavBar
"
,
props
:
{
title
:
{
type
:
String
,
default
:
()
=>
"
我的服务
"
,
},
titleIcon
:
{
type
:
String
,
default
:
()
=>
require
(
"
@/assets/imgs/tool_fuwu.png
"
),
},
titlePath
:
{
type
:
String
,
default
:
()
=>
""
,
},
navList
:
{
type
:
Array
,
default
:
()
=>
[],
},
imgSrc
:
{
type
:
String
,
default
:
"
tool_fuwu
"
,
},
},
methods
:
{
titleAction
()
{
if
(
this
.
titlePath
)
{
this
.
$router
.
push
(
this
.
titlePath
);
}
},
},
};
</
script
>
<
style
scoped
>
.side_nav_bar
{
background-color
:
#0d1847
;
}
.side_nav_bar_title
{
height
:
40px
;
background-color
:
#182665
;
border-radius
:
10px
;
overflow
:
hidden
;
margin
:
20px
15px
20px
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
cursor
:
pointer
;
}
.side_nav_bar_title
>
span
{
font-size
:
16px
;
color
:
#c3caf8
;
}
.side_nav_bar_first_title
{
color
:
#c3caf8
;
font-size
:
14px
;
padding
:
10px
0
10px
34px
;
position
:
relative
;
}
.side_nav_bar_first_title
::before
{
content
:
""
;
position
:
absolute
;
left
:
22px
;
top
:
12px
;
width
:
4px
;
height
:
16px
;
background-color
:
#515fe7
;
border-radius
:
2px
;
}
.side_nav_bar_list
>
li
{
padding
:
12px
10px
12px
42px
;
border-left
:
5px
solid
#0d1847
;
font-size
:
14px
;
line-height
:
24px
;
color
:
#e6ebfe
;
cursor
:
pointer
;
}
.side_nav_bar_list
>
li
:hover
,
.side_nav_bar_list
>
li
.current
{
border-left
:
5px
solid
#e56600
;
background-color
:
#182665
;
color
:
#e6ebfe
;
}
</
style
>
src/components/service-header.vue
View file @
9a8367b5
...
...
@@ -72,7 +72,7 @@
>
我要修改
</span>
<span
class=
"right undersell"
v-if=
"data.deploy"
@
click=
"subevent(10)"
>
<span
class=
"right undersell
undersell2
"
v-if=
"data.deploy"
@
click=
"subevent(10)"
>
部署
</span>
<span
class=
"right undersell1"
v-if=
"data.undeploy"
@
click=
"subevent(9)"
>
...
...
@@ -168,6 +168,14 @@ export default {
this
.
$emit
(
"
debuggerfunc
"
);
}
else
if
(
val
==
6
)
{
this
.
$emit
(
"
applymy
"
);
}
else
if
(
val
==
7
)
{
this
.
$emit
(
"
unpublic
"
,
this
.
data
);
}
else
if
(
val
==
8
)
{
this
.
$emit
(
"
public1
"
,
this
.
data
);
}
else
if
(
val
==
9
)
{
this
.
$emit
(
"
undeploy
"
,
this
.
data
);
}
else
if
(
val
==
10
)
{
this
.
$emit
(
"
deploy
"
,
this
.
data
);
}
},
goto_page
(
url
)
{
...
...
@@ -276,6 +284,9 @@ export default {
background-color
:
#e6ebfe
;
margin-left
:
10px
;
}
.undersell2
{
margin-left
:
10px
;
}
.undermy
{
background-color
:
#515fe7
;
color
:
#e6ebfe
;
...
...
src/components/service-list/service_list.vue
View file @
9a8367b5
...
...
@@ -329,7 +329,6 @@ export default {
for
(
let
i
=
0
;
i
<
val
.
length
;
i
++
)
{
this
.
filterLists
[
i
+
1
].
name
=
val
[
i
];
}
console
.
log
(
this
.
filterLists
);
},
},
},
...
...
src/components/work-flow/super-flow.vue
View file @
9a8367b5
This diff is collapsed.
Click to expand it.
src/pages/data-analysis/data-analysis.vue
View file @
9a8367b5
<
template
>
<div
class=
"fwgl_container"
>
<side-nav-bar
<sideNavBar
v-if=
"is_admin == 3 || is_admin == 4 || is_admin == 1"
title=
"运营管控中心"
imgSrc=
"tool_fuwu"
:nav-list=
"navList"
:title-path=
"navList[0] && navList[0].path"
></side-nav-bar>
></sideNavBar>
<sideNavBarClass
v-else-if=
"is_admin == 2"
title=
"运营管控中心"
imgSrc=
"tool_fuwu"
:nav-list=
"navList"
:title-path=
"navList[0] && navList[0].path"
></sideNavBarClass>
<div
class=
"main_container"
>
<router-view
:key=
"'type_' + $route.params.type"
></router-view>
</div>
...
...
@@ -14,10 +22,11 @@
<
script
>
import
sideNavBar
from
"
@/components/side-nav-bar
"
;
import
sideNavBarClass
from
"
@/components/general/side-nav-bar-class
"
;
export
default
{
components
:
{
sideNavBar
,
sideNavBarClass
,
},
data
:
()
=>
({
userNav
:
[
...
...
@@ -32,24 +41,46 @@ export default {
],
userNav1
:
[
{
name
:
"
组织服务数据
分析
"
,
name
:
"
运营
分析
"
,
path
:
`/data_analysis/org_service`
,
child
:
[
{
name
:
"
服务分析
"
,
path
:
`/data_analysis/org_service`
,
},
{
name
:
"
应用分析
"
,
path
:
`/data_analysis/org_application`
,
},
],
},
{
name
:
"
组织应用数据分析
"
,
path
:
`/data_analysis/org_application`
,
name
:
"
运行管控
"
,
path
:
`/data_analysis/operation_overview`
,
child
:
[
{
name
:
"
运行概况
"
,
path
:
`/data_analysis/operation_overview`
,
},
{
name
:
"
服务管控
"
,
path
:
`/data_analysis/service_control`
,
},
],
},
],
userNav2
:
[
{
name
:
"
运行概况-组织
"
,
path
:
`/data_analysis/
operation_overview
`
,
name
:
"
服务分析
"
,
path
:
`/data_analysis/
super_service
`
,
},
{
name
:
"
服务管控-组织
"
,
path
:
`/data_analysis/s
ervice_control
`
,
name
:
"
应用分析
"
,
path
:
`/data_analysis/s
uper_application
`
,
},
],
userNav2
:
[],
navList
:
[],
is_admin
:
0
,
}),
watch
:
{
// "$route.fullPath"(path) {
...
...
@@ -58,16 +89,15 @@ export default {
},
methods
:
{
initNavList
()
{
if
(
this
.
$store
.
state
.
userInfo
.
is_admin
==
3
||
this
.
$store
.
state
.
userInfo
.
is_admin
==
4
)
{
this
.
is_admin
=
this
.
$store
.
state
.
userInfo
.
is_admin
;
if
(
this
.
is_admin
==
3
||
this
.
is_admin
==
4
)
{
this
.
navList
=
this
.
userNav
;
}
else
if
(
this
.
$store
.
state
.
userInfo
.
is_admin
==
2
)
{
}
else
if
(
this
.
is_admin
==
2
)
{
this
.
navList
=
this
.
userNav1
;
this
.
$router
.
push
({
name
:
"
orgServiceDataAnalysis
"
});
}
else
if
(
this
.
$store
.
state
.
userInfo
.
is_admin
==
1
)
{
}
else
if
(
this
.
is_admin
==
1
)
{
this
.
navList
=
this
.
userNav2
;
this
.
$router
.
push
({
name
:
"
superServiceDataAnalysis
"
});
}
},
},
...
...
src/pages/data-analysis/super-application.vue
0 → 100644
View file @
9a8367b5
<
template
>
<div>
<el-breadcrumb
separator=
"/"
class=
"bread_crumb1"
>
<el-breadcrumb-item
:to=
"
{ path: '/data_analysis' }">
{{
$t
(
"
lang.data_analysis
"
)
}}
</el-breadcrumb-item>
<el-breadcrumb-item>
{{
$t
(
"
lang.my_application_data_analysis
"
)
}}
</el-breadcrumb-item>
</el-breadcrumb>
<BlockRadius
class=
"default"
>
<div
class=
"default_img"
>
<h1
class=
"default_title"
>
开发中,敬请期待!
</h1>
<h3
class=
"default_msg"
>
如需技术支持
<br
/>
请联系管理员
</h3>
</div>
</BlockRadius>
</div>
</
template
>
<
script
>
import
BlockRadius
from
"
@/components/general/block-radius
"
;
export
default
{
methods
:
{
getData
()
{},
},
components
:
{
BlockRadius
,
},
};
</
script
>
<
style
lang=
"less"
scoped
>
.default {
height: calc(100vh - 160px);
display: flex;
align-items: center;
justify-content: center;
margin: 0 20px;
.default_img {
width: 1282px;
height: 629px;
background-image: url("~@/assets/imgs/img_default_jszc.png");
.default_title {
color: #264dd9;
font-size: 44px;
font-weight: bold;
margin-bottom: 40px;
}
.default_msg {
color: #58617a;
font-size: 24px;
line-height: 44px;
}
}
}
</
style
>
\ No newline at end of file
src/pages/data-analysis/super-service.vue
0 → 100644
View file @
9a8367b5
<
template
>
<div>
<el-breadcrumb
separator=
"/"
class=
"bread_crumb1"
>
<el-breadcrumb-item
:to=
"
{ path: '/data_analysis' }">
{{
$t
(
"
lang.data_analysis
"
)
}}
</el-breadcrumb-item>
<el-breadcrumb-item>
{{
$t
(
"
lang.my_service_data_analysis
"
)
}}
</el-breadcrumb-item>
</el-breadcrumb>
<BlockRadius
class=
"default"
>
<div
class=
"default_img"
>
<h1
class=
"default_title"
>
开发中,敬请期待!
</h1>
<h3
class=
"default_msg"
>
如需技术支持
<br
/>
请联系管理员
</h3>
</div>
</BlockRadius>
</div>
</
template
>
<
script
>
import
BlockRadius
from
"
@/components/general/block-radius
"
;
export
default
{
methods
:
{
getData
()
{},
},
components
:
{
BlockRadius
,
},
};
</
script
>
<
style
lang=
"less"
scoped
>
.default {
height: calc(100vh - 160px);
display: flex;
align-items: center;
justify-content: center;
margin: 0 20px;
.default_img {
width: 1282px;
height: 629px;
background-image: url("~@/assets/imgs/img_default_jszc.png");
.default_title {
color: #264dd9;
font-size: 44px;
font-weight: bold;
margin-bottom: 40px;
}
.default_msg {
color: #58617a;
font-size: 24px;
line-height: 44px;
}
}
}
</
style
>
\ No newline at end of file
src/pages/service_shop/shop_list.vue
View file @
9a8367b5
...
...
@@ -5,7 +5,32 @@
<service-shop-menu></service-shop-menu>
</el-aside>
<el-main>
<service-list
:filterNames=
"filterNames"
:name=
"name"
:url=
"url"
:urlFilter=
"urlFilter"
></service-list>
<service-list
v-show=
"urlFilter != '7' && urlFilter != '10'"
:filterNames=
"filterNames"
:name=
"name"
:url=
"url"
:urlFilter=
"urlFilter"
></service-list>
<div
v-show=
"urlFilter == '7' || urlFilter == '10'"
>
<el-breadcrumb
separator=
"/"
class=
"bread_crumb1 bread_left"
>
<el-breadcrumb-item
:to=
"
{ path: '/shop' }">
{{
$t
(
"
lang.service_shop
"
)
}}
</el-breadcrumb-item>
<el-breadcrumb-item>
{{
name
}}
</el-breadcrumb-item>
</el-breadcrumb>
<BlockRadius
class=
"default"
>
<div
class=
"default_img"
>
<h1
class=
"default_title"
>
开发中,敬请期待!
</h1>
<h3
class=
"default_msg"
>
如需技术支持
<br
/>
请联系管理员
</h3>
</div>
</BlockRadius>
</div>
</el-main>
</el-container>
</div>
...
...
@@ -14,16 +39,18 @@
<
script
>
import
ServiceShopMenu
from
"
@/components/service-list/service_shop_menu
"
;
import
ServiceList
from
"
@/components/service-list/service_list
"
;
import
BlockRadius
from
"
@/components/general/block-radius
"
;
export
default
{
components
:
{
ServiceShopMenu
,
ServiceList
ServiceList
,
BlockRadius
,
},
data
:
()
=>
({
urlFilter
:
""
,
url
:
""
,
name
:
""
,
filterNames
:
[]
filterNames
:
[]
,
}),
mounted
()
{
this
.
getVal
(
this
.
$route
.
path
);
...
...
@@ -76,16 +103,39 @@ export default {
this
.
filterNames
=
[];
break
;
}
}
}
,
},
watch
:
{
"
$route.path
"
:
{
handler
(
val
)
{
this
.
getVal
(
val
);
}
}
}
}
,
}
,
}
,
};
</
script
>
<
style
scoped
>
<
style
lang=
"less"
scoped
>
.default {
height: calc(100vh - 180px);
display: flex;
align-items: center;
justify-content: center;
margin: 0;
.default_img {
width: 1282px;
height: 629px;
background-image: url("~@/assets/imgs/img_default_jszc.png");
.default_title {
color: #264dd9;
font-size: 44px;
font-weight: bold;
margin-bottom: 40px;
}
.default_msg {
color: #58617a;
font-size: 24px;
line-height: 44px;
}
}
}
</
style
>
\ No newline at end of file
src/pages/technical-support/index.vue
View file @
9a8367b5
<
template
>
<div
class=
"contain"
></div>
<div
class=
"contain"
>
<div
class=
"technical_head"
>
{{
$t
(
"
lang.technical_support
"
)
}}
</div>
<BlockRadius
class=
"default"
>
<div
class=
"default_img"
>
<h1
class=
"default_title"
>
开发中,敬请期待!
</h1>
<h3
class=
"default_msg"
>
如需技术支持
<br
/>
请联系管理员
</h3>
</div>
</BlockRadius>
</div>
</
template
>
<
script
>
import
BlockRadius
from
"
@/components/general/block-radius
"
;
export
default
{
data
()
{
return
{};
},
components
:
{},
components
:
{
BlockRadius
,
},
computed
:
{},
created
()
{},
mounted
()
{},
...
...
@@ -15,6 +29,38 @@ export default {
};
</
script
>
<
style
>
<
style
lang=
"less"
scoped
>
.contain {
width: calc(100% - 80px);
margin: 0 auto;
margin-top: -157px;
margin-bottom: 20px;
.technical_head {
color: #626de9;
font-size: 14px;
padding: 20px;
}
.default {
height: calc(100vh - 180px);
display: flex;
align-items: center;
justify-content: center;
.default_img {
width: 1282px;
height: 629px;
background-image: url("~@/assets/imgs/img_default_jszc.png");
.default_title {
color: #264dd9;
font-size: 44px;
font-weight: bold;
margin-bottom: 40px;
}
.default_msg {
color: #58617a;
font-size: 24px;
line-height: 44px;
}
}
}
}
</
style
>
src/pages/workbench/component-center/process-management/designer/detail.vue
View file @
9a8367b5
...
...
@@ -2,7 +2,7 @@
<div
class=
"detail_contain"
>
<p
class=
"now_page_title"
>
在线组件工具 / 流程设计 / 流程管理 /
<span>
详情
</span></p>
<div
class=
"info_contain"
>
<service-header
:data=
"service_header_arr"
></service-header>
<service-header
:data=
"service_header_arr"
@
unpublic=
"unpublic"
@
public1=
"public1"
@
undeploy=
"undeploy"
@
deploy=
"deploy"
></service-header>
<div
class=
"type_box"
>
<div
class=
"type_title"
>
<div
v-for=
"(item,index) in service_arr"
:key=
"index+1000"
class=
"type_select"
@
click=
"now_service=index"
:style=
"now_service==index?
{borderBottom: '4px solid #f5ab4c',color: '#e56600'}:{}">
{{
item
}}
</div>
...
...
@@ -82,6 +82,15 @@
</div>
</div>
</div>
<apass-dialog
ref=
"dialog"
:title=
"dialogInfo.title"
:msg=
"dialogInfo.msg"
:cancel-text=
"dialogInfo.cancelText"
:submit=
"dialogInfo.submit"
:sunbmit-text=
"dialogInfo.sunbmitText"
></apass-dialog>
</div>
</
template
>
...
...
@@ -95,6 +104,7 @@ import lineChart from "@/components/e-charts/line_chart";
import
Toplist
from
"
@/components/e-charts/process-top-list
"
;
import
BarChart
from
"
@/components/e-charts/bar-chart
"
;
import
workflowsView
from
"
@/components/work-flow/workflows-view
"
;
import
apassDialog
from
"
@/components/apass-dialog
"
;
export
default
{
components
:
{
serviceHeader
,
...
...
@@ -104,7 +114,8 @@ export default {
lineChart
,
Toplist
,
BarChart
,
workflowsView
workflowsView
,
apassDialog
},
data
(){
return
{
...
...
@@ -128,6 +139,13 @@ export default {
"
timeout_rate
"
:
0
,
//流程超时率
"
avg_time
"
:
0
// 流程平均耗时
},
dialogInfo
:
{
title
:
""
,
msg
:
""
,
cancelText
:
""
,
submit
:
null
,
sunbmitText
:
""
,
},
toplistData
:[],
toplistTargetValue
:
0
,
bar_data_org
:
{
...
...
@@ -377,7 +395,7 @@ export default {
})
this
.
service_arr
=
[
'
流程基本信息
'
]
this
.
service_header_arr
.
fixed_process
=
true
this
.
service_header_arr
.
public
=
fals
e
this
.
service_header_arr
.
public
=
tru
e
this
.
service_header_arr
.
unpublic
=
false
this
.
service_header_arr
.
undeploy
=
false
this
.
service_header_arr
.
deploy
=
true
...
...
@@ -388,7 +406,7 @@ export default {
this
.
$set
(
this
.
service_header_arr
,
'
second
'
,[])
this
.
service_header_arr
.
first
.
push
({
name
:
'
工作区域
'
,
text
:
data
.
workarea
text
:
data
.
workarea
_name
})
this
.
service_header_arr
.
first
.
push
({
name
:
'
流程状态
'
,
...
...
@@ -415,7 +433,7 @@ export default {
this
.
$set
(
this
.
service_header_arr
,
'
second
'
,[])
this
.
service_header_arr
.
first
.
push
({
name
:
'
工作区域
'
,
text
:
data
.
workarea
text
:
data
.
workarea
_name
})
this
.
service_header_arr
.
first
.
push
({
name
:
'
流程状态
'
,
...
...
@@ -442,7 +460,83 @@ export default {
this
.
$set
(
this
.
list_arr
[
0
],
'
info
'
,
data
.
describe
)
this
.
$set
(
this
.
list_arr
[
1
],
'
info
'
,
data
.
org_name
)
this
.
$set
(
this
.
list_arr
[
2
],
'
info
'
,
data
.
create_time
.
split
(
'
+
'
)[
0
].
replace
(
'
T
'
,
'
'
))
}
},
unpublic
(
item
){
this
.
dialogInfo
.
title
=
"
提示
"
;
this
.
dialogInfo
.
msg
=
`取消发布后,该流程服务将从服务超市下架,仅部署在工作区域
${
item
.
first
[
0
].
text
}
中,是否取消发布流程服务“
${
item
.
name
}
”?`
;
this
.
dialogInfo
.
cancelText
=
"
暂不
"
;
this
.
dialogInfo
.
sunbmitText
=
"
取消发布
"
;
this
.
dialogInfo
.
submit
=
()
=>
{
console
.
log
(
`取消发布`
);
this
.
$http
.
delete
(
'
/apaas/serviceapp/v3/workflows/cancelPublish?id=
'
+
this
.
$route
.
params
.
id
)
.
then
(
response
=>
{
if
(
response
.
data
.
success
){
this
.
$message
.
success
(
'
取消发布成功
'
)
this
.
get_process_detail
()
this
.
get_table_service
()
}
})
};
this
.
showDialog
();
},
public1
(
item
){
this
.
dialogInfo
.
title
=
"
提示
"
;
this
.
dialogInfo
.
msg
=
`发布后流程后,流程将部署到工作区域并上架到服务超市,是否发布该流程?`
;
this
.
dialogInfo
.
cancelText
=
"
取消
"
;
this
.
dialogInfo
.
sunbmitText
=
"
发布
"
;
this
.
dialogInfo
.
submit
=
()
=>
{
this
.
$router
.
push
(
'
/fwzc/fwcs?process=
'
+
this
.
$route
.
params
.
id
)
};
this
.
showDialog
();
},
undeploy
(
item
){
this
.
dialogInfo
.
title
=
"
提示
"
;
this
.
dialogInfo
.
msg
=
`取消部署后,该流程服务不能通过链接访问,是否取消部署流程服务“
${
item
.
name
}
”?`
;
this
.
dialogInfo
.
cancelText
=
"
取消
"
;
this
.
dialogInfo
.
sunbmitText
=
"
取消部署
"
;
this
.
dialogInfo
.
submit
=
()
=>
{
console
.
log
(
`取消部署
${
item
.
name
}
`
);
this
.
$http
.
delete
(
'
/apaas/serviceapp/v3/workflows/cancelDeploy?id=
'
+
this
.
$route
.
params
.
id
)
.
then
(
response
=>
{
if
(
response
.
data
.
success
){
this
.
$message
.
success
(
'
取消部署成功
'
)
this
.
get_process_detail
()
this
.
get_table_service
()
}
})
};
this
.
showDialog
();
},
deploy
(
item
){
this
.
dialogInfo
.
title
=
"
提示
"
;
this
.
dialogInfo
.
msg
=
`部署流程后,流程将部署到工作区域,但不会上架到服务超市,是否部署该流程?`
;
this
.
dialogInfo
.
cancelText
=
"
取消
"
;
this
.
dialogInfo
.
sunbmitText
=
"
部署
"
;
this
.
dialogInfo
.
submit
=
()
=>
{
console
.
log
(
`部署`
);
let
form
=
new
FormData
()
form
.
append
(
'
id
'
,
this
.
$route
.
params
.
id
)
this
.
$http
.
post
(
'
/apaas/serviceapp/v3/workflows/deploy
'
,
form
)
.
then
(
response
=>
{
if
(
response
.
data
.
success
){
this
.
$message
.
success
(
'
部署成功
'
)
this
.
get_process_detail
()
this
.
get_table_service
()
}
})
};
this
.
showDialog
();
},
showDialog
()
{
this
.
$refs
.
dialog
.
show
();
},
}
}
...
...
src/pages/workbench/component-center/process-management/monitoring/index.vue
View file @
9a8367b5
...
...
@@ -190,7 +190,7 @@ export default {
data_service_type1
:
124
},
],
toplistTargetValue
:
10
0
,
toplistTargetValue
:
7
0
,
tableheaders
:[
{
label
:
"
排名
"
,
...
...
@@ -225,46 +225,46 @@ export default {
index
:
1
,
id
:
1
,
name
:
'
保安许可资格申请
'
,
time
:
18
0
,
val
:
'
4
0%
'
time
:
18
,
val
:
'
1
0%
'
},
{
index
:
1
,
name
:
'
保安考试流程
'
,
id
:
3
,
time
:
1
8
0
,
val
:
'
40
%
'
time
:
10
,
val
:
'
15
%
'
},
{
index
:
1
,
name
:
'
外国人永久居留资格申请
'
,
id
:
4
,
time
:
18
0
,
val
:
'
4
0%
'
time
:
2
0
,
val
:
'
3
0%
'
},
{
index
:
1
,
name
:
'
大型焰火燃放资格申请
'
,
id
:
5
,
time
:
180
,
val
:
'
4
0%
'
time
:
35
,
val
:
'
2
0%
'
},
{
index
:
1
,
id
:
6
,
name
:
'
保安培训机构许可证申请流程
'
,
time
:
18
0
,
val
:
'
4
0%
'
time
:
4
0
,
val
:
'
1
0%
'
},
],
bar_data_area
:{
legendData
:
[
'
保安资格
'
,
'
保安资格
'
,
'
保安资格
'
,
'
保安资格
'
],
legendData
:
[
'
保安资格
'
,
'
大型焰火燃放资格
'
,
'
外国人永久居留资格
'
,
'
保安培训机构许可证
'
],
seriesData
:
[
55
,
44
,
33
,
22
]
},
bar_data_org
:{
legendData
:
[
'
保安资格
'
,
'
保安资格
'
,
'
保安资格
'
,
'
保安资格
'
],
legendData
:
[
'
保安资格
'
,
'
大型焰火燃放资格
'
,
'
外国人永久居留资格
'
,
'
保安培训机构许可证
'
],
seriesData
:
[
55
,
44
,
33
,
22
]
...
...
@@ -277,23 +277,23 @@ export default {
},
{
name
:
'
1小时内
'
,
value
:
1
0
,
value
:
1
5
,
},
{
name
:
'
1天内
'
,
value
:
1
0
,
value
:
2
0
,
},
{
name
:
'
7天内
'
,
value
:
10
,
value
:
8
,
},
{
name
:
'
30天内
'
,
value
:
10
,
value
:
2
,
},
{
name
:
'
30天以上
'
,
value
:
1
0
,
value
:
1
,
},
]
}
...
...
src/pages/workbench/component-center/process-management/process-design/edit.vue
0 → 100644
View file @
9a8367b5
<
template
>
<div
class=
"design_contain"
>
<el-breadcrumb
separator=
"/"
class=
"bread_crumb1"
>
<el-breadcrumb-item
:to=
"
{ path: '/workplace' }">
{{
$t
(
"
lang.online_component_tool
"
)
}}
</el-breadcrumb-item>
<el-breadcrumb-item
:to=
"
{ path: '/progress/designer' }">
{{
$t
(
"
lang.process_design
"
)
}}
</el-breadcrumb-item>
<el-breadcrumb-item
:to=
"
{ path: '/progress/designer' }">
{{
$t
(
"
lang.process_management
"
)
}}
</el-breadcrumb-item>
<el-breadcrumb-item>
{{
$t
(
"
lang.new
"
)
}}
</el-breadcrumb-item>
</el-breadcrumb>
<BlockRadius
class=
"block_item"
>
<steps
:active-step=
"step"
:done=
"done"
:show-done=
"true"
done-title=
"保存成功"
done-sub-title=
"可返回流程管理列表查看该流程,并进行流程的部署和发布。"
class=
"apaas_steps"
>
<step
title=
"基本信息"
:step=
"0"
:active-icon=
"require('@/assets/imgs/progress_ic_xinxitx.png')"
class=
"apaas_step"
>
<div
class=
"step_in"
>
<el-form
:model=
"basic_form"
:rules=
"rules"
ref=
"basicInformation"
class=
"form_left"
>
<el-form-item
prop=
"name"
>
<p
class=
"formname"
>
流程名称:
</p>
<el-input
v-model=
"basic_form.name"
placeholder=
"请输入流程名称"
></el-input>
</el-form-item>
<el-form-item
prop=
"workplace"
>
<p
class=
"formname"
>
工作区域:
</p>
<el-select
v-model=
"basic_form.workplace"
@
change=
"changeWorkPlace"
placeholder=
"请选择工作区域"
>
<el-option
v-for=
"(item, index) in workplace_list"
:label=
"item.name"
:value=
"item.id"
:key=
"index"
></el-option>
</el-select>
</el-form-item>
<el-form-item
prop=
"desc"
>
<p
class=
"formname"
>
流程描述:
</p>
<el-input
type=
"textarea"
:autosize=
"
{ minRows: 6, maxRows: 10}"
v-model="basic_form.desc"
placeholder="请输入流程描述"
>
</el-input>
</el-form-item>
</el-form>
<div
class=
"btn_footer"
>
<el-button
class=
"cancel"
@
click=
"cancel"
>
取消
</el-button>
<el-button
class=
"next"
@
click=
"next"
>
下一步
</el-button>
</div>
</div>
</step>
<step
title=
"流程设计"
:step=
"1"
:active-icon=
"require('@/assets/imgs/progress_ic_liucheng.png')"
class=
"apaas_step"
>
<div
class=
"step_in"
>
<WorkFlow
ref=
"workFlow"
:node_list=
"node_list"
:link_list=
"link_list"
:node_params_list=
"node_params_list"
class=
"work_flow"
/>
<div
class=
"btn_footer"
>
<el-button
class=
"cancel"
@
click=
"cancel"
>
取消
</el-button>
<div>
<el-button
class=
"cancel"
@
click=
"back"
>
上一步
</el-button>
<el-button
class=
"next"
@
click=
"complete"
>
完成
</el-button>
</div>
</div>
</div>
</step>
<step
title
step-title=
"完成"
:step=
"2"
:active-icon=
"require('@/assets/imgs/progress_ic_wancheng.png')"
class=
"apaas_step"
></step>
<template
slot=
"action"
>
<el-button
type=
"primary"
@
click=
"backToList"
>
返回列表
</el-button>
</
template
>
</steps>
</BlockRadius>
</div>
</template>
<
script
>
import
WorkFlow
from
"
@/components/work-flow/super-flow
"
;
import
BlockRadius
from
"
@/components/general/block-radius
"
;
import
Steps
from
"
@/components/app-build-steps/app-build-steps
"
;
import
Step
from
"
@/components/app-build-steps/app-build-step
"
;
export
default
{
components
:
{
WorkFlow
,
BlockRadius
,
Steps
,
Step
,
},
data
:
()
=>
{
return
{
step
:
0
,
done
:
false
,
basic_form
:
{
name
:
""
,
workplace
:
""
,
desc
:
""
,
},
node_list
:
[],
link_list
:
[],
node_params_list
:
[],
rules
:
{
name
:
[
{
required
:
true
,
message
:
"
请输入流程名称
"
,
trigger
:
"
blur
"
},
{
max
:
16
,
message
:
"
不能超过16个字符
"
,
trigger
:
"
blur
"
},
],
workplace
:
[
{
required
:
true
,
message
:
"
请选择工作区域
"
,
trigger
:
"
blur
"
},
],
desc
:
[
{
required
:
true
,
message
:
"
请输入流程描述
"
,
trigger
:
"
blur
"
},
{
max
:
400
,
message
:
"
不能超过400个字符
"
,
trigger
:
"
blur
"
},
],
},
workplace_list
:
[],
};
},
methods
:
{
verification
()
{
let
self
=
this
;
let
data
=
JSON
.
parse
(
JSON
.
stringify
(
self
.
$refs
.
workFlow
.
getData
()));
console
.
log
(
JSON
.
stringify
(
data
));
let
start_num
=
0
;
let
end_num
=
0
;
let
start_id
=
""
;
let
end_id
=
""
;
let
start_before
=
0
;
let
end_after
=
0
;
let
in_edge
=
0
;
let
out_edge
=
0
;
let
datas
=
{
...
data
.
obj
};
console
.
log
(
data
);
datas
.
nodeList
.
forEach
((
item
)
=>
{
let
da
=
data
.
params
.
find
((
nodep
)
=>
{
return
nodep
.
id
==
item
.
meta
.
id
;
});
item
.
meta
=
da
;
if
(
item
.
meta
.
type
==
1
)
{
start_num
++
;
start_id
=
item
.
id
;
}
if
(
item
.
meta
.
type
==
2
)
{
end_num
++
;
end_id
=
item
.
id
;
}
if
(
datas
.
linkList
.
findIndex
((
el
)
=>
{
return
el
.
startId
==
item
.
id
;
})
==
-
1
&&
item
.
id
!=
end_id
)
{
in_edge
++
;
}
else
if
(
datas
.
linkList
.
findIndex
((
el
)
=>
{
return
el
.
endId
==
item
.
id
;
})
==
-
1
&&
item
.
id
!=
start_id
)
{
out_edge
++
;
}
});
datas
.
linkList
.
forEach
((
item
)
=>
{
if
(
start_id
==
item
.
endId
)
{
start_before
++
;
}
if
(
end_id
==
item
.
startId
)
{
end_after
++
;
}
});
if
(
start_num
!=
1
||
end_num
!=
1
)
{
this
.
$message
({
message
:
"
开始节点与结束节点均应有且只有一个
"
,
type
:
"
warning
"
,
});
return
false
;
}
else
if
(
start_before
!=
0
)
{
this
.
$message
({
message
:
"
开始节点前面不应连接其它节点
"
,
type
:
"
warning
"
,
});
return
false
;
}
else
if
(
end_after
!=
0
)
{
this
.
$message
({
message
:
"
结束节点后面不应连接其它节点
"
,
type
:
"
warning
"
,
});
return
false
;
}
else
if
(
in_edge
!=
0
||
out_edge
!=
0
)
{
this
.
$message
({
message
:
"
请保证每个节点都被连接
"
,
type
:
"
warning
"
,
});
return
false
;
}
else
{
return
datas
;
}
},
backToList
()
{
this
.
$router
.
push
(
"
/message/directed_push
"
);
},
changeWorkPlace
()
{},
cancel
()
{
this
.
$router
.
go
(
-
1
);
},
next
()
{
this
.
$refs
[
"
basicInformation
"
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
step
++
;
}
else
{
}
});
},
back
()
{
this
.
step
--
;
},
complete
()
{
let
self
=
this
;
let
res
=
self
.
verification
();
if
(
res
)
{
let
query
=
{
name
:
self
.
basic_form
.
name
,
workarea
:
self
.
basic_form
.
workplace
,
describe
:
self
.
basic_form
.
desc
,
...
res
,
};
this
.
$api
.
workbench
.
addProcess
(
query
).
then
((
response
)
=>
{
if
(
response
.
data
.
success
==
1
)
{
}
});
}
},
getNameSpaceList
()
{
this
.
$api
.
workbench
.
getProcessNamespaceList
().
then
((
response
)
=>
{
if
(
response
.
data
.
success
==
1
)
{
this
.
workplace_list
=
response
.
data
.
data
.
workareas
;
}
});
},
getProcessDetail
()
{
this
.
$api
.
workbench
.
getProcessDetail
({
id
:
this
.
$route
.
params
.
id
})
.
then
((
response
)
=>
{
if
(
response
.
data
.
success
==
1
)
{
this
.
node_list
=
[];
this
.
link_list
=
[];
this
.
node_params_list
=
[];
this
.
node_list
.
forEach
((
item
)
=>
{
item
.
meta
.
id
=
parseInt
(
Math
.
random
()
*
1000
*
1000
)
+
"
a
"
+
parseInt
(
Math
.
random
()
*
1000
*
1000
);
this
.
node_params_list
.
push
(
item
.
meta
);
});
}
});
},
},
mounted
()
{
this
.
getNameSpaceList
();
this
.
getProcessDetail
();
},
};
</
script
>
<
style
scoped
>
.design_contain
{
width
:
100%
;
height
:
calc
(
100%
-
20px
);
padding
:
0
20px
;
}
.block_item
{
height
:
calc
(
100%
-
56px
);
}
.step_in
{
height
:
100%
;
}
.form_left
{
width
:
55%
;
height
:
calc
(
100%
-
70px
);
}
.btn_footer
{
width
:
calc
(
100%
-
20px
);
height
:
40px
;
padding
:
0
10px
;
display
:
flex
;
justify-content
:
space-between
;
}
.cancel
{
background-color
:
#e3e5ef
;
color
:
#0f2683
;
}
.next
{
background-color
:
#0f2683
;
color
:
#f8f9fd
;
}
.work_flow
{
height
:
calc
(
100%
-
70px
);
}
</
style
>
<
style
>
.block_item
.el-textarea__inner
{
border-radius
:
8px
;
background-color
:
#f7f8f9
;
border
:
solid
1px
#e3e5ef
;
}
.block_item
.el-input__inner
{
background-color
:
#f7f8f9
;
border
:
solid
1px
#e3e5ef
;
}
.block_item
.el-select
{
width
:
100%
;
}
</
style
>
src/pages/workbench/component-center/process-management/process-design/index.vue
View file @
9a8367b5
...
...
@@ -7,8 +7,20 @@
<el-breadcrumb-item>
{{
$t
(
"
lang.new
"
)
}}
</el-breadcrumb-item>
</el-breadcrumb>
<BlockRadius
class=
"block_item"
>
<steps
:active-step=
"step"
:done=
"done"
:show-done=
"true"
done-title=
"保存成功"
done-sub-title=
"可返回流程管理列表查看该流程,并进行流程的部署和发布。"
class=
"apaas_steps"
>
<step
title=
"基本信息"
:step=
"0"
:active-icon=
"require('@/assets/imgs/progress_ic_xinxitx.png')"
class=
"apaas_step"
>
<steps
:active-step=
"step"
:done=
"done"
:show-done=
"true"
done-title=
"保存成功"
done-sub-title=
"可返回流程管理列表查看该流程,并进行流程的部署和发布。"
class=
"apaas_steps"
>
<step
title=
"基本信息"
:step=
"0"
:active-icon=
"require('@/assets/imgs/progress_ic_xinxitx.png')"
class=
"apaas_step"
>
<div
class=
"step_in"
>
<el-form
:model=
"basic_form"
:rules=
"rules"
ref=
"basicInformation"
class=
"form_left"
>
<el-form-item
prop=
"name"
>
...
...
@@ -17,13 +29,27 @@
</el-form-item>
<el-form-item
prop=
"workplace"
>
<p
class=
"formname"
>
工作区域:
</p>
<el-select
v-model=
"basic_form.workplace"
@
change=
"changeWorkPlace"
placeholder=
"请选择工作区域"
>
<el-option
v-for=
"item in workplace_list"
:label=
"item"
:value=
"item"
:key=
"item"
></el-option>
<el-select
v-model=
"basic_form.workplace"
@
change=
"changeWorkPlace"
placeholder=
"请选择工作区域"
>
<el-option
v-for=
"(item, index) in workplace_list"
:label=
"item.name"
:value=
"item.id"
:key=
"index"
></el-option>
</el-select>
</el-form-item>
<el-form-item
prop=
"desc"
>
<p
class=
"formname"
>
流程描述:
</p>
<el-input
type=
"textarea"
:autosize=
"
{ minRows: 6, maxRows: 10}" v-model="basic_form.desc" placeholder="请输入流程描述">
</el-input>
<el-input
type=
"textarea"
:autosize=
"
{ minRows: 6, maxRows: 10}"
v-model="basic_form.desc"
placeholder="请输入流程描述"
>
</el-input>
</el-form-item>
</el-form>
<div
class=
"btn_footer"
>
...
...
@@ -32,7 +58,12 @@
</div>
</div>
</step>
<step
title=
"流程设计"
:step=
"1"
:active-icon=
"require('@/assets/imgs/progress_ic_liucheng.png')"
class=
"apaas_step"
>
<step
title=
"流程设计"
:step=
"1"
:active-icon=
"require('@/assets/imgs/progress_ic_liucheng.png')"
class=
"apaas_step"
>
<div
class=
"step_in"
>
<WorkFlow
ref=
"workFlow"
class=
"work_flow"
/>
<div
class=
"btn_footer"
>
...
...
@@ -44,7 +75,13 @@
</div>
</div>
</step>
<step
title
step-title=
"完成"
:step=
"2"
:active-icon=
"require('@/assets/imgs/progress_ic_wancheng.png')"
class=
"apaas_step"
></step>
<step
title
step-title=
"完成"
:step=
"2"
:active-icon=
"require('@/assets/imgs/progress_ic_wancheng.png')"
class=
"apaas_step"
></step>
<template
slot=
"action"
>
<el-button
type=
"primary"
@
click=
"backToList"
>
返回列表
</el-button>
...
...
@@ -65,7 +102,7 @@ export default {
WorkFlow
,
BlockRadius
,
Steps
,
Step
Step
,
},
data
:
()
=>
{
return
{
...
...
@@ -74,22 +111,22 @@ export default {
basic_form
:
{
name
:
""
,
workplace
:
""
,
desc
:
""
desc
:
""
,
},
rules
:
{
name
:
[
{
required
:
true
,
message
:
"
请输入流程名称
"
,
trigger
:
"
blur
"
},
{
max
:
16
,
message
:
"
不能超过16个字符
"
,
trigger
:
"
blur
"
}
{
max
:
16
,
message
:
"
不能超过16个字符
"
,
trigger
:
"
blur
"
}
,
],
workplace
:
[
{
required
:
true
,
message
:
"
请选择工作区域
"
,
trigger
:
"
blur
"
}
{
required
:
true
,
message
:
"
请选择工作区域
"
,
trigger
:
"
blur
"
}
,
],
desc
:
[
{
required
:
true
,
message
:
"
请输入流程描述
"
,
trigger
:
"
blur
"
},
{
max
:
400
,
message
:
"
不能超过400个字符
"
,
trigger
:
"
blur
"
}
]
{
max
:
400
,
message
:
"
不能超过400个字符
"
,
trigger
:
"
blur
"
}
,
]
,
},
workplace_list
:
[]
workplace_list
:
[]
,
};
},
methods
:
{
...
...
@@ -107,8 +144,8 @@ export default {
let
out_edge
=
0
;
let
datas
=
{
...
data
.
obj
};
console
.
log
(
data
);
datas
.
nodeList
.
forEach
(
item
=>
{
let
da
=
data
.
params
.
find
(
nodep
=>
{
datas
.
nodeList
.
forEach
(
(
item
)
=>
{
let
da
=
data
.
params
.
find
(
(
nodep
)
=>
{
return
nodep
.
id
==
item
.
meta
.
id
;
});
item
.
meta
=
da
;
...
...
@@ -121,14 +158,14 @@ export default {
end_id
=
item
.
id
;
}
if
(
datas
.
linkList
.
findIndex
(
el
=>
{
datas
.
linkList
.
findIndex
(
(
el
)
=>
{
return
el
.
startId
==
item
.
id
;
})
==
-
1
&&
item
.
id
!=
end_id
)
{
in_edge
++
;
}
else
if
(
datas
.
linkList
.
findIndex
(
el
=>
{
datas
.
linkList
.
findIndex
(
(
el
)
=>
{
return
el
.
endId
==
item
.
id
;
})
==
-
1
&&
item
.
id
!=
start_id
...
...
@@ -136,7 +173,7 @@ export default {
out_edge
++
;
}
});
datas
.
linkList
.
forEach
(
item
=>
{
datas
.
linkList
.
forEach
(
(
item
)
=>
{
if
(
start_id
==
item
.
endId
)
{
start_before
++
;
}
...
...
@@ -147,25 +184,30 @@ export default {
if
(
start_num
!=
1
||
end_num
!=
1
)
{
this
.
$message
({
message
:
"
开始节点与结束节点均应有且只有一个
"
,
type
:
"
warning
"
type
:
"
warning
"
,
});
return
false
;
}
else
if
(
start_before
!=
0
)
{
this
.
$message
({
message
:
"
开始节点前面不应连接其它节点
"
,
type
:
"
warning
"
type
:
"
warning
"
,
});
return
false
;
}
else
if
(
end_after
!=
0
)
{
this
.
$message
({
message
:
"
结束节点后面不应连接其它节点
"
,
type
:
"
warning
"
type
:
"
warning
"
,
});
return
false
;
}
else
if
(
in_edge
!=
0
||
out_edge
!=
0
)
{
this
.
$message
({
message
:
"
请保证每个节点都被连接
"
,
type
:
"
warning
"
type
:
"
warning
"
,
});
return
false
;
}
else
{
return
datas
;
}
console
.
log
(
datas
);
},
backToList
()
{
this
.
$router
.
push
(
"
/message/directed_push
"
);
...
...
@@ -175,9 +217,8 @@ export default {
this
.
$router
.
go
(
-
1
);
},
next
()
{
this
.
$refs
[
"
basicInformation
"
].
validate
(
valid
=>
{
this
.
$refs
[
"
basicInformation
"
].
validate
(
(
valid
)
=>
{
if
(
valid
)
{
console
.
log
(
"
sss
"
)
this
.
step
++
;
}
else
{
}
...
...
@@ -187,9 +228,32 @@ export default {
this
.
step
--
;
},
complete
()
{
this
.
verification
();
}
}
let
self
=
this
;
let
res
=
self
.
verification
();
if
(
res
)
{
let
query
=
{
name
:
self
.
basic_form
.
name
,
workarea
:
self
.
basic_form
.
workplace
,
describe
:
self
.
basic_form
.
desc
,
...
res
,
};
this
.
$api
.
workbench
.
addProcess
(
query
).
then
((
response
)
=>
{
if
(
response
.
data
.
success
==
1
)
{
}
});
}
},
getNameSpaceList
()
{
this
.
$api
.
workbench
.
getProcessNamespaceList
().
then
((
response
)
=>
{
if
(
response
.
data
.
success
==
1
)
{
this
.
workplace_list
=
response
.
data
.
data
.
workareas
;
}
});
},
},
mounted
()
{
this
.
getNameSpaceList
();
},
};
</
script
>
...
...
src/pages/workbench/yygl/approval_app_detail.vue
View file @
9a8367b5
...
...
@@ -80,7 +80,7 @@ export default {
option
:[
{
required
:
true
,
message
:
'
请输入意见
'
,
trigger
:
'
blur
'
},
{
min
:
10
,
message
:
'
长度应大于1
0个字符
'
,
trigger
:
'
blur
'
min
:
10
,
max
:
200
,
message
:
'
长度应大于10个小于20
0个字符
'
,
trigger
:
'
blur
'
}
]
},
...
...
src/request/api/workbench.js
View file @
9a8367b5
...
...
@@ -57,6 +57,23 @@ const workbench = {
getServiceTopology
()
{
return
axios
.
get
(
`/apaas/istio/v3/api/namespaces/graph`
)
},
// add process
addProcess
(
params
)
{
return
axios
.
post
(
`/apaas/serviceapp/v3/workflows/add`
,
params
)
},
// edit process
editProcess
(
params
)
{
return
axios
.
post
(
`/apaas/serviceapp/v3/workflows/update`
,
params
)
},
// get process detail
getProcessDetail
(
params
)
{
return
axios
.
get
(
`/apaas/serviceapp/v3/workflows/detail?id=
${
params
.
id
}
`
)
},
// get process namespace list
getProcessNamespaceList
()
{
return
axios
.
get
(
`/apaas/serviceapp/v3/workflows/searchConditions`
)
},
}
export
default
workbench
;
src/router/index.js
View file @
9a8367b5
...
...
@@ -284,6 +284,11 @@ export default new Router({
name
:
"
process_design
"
,
component
:
()
=>
import
(
"
@/pages/workbench/component-center/process-management/process-design/index
"
),
},
// 流程设计
{
path
:
"
/progress/designer/design_edit/:id
"
,
name
:
"
process_design_edit
"
,
component
:
()
=>
import
(
"
@/pages/workbench/component-center/process-management/process-design/edit
"
),
},
// 流程编辑
],
},
// 流程设计
{
...
...
@@ -445,6 +450,16 @@ export default new Router({
name
:
"
serviceControl
"
,
component
:
()
=>
import
(
"
@/pages/data-analysis/service-control
"
),
},
{
path
:
"
/data_analysis/super_service
"
,
// 数据分析中心服务-组织
name
:
"
superServiceDataAnalysis
"
,
component
:
()
=>
import
(
"
@/pages/data-analysis/super-service
"
),
},
{
path
:
"
/data_analysis/super_application
"
,
// 数据分析中心应用-组织
name
:
"
superApplicationDataAnalysis
"
,
component
:
()
=>
import
(
"
@/pages/data-analysis/super-application
"
),
},
],
},
{
...
...
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