From 0403491b1616d47602fdee6c6bc2644036a8e82b Mon Sep 17 00:00:00 2001
From: zxyroyy <1442470094@qq.com>
Date: Thu, 25 Jun 2026 22:07:39 +0800
Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=B8=80=E6=AD=A5=EF=BC=9A=E5=B0=86?=
=?UTF-8?q?=E5=88=97=E8=A1=A8=E6=95=B0=E6=8D=AE=E5=85=A8=E9=83=A8=E6=98=BE?=
=?UTF-8?q?=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../DisasterChainPointComponent.vue | 31 +++++++++-
.../function-child/AroundAnalysis.vue | 10 +---
src/hooks/useDisasterChainTable.ts | 12 ++++
src/hooks/usePointsHandle.ts | 2 +-
src/types/base/Point.ts | 4 ++
src/views/home/rainstorm/RainstormView.vue | 56 ++++++++++++++++++-
6 files changed, 101 insertions(+), 14 deletions(-)
diff --git a/src/component/rain-earthquake/DisasterChainPointComponent.vue b/src/component/rain-earthquake/DisasterChainPointComponent.vue
index 8b7b2bc..9fbad9c 100644
--- a/src/component/rain-earthquake/DisasterChainPointComponent.vue
+++ b/src/component/rain-earthquake/DisasterChainPointComponent.vue
@@ -39,7 +39,7 @@
{
+ const start = (props.pageOption.currentPage - 1) * props.pageOption.pageSize;
+ const end = start + props.pageOption.pageSize;
+ return props.tableDataList.slice(start, end);
+ });
+
// 是否显示分页
const showPagination = computed(() => props.pageOption.totalPage !== 0);
@@ -216,7 +223,10 @@
:deep(.el-select__selected-item) {
color: white;
}
-
+ /* 减小表格行的上下间距 */
+ :deep(.el-table .el-table__cell) {
+ padding: 6px 0;
+ }
:deep(.el-table--border th) {
background: linear-gradient(
180deg,
@@ -227,7 +237,7 @@
border: 1px solid rgba(255, 255, 255, 0.3);
padding: 10px 12px;
text-align: center;
- font-size: 14px;
+ font-size: 15px;
font-weight: bold;
}
:deep(.el-table tr),
@@ -267,4 +277,19 @@
cursor: pointer;
transition: background-color 0.3s ease;
}
+ /* 名称列样式:一行显示,超出隐藏 */
+ :deep(.el-table .el-table__row td:first-child .cell) {
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ cursor: pointer;
+ }
+
+ /* 鼠标悬浮时显示完整名称 */
+ :deep(.el-table .el-table__row td:first-child:hover .cell) {
+ white-space: normal;
+ overflow: visible;
+ text-overflow: unset;
+ word-break: break-all;
+ }
diff --git a/src/component/rain-earthquake/function-child/AroundAnalysis.vue b/src/component/rain-earthquake/function-child/AroundAnalysis.vue
index 9ec1191..df095fd 100644
--- a/src/component/rain-earthquake/function-child/AroundAnalysis.vue
+++ b/src/component/rain-earthquake/function-child/AroundAnalysis.vue
@@ -34,20 +34,16 @@
+
\ No newline at end of file