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
b6925bb8
Commit
b6925bb8
authored
Aug 26, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
超管运行管控
parent
5f3abebc
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
307 additions
and
62 deletions
+307
-62
src/components/apass-table.vue
src/components/apass-table.vue
+23
-5
src/components/e-charts/bar-chart-two.vue
src/components/e-charts/bar-chart-two.vue
+29
-19
src/pages/authority/organization/organizationdetail.vue
src/pages/authority/organization/organizationdetail.vue
+12
-1
src/pages/data-analysis/my-service.vue
src/pages/data-analysis/my-service.vue
+3
-1
src/pages/data-analysis/org-overview.vue
src/pages/data-analysis/org-overview.vue
+6
-3
src/pages/data-analysis/super-overview.vue
src/pages/data-analysis/super-overview.vue
+234
-33
No files found.
src/components/apass-table.vue
View file @
b6925bb8
...
@@ -132,9 +132,9 @@
...
@@ -132,9 +132,9 @@
:styles=
"item.prop == 'cpu' ? spCurveStyles2 : spCurveStyles3"
:styles=
"item.prop == 'cpu' ? spCurveStyles2 : spCurveStyles3"
/>
/>
</sparkline>
</sparkline>
<span
class=
"use"
v-if=
"item.prop == 'cpu' && scope.row.cpu_use"
<span
class=
"use"
v-if=
"item.prop == 'cpu' && scope.row.cpu_use"
>
>
{{ scope.row["cpu_use"] }}.00mm
</span
{{ scope.row["cpu_use"] }}.00mm
>
</span
>
<span
<span
class=
"use"
class=
"use"
:style=
"
:style=
"
...
@@ -143,13 +143,15 @@
...
@@ -143,13 +143,15 @@
: { right: '25px', bottom: '8px' }
: { right: '25px', bottom: '8px' }
"
"
v-if=
"item.prop == 'cpu' && !scope.row.cpu_use"
v-if=
"item.prop == 'cpu' && !scope.row.cpu_use"
>
0mm
</span
>
>
0mm
</span>
<span
<span
class=
"use"
class=
"use"
v-if=
"item.prop == 'mermoy' && scope.row.memory_use"
v-if=
"item.prop == 'mermoy' && scope.row.memory_use"
>
{{ (scope.row["memory_use"]/1024/1024).toFixed(2)}}Mi
</span
>
>
{{ (scope.row["memory_use"] / 1024 / 1024).toFixed(2) }}Mi
</span>
<span
<span
class=
"use"
class=
"use"
:style=
"
:style=
"
...
@@ -208,6 +210,12 @@
...
@@ -208,6 +210,12 @@
:class=
"'index_' + scope.row.hotIndex"
:class=
"'index_' + scope.row.hotIndex"
v-text=
"'TOP' + scope.row.hotIndex"
v-text=
"'TOP' + scope.row.hotIndex"
></span>
></span>
<span
v-else-if=
"item.type === 'hot-index-2'"
class=
"hot_index"
:class=
"'index_' + scope.row.hotIndex"
v-text=
"scope.row.hotIndex + '.'"
></span>
<span
class=
"sort_table"
v-else-if=
"item.sortable"
>
<span
class=
"sort_table"
v-else-if=
"item.sortable"
>
<span>
{{ getPercent(scope.row[item.prop]) }}
</span>
<span>
{{ getPercent(scope.row[item.prop]) }}
</span>
<span>
<span>
...
@@ -218,6 +226,16 @@
...
@@ -218,6 +226,16 @@
<img
v-else
:src=
"require('../assets/imgs/icon_down.png')"
/>
<img
v-else
:src=
"require('../assets/imgs/icon_down.png')"
/>
</span>
</span>
</span>
</span>
<span
class=
"sort_table"
v-else-if=
"item.sortIcon"
>
<span>
{{ scope.row[item.prop] + "%" }}
</span>
<span>
<img
v-if=
"scope.row[item.prop] > 0"
:src=
"require('../assets/imgs/icon_up.png')"
/>
<img
v-else
:src=
"require('../assets/imgs/icon_down.png')"
/>
</span>
</span>
<span
<span
v-else-if=
"item.type === 'selected-icon'"
v-else-if=
"item.type === 'selected-icon'"
class=
"selected_icon"
class=
"selected_icon"
...
...
src/components/e-charts/bar-chart-two.vue
View file @
b6925bb8
...
@@ -36,12 +36,16 @@ export default {
...
@@ -36,12 +36,16 @@ export default {
type
:
Number
,
type
:
Number
,
default
:
0
,
default
:
0
,
},
},
xAxis_text_length
:
{
type
:
Number
,
default
:
0
,
},
},
},
methods
:
{
methods
:
{
bar
()
{
bar
()
{
let
_
self
=
this
;
let
self
=
this
;
let
xAxis
=
(
_self
.
data
&&
_
self
.
data
.
xAxis
)
||
[];
let
xAxis
=
(
self
.
data
&&
self
.
data
.
xAxis
)
||
[];
let
series
=
(
_self
.
data
&&
_
self
.
data
.
series
)
||
[{},
{}];
let
series
=
(
self
.
data
&&
self
.
data
.
series
)
||
[{},
{}];
return
{
return
{
grid
:
{
grid
:
{
...
@@ -71,16 +75,22 @@ export default {
...
@@ -71,16 +75,22 @@ export default {
fontSize
:
12
,
fontSize
:
12
,
},
},
interval
:
0
,
interval
:
0
,
rotate
:
_self
.
x_router
,
rotate
:
self
.
x_router
,
/* formatter: function(value) {
formatter
:
function
(
value
)
{
let valueTxt = "";
let
maxLen
=
self
.
xAxis_text_length
;
if (value.length > 6) {
valueTxt = value.substring(0, 5) + "...";
if
(
maxLen
>
1
)
{
let
valueTxt
=
""
;
if
(
value
.
length
>
maxLen
)
{
valueTxt
=
value
.
substring
(
0
,
maxLen
-
1
)
+
"
...
"
;
}
else
{
valueTxt
=
value
;
}
return
valueTxt
;
}
else
{
}
else
{
valueTxt =
value;
return
value
;
}
}
return valueTxt;
},
}, */
},
},
axisLine
:
{
axisLine
:
{
lineStyle
:
{
lineStyle
:
{
...
@@ -132,7 +142,7 @@ export default {
...
@@ -132,7 +142,7 @@ export default {
{
{
type
:
"
bar
"
,
type
:
"
bar
"
,
type
:
"
bar
"
,
type
:
"
bar
"
,
barWidth
:
_
self
.
bar_width
,
barWidth
:
self
.
bar_width
,
itemStyle
:
{
itemStyle
:
{
normal
:
{
normal
:
{
color
:
function
(
params
)
{
color
:
function
(
params
)
{
...
@@ -144,17 +154,17 @@ export default {
...
@@ -144,17 +154,17 @@ export default {
[
[
{
{
offset
:
0
,
offset
:
0
,
color
:
_
self
.
colors
[
0
],
// 0% 处的颜色
color
:
self
.
colors
[
0
],
// 0% 处的颜色
},
},
{
{
offset
:
1
,
offset
:
1
,
color
:
_
self
.
colors
[
0
],
// 100% 处的颜色
color
:
self
.
colors
[
0
],
// 100% 处的颜色
},
},
],
],
false
false
);
);
},
},
barBorderRadius
:
_
self
.
bar_border_radius
,
barBorderRadius
:
self
.
bar_border_radius
,
},
},
},
},
name
:
series
[
0
].
name
,
name
:
series
[
0
].
name
,
...
@@ -163,7 +173,7 @@ export default {
...
@@ -163,7 +173,7 @@ export default {
{
{
type
:
"
bar
"
,
type
:
"
bar
"
,
type
:
"
bar
"
,
type
:
"
bar
"
,
barWidth
:
_
self
.
bar_width
,
barWidth
:
self
.
bar_width
,
itemStyle
:
{
itemStyle
:
{
normal
:
{
normal
:
{
color
:
function
(
params
)
{
color
:
function
(
params
)
{
...
@@ -175,17 +185,17 @@ export default {
...
@@ -175,17 +185,17 @@ export default {
[
[
{
{
offset
:
0
,
offset
:
0
,
color
:
_
self
.
colors
[
1
],
// 0% 处的颜色
color
:
self
.
colors
[
1
],
// 0% 处的颜色
},
},
{
{
offset
:
1
,
offset
:
1
,
color
:
_
self
.
colors
[
1
],
// 100% 处的颜色
color
:
self
.
colors
[
1
],
// 100% 处的颜色
},
},
],
],
false
false
);
);
},
},
barBorderRadius
:
_
self
.
bar_border_radius
,
barBorderRadius
:
self
.
bar_border_radius
,
},
},
},
},
name
:
series
[
1
].
name
,
name
:
series
[
1
].
name
,
...
...
src/pages/authority/organization/organizationdetail.vue
View file @
b6925bb8
...
@@ -317,9 +317,14 @@ export default {
...
@@ -317,9 +317,14 @@ export default {
color
:
#242c43
;
color
:
#242c43
;
}
}
.organtable
{
.organtable
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
flex-start
;
align-items
:
stretch
;
margin-top
:
20px
;
margin-top
:
20px
;
margin-bottom
:
40px
;
width
:
100%
;
width
:
100%
;
height
:
calc
(
100%
-
21
0px
);
min-height
:
calc
(
100%
-
25
0px
);
background-color
:
#fff
;
background-color
:
#fff
;
box-shadow
:
0px
3px
6px
0px
#f4f7fc
;
box-shadow
:
0px
3px
6px
0px
#f4f7fc
;
border-radius
:
12px
;
border-radius
:
12px
;
...
@@ -345,4 +350,10 @@ export default {
...
@@ -345,4 +350,10 @@ export default {
.organtable
.elinput
{
.organtable
.elinput
{
float
:
right
;
float
:
right
;
}
}
.organtable
.apass_table
{
flex-grow
:
1
;
}
.organtable
.comments_pagination
{
margin-top
:
20px
;
}
</
style
>
</
style
>
src/pages/data-analysis/my-service.vue
View file @
b6925bb8
...
@@ -814,8 +814,10 @@ export default {
...
@@ -814,8 +814,10 @@ export default {
<
style
>
<
style
>
.hot-search-table
.el-table
td
,
.hot-search-table
.el-table
td
,
.hot-search-table
.el-table
th
{
.hot-search-table
.el-table
th
,
.hot-search-table
.el-table
.row_action
.btn
{
padding
:
6px
0
;
padding
:
6px
0
;
font-size
:
12px
;
}
}
.hot-search-table
.el-table
div
.row_action
{
.hot-search-table
.el-table
div
.row_action
{
overflow
:
hidden
;
overflow
:
hidden
;
...
...
src/pages/data-analysis/org-overview.vue
View file @
b6925bb8
...
@@ -73,7 +73,10 @@
...
@@ -73,7 +73,10 @@
title=
"服务注册发布数量排名"
title=
"服务注册发布数量排名"
class=
"block"
class=
"block"
>
>
<bar-charttwo
:data=
"servRegRank"
></bar-charttwo>
<bar-chart-two
:data=
"servRegRank"
:xAxis_text_length=
"5"
></bar-chart-two>
</block-radius>
</block-radius>
</el-col>
</el-col>
<el-col
:span=
"24"
class=
"in_block"
>
<el-col
:span=
"24"
class=
"in_block"
>
...
@@ -145,7 +148,7 @@
...
@@ -145,7 +148,7 @@
<
script
>
<
script
>
import
BlockRadius
from
"
@/components/general/block-radius
"
;
import
BlockRadius
from
"
@/components/general/block-radius
"
;
import
lineChart
from
"
@/components/e-charts/line_chart
"
;
import
lineChart
from
"
@/components/e-charts/line_chart
"
;
import
BarChart
t
wo
from
"
@/components/e-charts/bar-chart-two
"
;
import
BarChart
T
wo
from
"
@/components/e-charts/bar-chart-two
"
;
import
BarChart
from
"
@/components/e-charts/bar-chart
"
;
import
BarChart
from
"
@/components/e-charts/bar-chart
"
;
import
Toplist
from
"
@/components/e-charts/toplist
"
;
import
Toplist
from
"
@/components/e-charts/toplist
"
;
import
theList
from
"
@/components/e-charts/the-list
"
;
import
theList
from
"
@/components/e-charts/the-list
"
;
...
@@ -154,7 +157,7 @@ export default {
...
@@ -154,7 +157,7 @@ export default {
components
:
{
components
:
{
BlockRadius
,
BlockRadius
,
lineChart
,
lineChart
,
BarChart
t
wo
,
BarChart
T
wo
,
BarChart
,
BarChart
,
Toplist
,
Toplist
,
theList
,
theList
,
...
...
src/pages/data-analysis/super-overview.vue
View file @
b6925bb8
This diff is collapsed.
Click to expand it.
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