feat:dashboard、endpoint 图表添加时区转换,添加assetPingSwitch、系统设置调整

This commit is contained in:
wangwenrui
2020-04-09 16:14:32 +08:00
parent e53c5b8217
commit f56dec7a01
13 changed files with 77 additions and 20 deletions

View File

@@ -1,5 +1,6 @@
<script>
import chartDataFormat from "../../../charts/chartDataFormat";
import bus from '../../../../libs/bus';
const commonOption={
title:{
show:false,
@@ -40,6 +41,7 @@
intervale: 0,
rotate: 0,
formatter: function (value) {
value=bus.computeTimezone(value)
var t_date = new Date(value);
return [t_date.getFullYear(), t_date.getMonth() + 1, t_date.getDate()].join('-') + "\n"
+ [t_date.getHours(), t_date.getMinutes()].join(':');