From 07b402552ae316f022c046bd3f37fefef3cc759e Mon Sep 17 00:00:00 2001 From: guoyixuan Date: Fri, 25 Jul 2025 16:19:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=B7=A5=E5=85=B7=E7=BB=86=E8=8A=82?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/common.css | 2 +- index.html | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/css/common.css b/css/common.css index 9f6d47d..e552bf2 100644 --- a/css/common.css +++ b/css/common.css @@ -1,6 +1,6 @@ /* 整个滚动条的区域 */ ::-webkit-scrollbar { - width: 10px; /* 滚动条的宽度 */ + width: 5px; /* 滚动条的宽度 */ height: 10px; /* 滚动条的高度,用于水平滚动条 */ } diff --git a/index.html b/index.html index 855a3b2..7562722 100644 --- a/index.html +++ b/index.html @@ -465,6 +465,7 @@ {{ item.label }} + 框选时间段:{{lastBrushSelected?.minX}} ~ {{lastBrushSelected?.maxX}}
@@ -663,6 +664,8 @@ coordRange: [0, index] // 设置刷选区域的坐标范围(类目轴是索引) }] }); + // 更新上次的选中状态 + this.lastBrushSelected = { minX: xAxisData[0], maxX: xAxisData[index] }; this.$emit('getEventList', { startTime: xAxisData[0], endTime: xAxisData[index] }) }, // 双击跳转 @@ -921,7 +924,7 @@ { name: 'PRPD数据', type: 'scatter', // 使用折线图来模拟曲线 - symbolSize: 1, + symbolSize: 1.5, data: [], }, ] @@ -949,7 +952,7 @@ series: [{ name: 'PRPD数据', data: [], - symbolSize: 1, + symbolSize: 1.5, }], }, { notMerge: false }); }).finally(() => { @@ -963,7 +966,7 @@ series: [{ name: 'PRPD数据', data: result, - symbolSize: 1, + symbolSize: 1.5, }], visualMap: { min: minCount, @@ -1692,8 +1695,13 @@ const jumpToPRPD = (key) => { activeKey.value = 'prpdAndPrps' selectedKey.value = key + // 是否当前点击key存在 const isExist = unref(totalPrpds).some(item => item.monitorKey === key) if (isExist) return + unref(totalPrpds).forEach(item => { + item.monitorKey = '' + item.monitorName = '' + }) const addItem = unref(totalPrpds).find(item => !item.monitorKey) addItem.monitorKey = key addItem.monitorName = findMonitorNameByKey(unref(fullTreeData), key)