This commit is contained in:
qumeng039@126.com 2025-08-26 17:49:15 +08:00
parent 3b024cb6cd
commit ede1aec0b0
2 changed files with 6 additions and 4 deletions

View File

@ -175,11 +175,9 @@ const initChart = async () => {
//
chart.on("mouseover", function (params) {
if (!params.data) return
//
if (userSelectedNodeIndex.value !== null && params.dataIndex === userSelectedNodeIndex.value) {
if (userSelectedNodeIndex.value !== null && params.dataIndex === userSelectedNodeIndex.value)
return
}
if (params.dataType === "node") {
//

View File

@ -35,13 +35,17 @@ const props = defineProps({
}
})
const anchorMonitorList = ref(props.anchorMonitorList)
const sortAnchorMonitorListByTime = (anchorMonitorList) => {
return anchorMonitorList.sort((a, b) => {
//
return new Date(a.time.trim()) - new Date(b.time.trim())
})
}
props.anchorMonitorList = sortAnchorMonitorListByTime(props.anchorMonitorList)
anchorMonitorList.value = sortAnchorMonitorListByTime(anchorMonitorList.value)
const startAutoScroll = () => {
if (!monitorListRef.value) return
scrollTimer = setInterval(() => {