功能变化(服务监控): 折线图中时间修复,y轴显示内容调整;
parent
2efe41347b
commit
b3b2d93bad
|
@ -26,7 +26,7 @@ import { getMonitorLogs } from '@/api/vadmin/monitor/server'
|
||||||
const MONTH = moment().month()
|
const MONTH = moment().month()
|
||||||
const YEAR = moment().year()
|
const YEAR = moment().year()
|
||||||
const TODAY = moment().format('YYYY-MM-DD')
|
const TODAY = moment().format('YYYY-MM-DD')
|
||||||
const YESTERDAY = moment().subtract(7, 'days').format('YYYY-MM-DD')
|
const YESTERDAY = moment().subtract(1, 'days').format('YYYY-MM-DD')
|
||||||
const LAST_SEVEN_DAYS = moment().subtract(7, 'days').format('YYYY-MM-DD')
|
const LAST_SEVEN_DAYS = moment().subtract(7, 'days').format('YYYY-MM-DD')
|
||||||
const LAST_THIRTY_DAYS = moment().subtract(30, 'days').format('YYYY-MM-DD')
|
const LAST_THIRTY_DAYS = moment().subtract(30, 'days').format('YYYY-MM-DD')
|
||||||
|
|
||||||
|
@ -129,10 +129,8 @@ export default {
|
||||||
containLabel: true
|
containLabel: true
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
type: 'category',
|
type: 'value',
|
||||||
name: '百分比',
|
name: '使用率',
|
||||||
splitLine: { show: true },
|
|
||||||
data: ['10%', '20%', '30%', '40%', '50%', '60%', '70%', '80%', '90%', '100%']
|
|
||||||
},
|
},
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue