|
@@ -20,7 +20,7 @@ import StationRightButtonGroup from '@/components/StationRightButtonGroup.vue'
|
|
|
import {useStationStore} from '@/stores/station'
|
|
|
import {jumpPage} from '@/utils'
|
|
|
import bus from "@/utils/bus";
|
|
|
-
|
|
|
+import moment from 'moment';
|
|
|
const route = useRoute()
|
|
|
const store = useStationStore()
|
|
|
const dibaImage = (new URL('@/assets/images/dike.png', import.meta.url).href)
|
|
@@ -70,7 +70,11 @@ async function reloadLeft2() {
|
|
|
}
|
|
|
},
|
|
|
axisLabel: { // 坐标轴刻度标签的相关设置
|
|
|
- color: '#02cacf'
|
|
|
+ color: '#02cacf',
|
|
|
+ formatter: function (value) {
|
|
|
+ // 使用 moment.js 进行时间格式化
|
|
|
+ return moment(value).format('HH:mm');
|
|
|
+ }
|
|
|
},
|
|
|
axisTick: {show: false},
|
|
|
data: flowData.map(item => item.tm ? item.tm.substring(11, 16) + '\n' + item.tm.substring(5, 10) : '')
|