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
283601ff
Commit
283601ff
authored
Aug 12, 2020
by
张俊
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
https://cloud.wodcloud.com/git/apaas/apaas-v3-ui
into dev
parents
2b2e218a
d7912e5e
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
721 additions
and
76 deletions
+721
-76
src/assets/imgs/img_default_jszc.png
src/assets/imgs/img_default_jszc.png
+0
-0
src/components/service-tabs/service-tab-detail.vue
src/components/service-tabs/service-tab-detail.vue
+7
-4
src/components/work-flow/super-flow.vue
src/components/work-flow/super-flow.vue
+493
-62
src/components/work-flow/workflows-view.vue
src/components/work-flow/workflows-view.vue
+182
-0
src/pages/index.vue
src/pages/index.vue
+2
-1
src/pages/service_shop/zhfwDetail.vue
src/pages/service_shop/zhfwDetail.vue
+8
-7
src/pages/technical-support/index.vue
src/pages/technical-support/index.vue
+20
-0
src/pages/workbench/component-center/process-management/process-design/index.vue
...ponent-center/process-management/process-design/index.vue
+3
-2
src/router/index.js
src/router/index.js
+6
-0
No files found.
src/assets/imgs/img_default_jszc.png
0 → 100644
View file @
283601ff
439 KB
src/components/service-tabs/service-tab-detail.vue
View file @
283601ff
...
...
@@ -5,10 +5,7 @@
v-for=
"(item, index) in data"
:key=
"'detail_' + index"
>
<h3
class=
"detail-title"
v-text=
"item.name + ':'"
></h3>
<h3
class=
"detail-title"
v-text=
"item.name + ':'"
></h3>
<service-steps
v-if=
"item.type == 'step'"
...
...
@@ -24,6 +21,10 @@
class=
"detail-code"
v-html=
"item.value"
></div>
<workflows-view
v-else-if=
"item.type == 'workflows'"
:id=
"item.value"
></workflows-view>
<el-table
v-else-if=
"item.type == 'table'"
class=
"detail-table"
...
...
@@ -66,10 +67,12 @@
<
script
>
import
serviceSteps
from
"
@/components/service-tabs/service-steps
"
;
import
workflowsView
from
"
@/components/work-flow/workflows-view
"
;
export
default
{
components
:
{
serviceSteps
,
workflowsView
,
},
props
:
{
data
:
{
...
...
src/components/work-flow/super-flow.vue
View file @
283601ff
This diff is collapsed.
Click to expand it.
src/components/work-flow/workflows-view.vue
0 → 100644
View file @
283601ff
<
template
>
<div
class=
"workflows-view"
>
<super-flow
ref=
"superFlow"
:node-list=
"nodeList"
:link-list=
"linkList"
:origin=
"[681, 465]"
line-color=
"#c4d8f8"
on-line-color=
"#94a8c8"
:draggable=
"false"
:linkAddable=
"false"
>
<template
v-slot:node=
"
{ meta }">
<div
v-if=
"meta.type === 1 || meta.type === 2"
:class=
"`flow-node flow-node-$
{meta.type}`"
>
<span
v-text=
"meta.name"
></span>
</div>
<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
.
avg_elapsed_time
||
0
}}
分钟
</p>
<p>
节点最大耗时:
{{
meta
.
max_elapsed_time
||
0
}}
分钟
</p>
<p>
节点插件:
</p>
<div
class=
"plug-in-list"
>
<span
v-for=
"(plugin, index) in meta.plugins"
:key=
"index"
>
{{
[
"
-
"
,
"
接口插件
"
,
"
流程插件
"
,
"
超时插件
"
][
plugin
.
plugin_type
||
0
]
}}
</span>
</div>
</div>
<div
:class=
"`flow-node`"
>
<span
v-text=
"meta.name"
></span>
<span
class=
"example-count"
v-text=
"meta.running_nodes || 0"
></span>
</div>
</el-tooltip>
</
template
>
</super-flow>
</div>
</template>
<
script
>
export
default
{
props
:
{
id
:
{
type
:
Number
,
required
:
true
,
},
},
data
()
{
return
{
nodeList
:
[],
linkList
:
[],
};
},
methods
:
{
init
()
{
Promise
.
all
([
this
.
$http
.
get
(
"
/apaas/serviceapp/v3/workflows/detail
"
,
{
params
:
{
id
:
this
.
id
,
},
}),
this
.
$http
.
get
(
"
/apaas/serviceapp/v3/workflows/detail/nodeInstanceStat
"
,
{
params
:
{
id
:
this
.
id
,
},
}
),
])
.
then
((
response
)
=>
{
let
data
=
response
[
0
].
data
.
data
;
let
nodeList
=
data
.
nodeList
;
let
linkList
=
data
.
linkList
;
let
nodes
=
response
[
1
].
data
.
data
;
nodes
.
forEach
((
node
)
=>
{
let
targetNode
=
nodeList
.
find
((
v
)
=>
v
.
node_id
===
node
.
id
);
if
(
targetNode
)
{
targetNode
.
meta
=
{
...
targetNode
.
meta
,
...
node
,
};
}
});
this
.
nodeList
=
nodeList
;
this
.
linkList
=
linkList
;
})
.
catch
(
function
(
error
)
{
console
.
log
(
error
);
});
},
},
created
()
{
this
.
init
();
},
};
</
script
>
<
style
>
.workflows-view
.super-flow__node
{
background-color
:
transparent
;
border
:
none
;
box-shadow
:
unset
;
}
</
style
>
<
style
scoped
>
.workflows-view
{
width
:
100%
;
height
:
830px
;
background-color
:
#fbfcfe
;
border-radius
:
10px
;
margin-top
:
10px
;
}
.flow-node
{
position
:
relative
;
width
:
100%
;
height
:
100%
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
border
:
solid
3px
#b4c6f5
;
background-color
:
#fff
;
border-radius
:
8px
;
padding
:
5px
;
font-size
:
16px
;
color
:
#0f2683
;
}
.flow-node-1
{
border-color
:
#109e93
;
background-color
:
#25bdb1
;
color
:
#fff
;
}
.flow-node-2
{
border-color
:
#e86262
;
background-color
:
#f78181
;
color
:
#fff
;
}
.example-count
{
position
:
absolute
;
right
:
-14px
;
bottom
:
-14px
;
height
:
28px
;
padding
:
0
14px
;
border-radius
:
14px
;
background-color
:
#f5ab4c
;
line-height
:
28px
;
color
:
#fff
;
}
.node-detail
{
font-size
:
12px
;
line-height
:
20px
;
}
.plug-in-list
{
margin-top
:
5px
;
width
:
150px
;
}
.plug-in-list
>
span
{
display
:
inline-block
;
vertical-align
:
middle
;
min-width
:
calc
(
50%
-
15px
);
padding
:
0
9px
;
border
:
1px
solid
#617ef0
;
box-sizing
:
border-box
;
border-radius
:
3px
;
background-color
:
#274fee
;
margin
:
0
10px
10px
0
;
line-height
:
18px
;
text-align
:
center
;
}
</
style
>
src/pages/index.vue
View file @
283601ff
...
...
@@ -16,7 +16,8 @@ export default {
'
/intelligent_drawing
'
,
'
/intelligent_details
'
,
'
/intelligent_appbuilder
'
,
'
/search_engine
'
'
/search_engine
'
,
'
/technical_support
'
]
}),
created
(){
...
...
src/pages/service_shop/zhfwDetail.vue
View file @
283601ff
...
...
@@ -38,11 +38,6 @@ export default {
providerData
:
null
,
commentsData
:
null
,
}),
computed
:
{
id
()
{
return
this
.
$route
.
params
.
id
;
},
},
computed
:
{
id
()
{
return
this
.
$route
.
params
.
id
;
...
...
@@ -93,7 +88,6 @@ export default {
descript
:
datas
.
descript
,
serviceRequestSpcs
:
specificationData
,
};
this
.
detailData
=
[
{
name
:
"
获取流程
"
,
...
...
@@ -136,6 +130,13 @@ export default {
},
}, */
];
if
(
datas
.
workflows_id
)
{
this
.
detailData
.
push
({
name
:
"
流程详情
"
,
type
:
"
workflows
"
,
value
:
datas
.
workflows_id
,
});
}
this
.
specificationData
=
specificationData
;
this
.
providerData
=
{
organization_name
:
datas
.
organization_name
,
...
...
@@ -150,7 +151,7 @@ export default {
});
},
},
moun
ted
()
{
crea
ted
()
{
this
.
init
();
},
};
...
...
src/pages/technical-support/index.vue
0 → 100644
View file @
283601ff
<
template
>
<div
class=
"contain"
></div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{};
},
components
:
{},
computed
:
{},
created
()
{},
mounted
()
{},
methods
:
{},
};
</
script
>
<
style
>
</
style
>
src/pages/workbench/component-center/process-management/process-design/index.vue
View file @
283601ff
...
...
@@ -128,6 +128,7 @@ export default {
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
=
""
;
...
...
@@ -143,11 +144,11 @@ export default {
return
nodep
.
id
==
item
.
meta
.
id
;
});
item
.
meta
=
da
;
if
(
item
.
meta
.
type
==
0
)
{
if
(
item
.
meta
.
type
==
1
)
{
start_num
++
;
start_id
=
item
.
id
;
}
if
(
item
.
meta
.
type
==
1
)
{
if
(
item
.
meta
.
type
==
2
)
{
end_num
++
;
end_id
=
item
.
id
;
}
...
...
src/router/index.js
View file @
283601ff
...
...
@@ -143,6 +143,12 @@ export default new Router({
},
],
},
// 工作台 - 应用管理模块
{
path
:
"
/technical_support
"
,
// 技术支持
name
:
"
technicalSupport
"
,
component
:
()
=>
import
(
"
@/pages/technical-support/index
"
),
},
{
path
:
"
/shop
"
,
// 服务超市
name
:
"
shop
"
,
...
...
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