mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
dashboard fixes
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
c396ceb27f
commit
6a26fd0bb7
@ -92,13 +92,14 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.chart-card-content {
|
.chart-card-content {
|
||||||
|
margin-top: -42px;
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 46px;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
.content-fix {
|
.content-fix {
|
||||||
position: absolute;
|
position: relative;
|
||||||
left: 0;
|
left: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
&__select {
|
&__select {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0 12px;
|
|
||||||
|
|
||||||
.mobile & {
|
.mobile & {
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
@ -20,7 +19,6 @@
|
|||||||
|
|
||||||
&__button {
|
&__button {
|
||||||
width: auto;
|
width: auto;
|
||||||
padding: 0 12px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&__tile-wrapper:after {
|
&__tile-wrapper:after {
|
||||||
@ -31,6 +29,5 @@
|
|||||||
|
|
||||||
&__alert-wrapper {
|
&__alert-wrapper {
|
||||||
clear: both;
|
clear: both;
|
||||||
padding: 0 12px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="page-header-index-wide">
|
<div class="page-header-index-wide">
|
||||||
<a-row :gutter="24" :style="{ marginTop: '24px' }">
|
<a-row :gutter="24" :style="{ marginTop: '24px' }">
|
||||||
<a-col :sm="24" :md="24" :xl="18" :style="{ marginBottom: '24px' }">
|
<a-col :xl="18">
|
||||||
<div class="ant-pro-capacity-dashboard__wrapper">
|
<div class="ant-pro-capacity-dashboard__wrapper">
|
||||||
<div class="ant-pro-capacity-dashboard__select">
|
<div class="ant-pro-capacity-dashboard__select">
|
||||||
<a-select
|
<a-select
|
||||||
@ -22,16 +22,13 @@
|
|||||||
@click="listCapacity(zoneSelected, true)">Fetch Latest Statistics</a-button>
|
@click="listCapacity(zoneSelected, true)">Fetch Latest Statistics</a-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ant-pro-capacity-dashboard__tile-wrapper">
|
<a-row :gutter="24">
|
||||||
<a-col
|
<a-col
|
||||||
:xs="12"
|
|
||||||
:sm="12"
|
|
||||||
:md="8"
|
|
||||||
:xl="6"
|
:xl="6"
|
||||||
:style="{ marginBottom: '28px' }"
|
:style="{ marginBottom: '24px' }"
|
||||||
v-for="stat in stats"
|
v-for="stat in stats"
|
||||||
:key="stat.type">
|
:key="stat.type">
|
||||||
<chart-card :loading="loading" style="padding-top: 40px">
|
<chart-card :loading="loading">
|
||||||
<div style="text-align: center">
|
<div style="text-align: center">
|
||||||
<h4>{{ stat.name }}</h4>
|
<h4>{{ stat.name }}</h4>
|
||||||
<a-progress type="dashboard" :percent="Number(parseFloat(stat.percentused, 10).toFixed(2))" :width="100" />
|
<a-progress type="dashboard" :percent="Number(parseFloat(stat.percentused, 10).toFixed(2))" :width="100" />
|
||||||
@ -39,32 +36,46 @@
|
|||||||
<template slot="footer"><span>{{ stat.capacityused }} / {{ stat.capacitytotal }}</span></template>
|
<template slot="footer"><span>{{ stat.capacityused }} / {{ stat.capacitytotal }}</span></template>
|
||||||
</chart-card>
|
</chart-card>
|
||||||
</a-col>
|
</a-col>
|
||||||
</div>
|
</a-row>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
||||||
<a-col :xl="6">
|
<a-col :xl="6">
|
||||||
<a-row class="ant-pro-capacity-dashboard__alert-wrapper" :gutter="24">
|
<a-row class="ant-pro-capacity-dashboard__alert-wrapper" :gutter="12">
|
||||||
<a-col :md="8" :xl="24">
|
<a-col :xl="12" :style="{ marginBottom: '24px' }">
|
||||||
<chart-card style="margin-bottom: 24px">
|
<chart-card>
|
||||||
<div style="text-align: center">
|
<div style="text-align: center">
|
||||||
<h4>Alerts</h4>
|
<h4>General Alerts</h4>
|
||||||
<p>Some event data here...</p>
|
<a-button><router-link :to="{ name: 'alert' }"><a-icon type="flag" /></router-link></a-button>
|
||||||
</div>
|
</div>
|
||||||
</chart-card>
|
</chart-card>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="8" :xl="24">
|
<a-col :xl="12" :style="{ marginBottom: '24px' }">
|
||||||
<chart-card style="margin-bottom: 24px">
|
<chart-card>
|
||||||
<div style="text-align: center">
|
<div style="text-align: center">
|
||||||
<h4>Host Alerts</h4>
|
<h4>Hosts in Alert</h4>
|
||||||
<p>Some event data here...</p>
|
<a-button type="danger"><router-link :to="{ name: 'host' }"><a-icon type="desktop" /></router-link></a-button>
|
||||||
</div>
|
</div>
|
||||||
</chart-card>
|
</chart-card>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="8" :xl="24">
|
<a-col :xl="24" :style="{ marginBottom: '24px' }">
|
||||||
<chart-card style="margin-bottom: 24px">
|
<chart-card>
|
||||||
<div style="text-align: center">
|
<div style="text-align: center">
|
||||||
<h4>Events</h4>
|
<a-button size="large"><router-link :to="{ name: 'event' }">View Events</router-link></a-button>
|
||||||
<p>Some event data here...</p>
|
|
||||||
</div>
|
</div>
|
||||||
|
<template slot="footer">
|
||||||
|
<div :style="{ paddingTop: '12px', paddingLeft: '3px' }">
|
||||||
|
<a-timeline pending="Performing tasks...">
|
||||||
|
<a-timeline-item>Some VR stuff...</a-timeline-item>
|
||||||
|
<a-timeline-item color="red">
|
||||||
|
<a-icon slot="dot" type="clock-circle-o" style="font-size: 16px;" />
|
||||||
|
Deploying VM...
|
||||||
|
</a-timeline-item>
|
||||||
|
<a-timeline-item color="green">Some storage stuff...</a-timeline-item>
|
||||||
|
<a-timeline-item color="blue">Some user login...</a-timeline-item>
|
||||||
|
<a-timeline-item color="green">Template OK...</a-timeline-item>
|
||||||
|
</a-timeline>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
</chart-card>
|
</chart-card>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
@ -78,24 +89,12 @@ import { api } from '@/api'
|
|||||||
|
|
||||||
import ChartCard from '@/components/chart/ChartCard'
|
import ChartCard from '@/components/chart/ChartCard'
|
||||||
import ACol from 'ant-design-vue/es/grid/Col'
|
import ACol from 'ant-design-vue/es/grid/Col'
|
||||||
import ATooltip from 'ant-design-vue/es/tooltip/Tooltip'
|
|
||||||
import MiniArea from '@/components/chart/MiniArea'
|
|
||||||
import MiniBar from '@/components/chart/MiniBar'
|
|
||||||
import MiniProgress from '@/components/chart/MiniProgress'
|
|
||||||
import Bar from '@/components/chart/Bar'
|
|
||||||
import Trend from '@/components/Trend'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'CapacityDashboard',
|
name: 'CapacityDashboard',
|
||||||
components: {
|
components: {
|
||||||
ATooltip,
|
|
||||||
ACol,
|
ACol,
|
||||||
ChartCard,
|
ChartCard
|
||||||
MiniArea,
|
|
||||||
MiniBar,
|
|
||||||
MiniProgress,
|
|
||||||
Bar,
|
|
||||||
Trend
|
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
@ -180,12 +179,11 @@ export default {
|
|||||||
|
|
||||||
&__select {
|
&__select {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0 12px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&__button {
|
&__button {
|
||||||
width: auto;
|
width: auto;
|
||||||
padding: 0 12px;
|
padding-left: 12px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user