From 494b5cba69539839edfd07cbcf36eacb31c2b13b Mon Sep 17 00:00:00 2001 From: guoyixuan Date: Tue, 22 Jul 2025 10:33:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=B4=AF=E8=AE=A1prpd=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/common.css | 152 +++- index copy.html | 1827 ----------------------------------------------- index.html | 487 +++++++++---- 3 files changed, 478 insertions(+), 1988 deletions(-) delete mode 100644 index copy.html diff --git a/css/common.css b/css/common.css index c153d3b..7d37f6b 100644 --- a/css/common.css +++ b/css/common.css @@ -1,9 +1,42 @@ +/* 整个滚动条的区域 */ +::-webkit-scrollbar { + width: 10px; /* 滚动条的宽度 */ + height: 10px; /* 滚动条的高度,用于水平滚动条 */ +} + +/* 滚动条的轨道(背景) */ +::-webkit-scrollbar-track { + background: #f1f1f1; /* 轨道背景色 */ + border-radius: 10px; /* 轨道圆角 */ +} + +/* 滚动条的滑块 */ +::-webkit-scrollbar-thumb { + background: #888; /* 滑块颜色 */ + border-radius: 10px; /* 滑块圆角 */ +} + +/* 鼠标悬停在滑块上时 */ +::-webkit-scrollbar-thumb:hover { + background: #555; /* 悬停时的滑块颜色 */ +} + +/* 滚动条的角落(当同时有垂直和水平滚动条时) */ +::-webkit-scrollbar-corner { + background: #fff; +} + +/* 滚动条两端的按钮(很少用到,默认通常是隐藏的) */ +/* ::-webkit-scrollbar-button { + background: #eee; +} */ #app { box-sizing: border-box; padding: 12px; width: 100%; height: 100%; } + .content { background: #fff; width: 100%; @@ -13,6 +46,7 @@ border-radius: 4px; position: relative; } + .context-menu { position: absolute; z-index: 9; @@ -23,14 +57,17 @@ border-radius: 2px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); } + .context-menu > div { cursor: pointer; font-size: 14px; line-height: 22px; } + .context-menu > div:hover { background-color: #f5f5f5; } + .tree-content { padding: 12px 0; width: 20%; @@ -38,52 +75,64 @@ display: flex; flex-direction: column; } + .input-box { padding: 0 8px; } + .tree-box { flex: 1; min-height: 0; overflow-y: auto; } + .ant-tree-child-tree li .ant-tree-switcher { visibility: hidden; } + .bottom-btns { padding: 8px 8px 0 8px; display: flex; justify-content: center; } + .right-content { flex: 1; min-width: 0; display: flex; flex-direction: column; } + .panel-views { flex: 1; min-height: 0; } + .sub-content { height: 100%; width: 100%; } + .history-trend { display: flex; flex-direction: column; } + .top-timer { padding-bottom: 18px; } + .top-timer .custom-date-picker { width: 280px !important; } + .trend-graph-container { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; } + .graph-container { height: 240px; border-bottom: 1px dashed #e8e8e8; @@ -91,52 +140,66 @@ display: flex; flex-direction: column; } + .graph-container .line-graph { flex: 1; min-height: 0; } + .alarm-config .grid-content { padding: 0 24px; } + .alarm-config .search-bar { padding: 0 24px 0 24px; display: flex; align-items: center; flex-wrap: wrap; } + .alarm-config .search-bar .search-item { margin-right: 24px; margin-bottom: 12px; } + .alarm-config .search-bar .break { flex-basis: 100%; - height: 0; /* 避免影响垂直间距 */ + height: 0; + /* 避免影响垂直间距 */ } .config-page { - padding: 0 24px; + padding: 0 24px 24px 24px; + overflow-y: auto; } + .config-page .station-config { padding-bottom: 12px; border-bottom: 1px dashed #e8e8e8; } + .config-page .station-config .title, .config-page .path-config .title { font-size: 14px; font-weight: 700; } + .path-config { margin-top: 12px; } + .config-page .path-config .path-item { margin-top: 12px; } + .config-page .path-config .path-item .name { font-size: 14px; } + .config-page .path-config .path-item .row { margin: 4px 0; } + .config-page .station-config .station { margin-top: 12px; } @@ -144,27 +207,30 @@ .config-page .delete-bar { margin-top: 12px; } + .config-page .delete-bar .delete-time { margin-right: 12px; } + .config-page .delete-bar .label { margin-right: 8px; } + .is-root > .el-tree-node__content { background-color: transparent !important; color: inherit !important; } -.total-prpd, + .prpd-and-prps { display: flex; flex-direction: column; } -.total-prpd .trend-box, + .prpd-and-prps .trend-box { height: 180px; border-bottom: 1px solid #e8e8e8; } -.total-prpd .prpd-box, + .prpd-and-prps .prpd-and-prps-box { flex: 1; min-height: 0; @@ -172,40 +238,114 @@ grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); } -.total-prpd .prpd-box .total-prpd-item, + .prpd-and-prps .prpd-and-prps-box .prpd-and-prps-item { border: 1px solid #e8e8e8; } + .prps-and-prpd-container { height: 100%; width: 100%; position: relative; } + .prps-and-prpd-container .switcher { position: absolute; bottom: 0; } + .prps-and-prpd-container .switcher > span { cursor: pointer; font-size: 12px; margin-left: 8px; } + .prps-and-prpd-container .switcher .active-span { color: #1890ff; } + .init-warning-tips { font-size: 12px; color: red; } + .event-count-box { height: 100%; width: 100%; display: flex; flex-direction: column; } +.event-count-box .pd-type-grid { + padding: 24px 12px; +} .top-box { display: flex; align-items: center; justify-content: space-between; padding-right: 8px; } + +.total-prpd-panel { + display: flex; + flex-direction: column; +} +.total-prpd-panel .prpd-box { + flex: 1; + min-height: 0; + display: flex; +} +.total-prpd-panel .prpd-box .time-sider { + padding: 8px 0 0 8px; + width: 20%; + display: flex; + flex-direction: column; +} +.total-prpd-panel .prpd-box .time-sider .title { + font-size: 14px; + font-weight: 700; + height: 24px; +} +.total-prpd-panel .prpd-box .time-sider .list { + flex: 1; + min-height: 0; + overflow-y: auto; + font-size: 12px; +} +.total-prpd-panel .prpd-box .time-sider .list .time-item { + cursor: pointer; + padding: 2px 4px; +} +.total-prpd-panel .prpd-box .time-sider .list .time-item:hover { + background-color: #e6f2ff; /* 背景变浅蓝 */ + transform: translateY(-3px); /* 向上轻微浮动 */ + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 阴影加深 */ +} +.total-prpd-panel .prpd-box .time-sider .list .time-active-item { + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 阴影加深 */ + color: #1890ff; + font-weight: 700; +} +.total-prpd-panel .prpd-box .totle-prpds { + flex: 1; + min-width: 0; + display: grid; + grid-template-columns: repeat(3, 1fr); + grid-template-rows: repeat(2, 1fr); +} +.total-prpd-panel .prpd-box .totle-prpds .total-prpd-item { + border: 1px solid #e8e8e8; + width: 100%; + height: 100%; + display: flex; + flex-direction: column; +} +.total-prpd-panel .prpd-box .totle-prpds .total-prpd-item .total-prpd-title { + padding-left: 12px; + height: 24px; + line-height: 24px; + font-size: 14px; + font-weight: 700; +} +.total-prpd-panel .prpd-box .totle-prpds .total-prpd-item .prpd { + flex: 1; +} diff --git a/index copy.html b/index copy.html deleted file mode 100644 index 63e5dbb..0000000 --- a/index copy.html +++ /dev/null @@ -1,1827 +0,0 @@ - - - - - - - tool - - - - - - - - - - - - - - - - - - - -
-
- -
-
新增监测点
-
编辑
- -
删除
-
-
-
-
- - -
-
- -
-
- 导入监测点 - 新增站点 -
-
-
- - - - -
-
- -
- -
-
-
-
- 监测点:{{ item.id }} -
-
-
-
-
-
- - -
- - - - -
-
-
- -
-
- - -
-
-
- -
-
- -
-
-
- - 事件统计 -
-
- -
-
站点告警配置
-
- 站点: - - - {{ item.stationName }} - - -
-
- - 清除告警时间段: - - - - 删除 - -
- - 导入告警 - -
-
-
路径配置
-
-
{{item.label}} :
-
- -
- 保存 - 重置 -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - \ No newline at end of file diff --git a/index.html b/index.html index d419c1a..2ab7f67 100644 --- a/index.html +++ b/index.html @@ -19,7 +19,6 @@ -