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
08458d5a
Commit
08458d5a
authored
Jul 15, 2020
by
刘殿昕
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ldx' into dev
parents
deb39c02
54ffec7b
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
423 additions
and
12 deletions
+423
-12
src/components/e-charts/bar-chart.vue
src/components/e-charts/bar-chart.vue
+9
-5
src/components/e-charts/dashboard.vue
src/components/e-charts/dashboard.vue
+1
-3
src/components/e-charts/graph.vue
src/components/e-charts/graph.vue
+131
-0
src/pages/data-analysis/my-application.vue
src/pages/data-analysis/my-application.vue
+250
-3
src/pages/data-analysis/my-service.vue
src/pages/data-analysis/my-service.vue
+32
-1
No files found.
src/components/e-charts/bar-chart.vue
View file @
08458d5a
...
...
@@ -12,7 +12,6 @@ export default {
return
{
xaxis
:
[],
data
:
[]
};
}
},
...
...
@@ -37,14 +36,19 @@ export default {
default
:
false
}
},
data
:
()
=>
({
navList
:
[]
}),
data
:
()
=>
({}),
mounted
()
{},
methods
:
{
bar
()
{
let
self
=
this
;
return
{
grid
:
{
left
:
10
,
right
:
10
,
bottom
:
25
,
top
:
25
,
containLabel
:
true
},
xAxis
:
[
{
type
:
"
category
"
,
...
...
src/components/e-charts/dashboard.vue
View file @
08458d5a
...
...
@@ -24,9 +24,7 @@ export default {
default
:
false
}
},
data
:
()
=>
({
navList
:
[]
}),
data
:
()
=>
({}),
mounted
()
{},
methods
:
{
dashboard
()
{
...
...
src/components/e-charts/graph.vue
0 → 100644
View file @
08458d5a
<
template
>
<chart
:options=
"graph()"
class=
"graph"
/>
</
template
>
<
script
>
import
{
graphic
}
from
"
echarts/lib/export
"
;
export
default
{
props
:
{
data
:
{
type
:
Object
,
default
:
()
=>
{
return
{
xaxis
:
[],
data
:
[],
legend
:
[]
};
}
}
},
data
:
()
=>
({
navList
:
[]
}),
mounted
()
{},
methods
:
{
graph
()
{
let
self
=
this
;
return
{
color
:
[
"
#274fee
"
,
"
#ef9433
"
],
legend
:
{
bottom
:
0
,
left
:
"
center
"
,
icon
:
"
roundRect
"
,
itemWidth
:
10
,
itemHeight
:
10
,
data
:
self
.
data
.
legend
,
orient
:
"
horizontal
"
,
backgroundColor
:
"
#f4f7fc
"
},
grid
:
{
left
:
10
,
right
:
10
,
bottom
:
25
,
top
:
25
,
containLabel
:
true
},
xAxis
:
[
{
type
:
"
category
"
,
data
:
self
.
data
.
xaxis
,
axisLine
:
{
lineStyle
:
{
color
:
"
#f2f2f2
"
}
},
axisLabel
:
{
margin
:
20
,
color
:
"
#0d1847
"
,
textStyle
:
{
fontSize
:
12
},
interval
:
0
},
boundaryGap
:
false
}
],
yAxis
:
[
{
type
:
"
value
"
,
axisTick
:
{
show
:
false
},
axisLine
:
{
lineStyle
:
{
color
:
"
rgba(0, 0, 0, 0)
"
}
},
axisLabel
:
{
color
:
"
#a9aec0
"
,
textStyle
:
{
fontSize
:
12
}
}
}
],
series
:
[
{
name
:
self
.
data
.
legend
[
0
],
type
:
"
line
"
,
data
:
self
.
data
.
data
[
0
],
symbolSize
:
1
,
symbol
:
"
circle
"
,
smooth
:
true
,
yAxisIndex
:
0
,
showSymbol
:
false
,
lineStyle
:
{
width
:
2
,
color
:
"
#274fee
"
,
shadowColor
:
"
rgb(39, 79, 238, 0.3)
"
,
shadowBlur
:
5
,
shadowOffsetY
:
8
}
},
{
name
:
self
.
data
.
legend
[
1
],
type
:
"
line
"
,
data
:
self
.
data
.
data
[
1
],
symbolSize
:
1
,
symbol
:
"
circle
"
,
smooth
:
true
,
yAxisIndex
:
0
,
showSymbol
:
false
,
lineStyle
:
{
width
:
2
,
color
:
"
#ef9433
"
,
shadowColor
:
"
rgb(239, 148, 51, 0.3)
"
,
shadowBlur
:
5
,
shadowOffsetY
:
8
}
}
]
};
}
}
};
</
script
>
<
style
scoped
>
.graph
{
width
:
100%
;
height
:
calc
(
100%
-
20px
);
}
</
style
>
\ No newline at end of file
src/pages/data-analysis/my-application.vue
View file @
08458d5a
...
...
@@ -4,18 +4,265 @@
<el-breadcrumb-item
:to=
"
{ path: '/data_analysis' }">
{{
$t
(
"
lang.dataAnalysis
"
)
}}
</el-breadcrumb-item>
<el-breadcrumb-item>
{{
$t
(
"
lang.myApplicationDataAnalysis
"
)
}}
</el-breadcrumb-item>
</el-breadcrumb>
<el-row
class=
"in_analysis"
>
<!-- 可横向铺满 -->
<el-col
:span=
"6"
class=
"in_left"
>
<el-row>
<el-col
:span=
"24"
class=
"in_block"
>
<block-radius
:show_header=
"true"
title=
"服务总体概况"
class=
"block"
>
<div
class=
"left_1"
>
<div
ref=
"left_1_l"
class=
"left_1_l"
>
<img
:src=
"require('@/assets/imgs/data_img_service.gif')"
class=
"left_1_img"
/>
<div
class=
"left_1_title"
>
服务总数
</div>
<div
class=
"left_1_num"
>
2222
</div>
</div>
<dashboard
ref=
"left_1_r"
:data=
"das_data"
:is_word=
"true"
class=
"left_1_r"
></dashboard>
</div>
</block-radius>
</el-col>
<el-col
:span=
"24"
class=
"in_block"
>
<block-radius
:show_header=
"true"
title=
"服务调用次数分析"
:buttons_arr=
"['近7天', '近30天']"
@
changeButton=
"changeServiceCellBtn"
class=
"block"
>
<Graph
:data=
"graph_arr"
/>
</block-radius>
</el-col>
<el-col
:span=
"24"
class=
"in_block"
>
<block-radius
:show_header=
"true"
title=
"服务类型分析"
:buttons_arr=
"['发布的服务', '调用的服务']"
@
changeButton=
"changeServiceTypeBtn"
class=
"block"
>
<multiple-circle
:data=
"mult_data"
:text=
"text"
></multiple-circle>
</block-radius>
</el-col>
</el-row>
</el-col>
<el-col
:span=
"12"
class=
"in_center"
>
<el-row>
<el-col
:span=
"24"
class=
"in_block"
>
<block-radius
class=
"block"
></block-radius>
</el-col>
<el-col
:span=
"24"
class=
"in_block"
>
<block-radius
class=
"block"
></block-radius>
</el-col>
<el-col
:span=
"24"
class=
"in_block"
>
<block-radius
class=
"block"
>
<line-chart
:data=
"line_data"
></line-chart>
</block-radius>
</el-col>
</el-row>
</el-col>
<el-col
:span=
"6"
class=
"in_right"
>
<el-row>
<el-col
:span=
"24"
class=
"in_block"
>
<block-radius
class=
"block"
>
<toplist></toplist>
</block-radius>
</el-col>
<el-col
:span=
"24"
class=
"in_block"
>
<block-radius
class=
"block"
>
<starlist></starlist>
</block-radius>
</el-col>
<el-col
:span=
"24"
class=
"in_block"
>
<block-radius
class=
"block"
>
<single-circle
:data=
"single_data"
></single-circle>
</block-radius>
</el-col>
</el-row>
</el-col>
<!-- 不可横向铺满,一般为最后一行 -->
<el-col
:span=
"6"
class=
"in_block"
>
<block-radius
:show_header=
"true"
title=
"服务来源机构分析"
class=
"block"
>
<BarChart
:data=
"bar_data_org"
:colors=
"['#e56600', '#e56600']"
/>
</block-radius>
</el-col>
<el-col
:span=
"18"
class=
"in_block default"
>
<block-radius
class=
"block"
>
<img
:src=
"require('@/assets/imgs/data_img_default.gif')"
class=
"default_img"
/>
</block-radius>
</el-col>
</el-row>
</div>
</
template
>
<
script
>
import
BlockRadius
from
"
@/components/general/block-radius
"
;
import
Dashboard
from
"
@/components/e-charts/dashboard
"
;
import
multipleCircle
from
"
@/components/e-charts/multiple_circle
"
;
import
singleCircle
from
"
@/components/e-charts/single_circle
"
;
import
lineChart
from
"
@/components/e-charts/line_chart
"
;
import
Toplist
from
"
@/components/e-charts/toplist
"
;
import
Starlist
from
"
@/components/e-charts/starlist
"
;
import
BarChart
from
"
@/components/e-charts/bar-chart
"
;
import
Graph
from
"
@/components/e-charts/graph
"
;
export
default
{
components
:
{},
components
:
{
BlockRadius
,
Dashboard
,
multipleCircle
,
singleCircle
,
Toplist
,
Starlist
,
lineChart
,
BarChart
,
Graph
},
data
:
()
=>
({
navList
:
[]
navList
:
[],
mult_data
:
[
{
name
:
"
基础工具
"
,
value
:
40
},
{
name
:
"
通用应用
"
,
value
:
0
},
{
name
:
"
业务应用
"
,
value
:
2
}
],
text
:
"
应用总数
"
,
single_data
:
{
num
:
12
,
color
:
"
#515fe7
"
,
text
:
"
共享
"
},
line_data
:
{
xaxis
:
[
"
01-01
"
,
"
01-02
"
,
"
01-03
"
,
"
01-04
"
,
"
01-05
"
,
"
01-06
"
,
"
01-07
"
,
"
01-08
"
],
data
:
[
{
name
:
"
开发者应用
"
,
arr
:
[
100
,
120
,
130
,
150
,
160
,
120
,
110
,
100
]
},
{
name
:
"
平台应用
"
,
arr
:
[
120
,
130
,
140
,
130
,
140
,
120
,
100
,
90
]
},
{
name
:
"
未上架
"
,
arr
:
[
80
,
90
,
100
,
110
,
100
,
70
,
80
,
90
]
}
]
},
das_data
:
{
data
:
40
,
text
:
"
健康占比
"
},
bar_data_org
:
{
xaxis
:
[
"
01-01
"
,
"
01-02
"
,
"
01-03
"
,
"
01-04
"
,
"
01-05
"
,
"
01-06
"
,
"
01-07
"
,
"
01-08
"
],
data
:
[
100
,
120
,
130
,
150
,
160
,
120
,
110
,
100
]
},
graph_arr
:
{
xaxis
:
[
"
01-01
"
,
"
01-02
"
,
"
01-03
"
,
"
01-04
"
,
"
01-05
"
,
"
01-06
"
,
"
01-07
"
,
"
01-08
"
],
data
:
[
[
1010
,
120
,
130
,
520
,
160
,
1120
,
110
,
100
],
[
100
,
1210
,
130
,
1530
,
160
,
120
,
110
,
1200
]
],
legend
:
[
"
aaa1
"
,
"
bbb1
"
]
}
}),
mounted
()
{},
methods
:
{}
methods
:
{
changeServiceTypeBtn
(
index
)
{
console
.
log
(
index
);
},
changeApplicationFieldBtn
(
index
)
{
console
.
log
(
index
);
},
changeServiceCellBtn
(
index
)
{
console
.
log
(
index
);
}
}
};
</
script
>
<
style
scoped
>
.in_analysis
{
padding
:
0
10px
10px
;
height
:
100%
;
width
:
100%
;
min-width
:
1700px
;
}
.in_l
{
}
.in_r
{
}
.in_c
{
}
.in_block
{
height
:
280px
;
padding
:
10px
;
}
.height_2x
{
height
:
560px
;
}
.block
{
width
:
100%
;
height
:
100%
;
}
.left_1
{
height
:
100%
;
display
:
flex
;
justify-content
:
space-between
;
}
.left_1_l
{
width
:
40%
;
height
:
100%
;
display
:
inline-block
;
padding
:
20px
0
0
0
;
}
.left_1_title
{
width
:
100%
;
text-align
:
center
;
}
.left_1_num
{
font-size
:
32px
;
color
:
#515fe7
;
width
:
100%
;
text-align
:
center
;
}
.left_1_img
{
width
:
120px
;
display
:
block
;
margin
:
0
auto
;
}
.left_1_r
{
width
:
50%
;
height
:
100%
;
display
:
inline-block
;
}
.default
{
text-align
:
center
;
}
.default_img
{
width
:
330px
;
height
:
230px
;
}
</
style
>
\ No newline at end of file
src/pages/data-analysis/my-service.vue
View file @
08458d5a
...
...
@@ -87,7 +87,15 @@
</block-radius>
</el-col>
<el-col
:span=
"24"
class=
"in_block"
>
<block-radius
class=
"block"
></block-radius>
<block-radius
:show_header=
"true"
title=
"服务调用次数分析"
:buttons_arr=
"['近7天', '近30天']"
@
changeButton=
"changeServiceCellBtn"
class=
"block"
>
<Graph
:data=
"graph_arr"
/>
</block-radius>
</el-col>
<el-col
:span=
"24"
class=
"in_block"
>
<block-radius
class=
"block"
>
...
...
@@ -144,6 +152,7 @@ import Toplist from "@/components/e-charts/toplist";
import
Starlist
from
"
@/components/e-charts/starlist
"
;
import
commentlist
from
"
@/components/e-charts/commentlist
"
;
import
BarChart
from
"
@/components/e-charts/bar-chart
"
;
import
Graph
from
"
@/components/e-charts/graph
"
;
export
default
{
components
:
{
BlockRadius
,
...
...
@@ -155,6 +164,7 @@ export default {
Starlist
,
lineChart
,
BarChart
,
Graph
},
data
:
()
=>
({
navList
:
[],
...
...
@@ -332,6 +342,23 @@ export default {
unit
:
"
个
"
,
},
],
// 服务评分
graph_arr
:
{
xaxis
:
[
"
01-01
"
,
"
01-02
"
,
"
01-03
"
,
"
01-04
"
,
"
01-05
"
,
"
01-06
"
,
"
01-07
"
,
"
01-08
"
],
data
:
[
[
1010
,
120
,
130
,
520
,
160
,
1120
,
110
,
100
],
[
100
,
1210
,
130
,
1530
,
160
,
120
,
110
,
1200
]
],
legend
:
[
"
aaa1
"
,
"
bbb1
"
]
}
}),
mounted
()
{},
methods
:
{
...
...
@@ -350,6 +377,10 @@ export default {
console
.
log
(
index
);
},
// 服务评价及评分
},
changeServiceCellBtn
(
index
)
{
console
.
log
(
index
);
}
}
};
</
script
>
<
style
scoped
>
...
...
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