列车曲线图调整
This commit is contained in:
parent
bdbc96d3bc
commit
26754f054f
@ -22,6 +22,7 @@ import { useLineStore } from 'src/stores/line-store';
|
||||
import DraggableDialog from 'src/components/common/DraggableDialog.vue';
|
||||
import * as echarts from 'echarts';
|
||||
import 'default-passive-events';
|
||||
import { date } from 'quasar';
|
||||
|
||||
const lineStore = useLineStore();
|
||||
|
||||
@ -106,7 +107,10 @@ function initEcharts() {
|
||||
trigger: 'axis',
|
||||
// eslint-disable-next-line
|
||||
formatter: function (params: any) {
|
||||
let title = params[0].axisValueLabel;
|
||||
const title = date.formatDate(
|
||||
params[0].value[0],
|
||||
'YYYY-MM-DD HH:mm:ss.SSS'
|
||||
);
|
||||
let result = `<div
|
||||
style="height:100%;
|
||||
min-height:${30 + 28 * params.length}px;
|
||||
|
Loading…
Reference in New Issue
Block a user