NEZ-1688 fix:选择图表显示单位时,选择时间单位显示格式出错
This commit is contained in:
@@ -82,7 +82,7 @@ export default {
|
||||
chartOption.yAxis.axisLabel.formatter = this.yAxisLabelFormatter(minValue, maxValue, copies, unit, dot)
|
||||
chartOption.yAxis.minInterval = chartDataFormat.Interval(maxValue, copies, unit.type, 'min')
|
||||
chartOption.yAxis.maxInterval = chartDataFormat.Interval(maxValue, copies, unit.type, 'max') * Math.ceil(chartOption.series.length / 5)
|
||||
if (unit.type = 'Time') {
|
||||
if (unit.type === 'Time') {
|
||||
delete chartOption.yAxis.minInterval
|
||||
delete chartOption.yAxis.maxInterval
|
||||
}
|
||||
|
||||
@@ -421,7 +421,7 @@ function timeFormat34 (value) {
|
||||
return bus.timeFormate(parseInt(value), 'YYYY-MM-DD HH:mm:ss')
|
||||
}
|
||||
function timeFormat35 (value) {
|
||||
return bus.timeFormate(parseInt(value), 'MM/dd/yyyy h:mm:ss a')
|
||||
return bus.timeFormate(parseInt(value), 'MM/DD/yyyy h:mm:ss A')
|
||||
}
|
||||
// unit转化配置信息
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user