diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..7c6264f --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,22 @@ +{ + "workbench.colorCustomizations": { + "activityBar.activeBackground": "#1f6fd0", + "activityBar.background": "#1f6fd0", + "activityBar.foreground": "#e7e7e7", + "activityBar.inactiveForeground": "#e7e7e799", + "activityBarBadge.background": "#ee90bb", + "activityBarBadge.foreground": "#15202b", + "commandCenter.border": "#e7e7e799", + "sash.hoverBorder": "#1f6fd0", + "statusBar.background": "#1857a4", + "statusBar.foreground": "#e7e7e7", + "statusBarItem.hoverBackground": "#1f6fd0", + "statusBarItem.remoteBackground": "#1857a4", + "statusBarItem.remoteForeground": "#e7e7e7", + "titleBar.activeBackground": "#1857a4", + "titleBar.activeForeground": "#e7e7e7", + "titleBar.inactiveBackground": "#1857a499", + "titleBar.inactiveForeground": "#e7e7e799" + }, + "peacock.color": "#1857a4" +} diff --git a/css/common.css b/css/common.css index 9a9557e..7afd276 100644 --- a/css/common.css +++ b/css/common.css @@ -1,200 +1,201 @@ -#app{ - box-sizing: border-box; - padding: 12px; - width: 100%; - height: 100%; -} -.content{ - background: #fff; - width: 100%; - height: 100%; - display: flex; - border: 1px solid #e8e8e8; - border-radius: 4px; - position: relative; -} -.context-menu{ -position: absolute; -z-index: 9; -background: #fff; -display: flex; -flex-direction: column; -padding: 4px 6px; -border-radius: 2px; -box-shadow: 0 2px 8px rgba(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%; - border-right: 1px solid #e8e8e8; - 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-selector{ - border-bottom: 1px solid #e8e8e8; - padding: 0 24px 12px 0; - text-align: right; +#app { + box-sizing: border-box; + padding: 12px; + width: 100%; + height: 100%; +} +.content { + background: #fff; + width: 100%; + height: 100%; + display: flex; + border: 1px solid #e8e8e8; + border-radius: 4px; + position: relative; +} +.context-menu { + position: absolute; + z-index: 9; + background: #fff; + display: flex; + flex-direction: column; + padding: 4px 6px; + 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%; + border-right: 1px solid #e8e8e8; + 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-selector { + border-bottom: 1px solid #e8e8e8; + padding: 0 24px 12px 0; + text-align: right; } .top-selector .custom-date-picker { - width: 360px !important; -} -.trend-graph-container{ - flex: 1; - min-height: 0; - overflow-y: auto; - overflow-x: hidden; -} -.trend-graph-container .trend-item{ -border-bottom: 1px dashed #e8e8e8; -height: 240px; -display: flex; -flex-direction: column; -} -.trend-graph-container .trend-item .title{ - padding: 12px 0 0 12px; - font-size: 14px; - font-weight: 700; -} -.trend-graph-container .trend-item .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; /* 避免影响垂直间距 */ + width: 360px !important; +} +.trend-graph-container { + flex: 1; + min-height: 0; + overflow-y: auto; + overflow-x: hidden; +} +.trend-graph-container .trend-item { + border-bottom: 1px dashed #e8e8e8; + height: 240px; + display: flex; + flex-direction: column; +} +.trend-graph-container .trend-item .title { + padding: 12px 0 0 12px; + font-size: 14px; + font-weight: 700; +} +.trend-graph-container .trend-item .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; /* 避免影响垂直间距 */ } -.config-page{ - padding: 0 24px; +.config-page { + padding: 0 24px; } -.config-page .station-config{ - padding-bottom: 12px; - border-bottom: 1px dashed #e8e8e8; +.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; +.config-page .station-config .title, +.config-page .path-config .title { + font-size: 14px; + font-weight: 700; } -.path-config{ - margin-top: 12px; +.path-config { + margin-top: 12px; } -.config-page .path-config .path-item{ - 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 .name { + font-size: 14px; } -.config-page .path-config .path-item .row{ - margin: 4px 0; +.config-page .path-config .path-item .row { + margin: 4px 0; } -.config-page .station-config .station{ - margin-top: 12px; +.config-page .station-config .station { + margin-top: 12px; } -.config-page .delete-bar{ - margin-top: 12px; +.config-page .delete-bar { + margin-top: 12px; } -.config-page .delete-bar .delete-time{ - margin-right: 12px; +.config-page .delete-bar .delete-time { + margin-right: 12px; } -.config-page .delete-bar .label{ - margin-right: 8px; +.config-page .delete-bar .label { + margin-right: 8px; +} +.is-root > .el-tree-node__content { + background-color: transparent !important; + color: inherit !important; } -.is-root > .el-tree-node__content { - background-color: transparent!important; - color: inherit!important; - } .total-prpd, -.prpd-and-prps{ - display: flex; - flex-direction: column; +.prpd-and-prps { + display: flex; + flex-direction: column; } .total-prpd .trend-box, -.prpd-and-prps .trend-box{ -height: 180px; -border-bottom: 1px solid #e8e8e8; +.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; - display: grid; - 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; -} \ No newline at end of file +.prpd-and-prps .prpd-and-prps-box { + flex: 1; + min-height: 0; + display: grid; + 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; +} diff --git a/index.html b/index.html index 6aba5e4..377f223 100644 --- a/index.html +++ b/index.html @@ -69,8 +69,7 @@
+ start-placeholder="开始日期" end-placeholder="结束日期" />
@@ -81,6 +80,7 @@
+