-
-
储罐液化装置区
-
R值: 1765
-
编号:XXXXXXXX
-
-
-
-
-
+
+
+
烟雾探测器电池低电量
+
1号楼5层 丨 1小时前
+
+
-
-
-
-
-
储罐液化装置区
-
R值: 1765
-
编号:XXXXXXXX
-
-
-
-
-
+
+
+
消防栓维护到期
+
3号楼1层 丨 2小时前
+
+
+
+
+
+
应急照明故障
+
地下停车场 丨 3小时前
+
+
-
-
- {/* 表格 */}
-
- {/* 首行 左侧标题左对齐 右侧按钮右对齐 */}
-
-
-
-
-
-
-
-
- {/* 表格 5行10列 带页码 每页5条数据 */}
-
-
- `共 ${total} 条`,
- }}
- scroll={{ x: 1200 }}
- />
+
+ {/* 表格 */}
+
+
+
+
+
+
+
+
+
+ {/* 表格 */}
+
+
+ `共 ${total} 条`,
+ }}
+ // scroll={{ x: 1200 }}
+ />
+
+
);
};
-export default RealtimeMonitoring;
+export default RealtimeMonitoring;
\ No newline at end of file
diff --git a/src/pages/business_firewarning/components/RealtimeMonitoring.less b/src/pages/business_firewarning/components/RealtimeMonitoring.less
index d623062..a180251 100644
--- a/src/pages/business_firewarning/components/RealtimeMonitoring.less
+++ b/src/pages/business_firewarning/components/RealtimeMonitoring.less
@@ -3,331 +3,366 @@
height: 100%;
display: flex;
flex-direction: column;
+ gap: 10px;
+ // 第一个div - 高度20%
.realtimeContainerTop {
+ height: 16%;
+ // background-color: #fff;
+ border-radius: 4px;
display: flex;
+ flex-direction: column;
- height: 50%;
- margin-bottom: 5px;
-
- .realtimeContainerTopLeft {
- width: 72%;
+ .realtimeSectionContent {
height: 100%;
- // background-color: pink;
- margin-right: 10px;
- // display: flex;
+ display: flex;
+ flex-direction: column;
+ // padding: 15px;
- .realtimeContainerTopLeftTop {
- width: 100%;
- height: 35%;
+ .realtimeBlocksContainer {
+ flex: 1;
display: flex;
- gap: 12px;
+ gap: 10px;
+ height: 100%;
- .realtimeAlarmO {
+ .realtimeBlockItem {
flex: 1;
height: 100%;
- background-color: #F4F7FF;
- border: 1px solid #AED3FF;
- border-bottom: 0px solid #AED3FF;
- border-radius: 4px;
- box-shadow: 0px 2px 31px 0px #5382FE33 inset;
display: flex;
+ background: url('@/assets/business_basic/background_re.svg') no-repeat center center;
+ border-radius: 4px;
+ border: 2px solid #FFFFFF;
- .realtimeAlarmOLeft {
- width: 35%;
- height: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
- }
-
- .realtimeAlarmORight {
- flex: 1;
- width: 35%;
+ .realtimeBlockLeft {
+ width: 60%;
height: 100%;
display: flex;
flex-direction: column;
- margin-left: 2px;
- gap: 18px;
-
- font-family: PingFang SC;
- font-weight: 400;
- font-style: Regular;
- font-size: 12px;
- line-height: 100%;
- letter-spacing: 0%;
- color: #333333;
+ justify-content: center;
+ padding: 15px;
+ padding-left: 20px;
+ gap: 8px;
- .realtimeAlarmORightText1 {
- margin-top: 15px;
+ .realtimeBlockTitle {
+ font-family: PingFang SC;
+ font-weight: 400;
+ font-size: 12px;
+ color: #333333;
+ line-height: 1.2;
}
-
- .realtimeAlarmORightText2 {
+ .realtimeBlockNumber {
+ font-family: PingFang SC;
font-weight: 700;
- font-size: 16px;
+ font-size: 24px;
+ color: #333333;
+ line-height: 1.2;
}
- .realtimeAlarmORightText3 {
+ .realtimeBlockChange {
+ font-family: PingFang SC;
+ font-weight: 400;
+ font-size: 12px;
+ color: #1269FF;
+ line-height: 1.2;
display: flex;
- gap: 22px;
- }
-
- }
-
-
-
- }
+ align-items: center;
+ gap: 4px;
- .realtimeAlarmTw {
- flex: 1;
- height: 100%;
- background-color: #FFF5f4;
- border: 1px solid #FFC5BC;
- border-bottom: 0px solid #FFC5BC;
- border-radius: 4px;
- box-shadow: 0px 2px 31px 0px #FE5F4C33 inset;
- display: flex;
+ .realtimeArrow {
+ font-size: 14px;
+ font-weight: bold;
+ }
- .realtimeAlarmTwLeft {
- width: 35%;
- height: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
+ .realtimeCheckIcon {
+ font-size: 16px;
+ color: #1269FF;
+ }
+ }
}
- .realtimeAlarmTwRight {
+ .realtimeBlockRight {
flex: 1;
- width: 35%;
height: 100%;
+ background-color: transparent;
+ border-radius: 0 4px 4px 0;
display: flex;
- flex-direction: column;
- margin-left: 2px;
- gap: 18px;
-
- font-family: PingFang SC;
- font-weight: 400;
- font-style: Regular;
- font-size: 12px;
- line-height: 100%;
- letter-spacing: 0%;
- color: #333333;
-
- .realtimeAlarmTwRightText1 {
- margin-top: 15px;
- }
-
- .realtimeAlarmTwRightText2 {
- font-weight: 700;
- font-size: 16px;
- }
+ align-items: center;
+ justify-content: center;
- .realtimeAlarmTwRightText3 {
- display: flex;
- gap: 22px;
+ .realtimeBlockImage {
+ // width: 80%;
+ height: 65%;
+ // height: 80%;
+ object-fit: contain;
+ margin-right: -5px;
}
}
}
+ }
+ }
+ }
- .realtimeAlarmTh {
- flex: 1;
- height: 100%;
- background-color: #FFF7F2;
- border: 1px solid #FFD9B2;
- border-bottom: 0px solid #FFD9B2;
- border-radius: 4px;
- box-shadow: 0px 2px 31px 0px #FD883C33 inset;
+ // 第二个div - 高度39%
+ .realtimeContainerMiddle {
+ height: 33%;
+ border-radius: 4px;
+ display: flex;
+ flex-direction: column;
+
+ .realtimeSectionContent {
+ height: 100%;
+ display: flex;
+ display: flex;
+ gap: 10px;
+ height: 100%;
+
+ .realtimeMiddleBlock1 {
+ width: 25%;
+ height: 100%;
+ background: #fff;
+ border: 2px solid #fff;
+ position: relative;
+ padding: 0px 10px 10px 2px;
+ font-family: PingFang SC;
+ font-size: 14px;
+ color: #333333;
+
+ .realtimeBlock1Header {
+ position: absolute;
+ top: 5px;
+ left: 10px;
+ right: 10px;
display: flex;
+ justify-content: space-between;
+ align-items: center;
+ z-index: 10;
- .realtimeAlarmThLeft {
- width: 35%;
- height: 100%;
+ .realtimeBlock1Title {
display: flex;
- justify-content: center;
align-items: center;
- }
-
- .realtimeAlarmThRight {
- flex: 1;
- width: 35%;
- height: 100%;
- display: flex;
- flex-direction: column;
- margin-left: 2px;
- gap: 18px;
-
- font-family: PingFang SC;
- font-weight: 400;
- font-style: Regular;
- font-size: 12px;
- line-height: 100%;
- letter-spacing: 0%;
+ gap: 8px;
+ font-weight: 500;
+ font-size: 14px;
color: #333333;
- .realtimeAlarmThRightText1 {
- margin-top: 15px;
+ .realtimeTitleIcon {
+ width: 3px;
+ height: 14px;
+ background-color: #2E4CD4;
}
+ }
- .realtimeAlarmThRightText2 {
- font-weight: 700;
- font-size: 16px;
- }
+ // .realtimeBlock1Segmented {
+ // padding: 0;
+ // margin: 0;
+ // border: 1px solid #E3E3E3;
+ // border-radius: 4px;
+ // height: 28px;
+
+ // :global(.ant-segmented) {
+ // padding: 0;
+ // margin: 0;
+ // height: 28px;
+ // }
+
+ // :global(.ant-segmented-item) {
+ // font-size: 12px;
+ // padding: 2px 8px;
+ // height: 26px;
+ // line-height: 26px;
+ // display: flex;
+ // align-items: center;
+ // justify-content: center;
+ // }
+
+ // :global(.ant-segmented-item-selected) {
+ // background-color: #1890ff;
+ // color: #fff;
+ // }
+ // }
+ }
- .realtimeAlarmThRightText3 {
- display: flex;
- gap: 22px;
- }
- }
+ .realtimeDeviceStatusChart {
+ position: absolute;
+ top: 35px;
+ left: 10px;
+ right: 10px;
+ bottom: 10px;
+ z-index: 10;
}
+ }
- .realtimeAlarmF {
- flex: 1;
- height: 100%;
- background-color: #EFF9FF;
- border: 1px solid #89E1FF;
- border-bottom: 0px solid #89E1FF;
- border-radius: 4px;
- box-shadow: 0px 2px 31px 0px #22A4FD33 inset;
+ .realtimeMiddleBlock12 {
+ // flex: 1;
+ width: 30%;
+ height: 100%;
+ background-color: #fff;
+ display: flex;
+ flex-direction: column;
+ font-family: PingFang SC;
+ font-size: 14px;
+ color: #333333;
+ padding: 5px 10px 5px 10px;
+ position: relative;
+
+ .realtimeBlock1Header {
+ position: absolute;
+ top: 5px;
+ left: 10px;
+ right: 10px;
display: flex;
+ justify-content: space-between;
+ align-items: center;
+ z-index: 10;
- .realtimeAlarmFLeft {
- width: 35%;
- height: 100%;
+ .realtimeBlock1Title {
display: flex;
- justify-content: center;
align-items: center;
+ gap: 8px;
+ font-weight: 500;
+ font-size: 14px;
+ color: #333333;
+
+ .realtimeTitleIcon {
+ width: 3px;
+ height: 14px;
+ background-color: #2E4CD4;
+ }
}
- .realtimeAlarmFRight {
- flex: 1;
- width: 35%;
- height: 100%;
- display: flex;
- flex-direction: column;
- margin-left: 2px;
- gap: 18px;
+ .realtimeBlock1Segmented {
+ padding: 0;
+ margin: 0;
+ border: 1px solid #E3E3E3;
+ border-radius: 4px;
+ height: 28px;
- font-family: PingFang SC;
- font-weight: 400;
- font-style: Regular;
- font-size: 12px;
- line-height: 100%;
- letter-spacing: 0%;
- color: #333333;
+ :global(.ant-segmented) {
+ padding: 0;
+ margin: 0;
+ height: 28px;
+ }
- .realtimeAlarmFRightText1 {
- margin-top: 15px;
+ :global(.ant-segmented-item) {
+ font-size: 12px;
+ padding: 2px 8px;
+ height: 26px;
+ line-height: 26px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
}
- .realtimeAlarmFRightText2 {
- font-weight: 700;
- font-size: 16px;
+ :global(.ant-segmented-item-selected) {
+ background-color: #1890ff;
+ color: #fff;
}
+ }
- .realtimeAlarmFRightText3 {
- display: flex;
- gap: 22px;
+ .realtimeCustomSelect {
+ :global(.ant-select-single:not(.ant-select-customize-input) .ant-select-selector) {
+ height: 26px !important;
+ display: flex !important;
+ align-items: center !important;
+ }
+
+ :global(.ant-select-selection-item) {
+ line-height: 24px !important;
+ // height: 24px !important;
+ display: flex !important;
+ align-items: center !important;
}
}
}
+
+ .realtimeDeviceStatusChart {
+ position: absolute;
+ top: 35px;
+ left: 10px;
+ right: 10px;
+ bottom: 10px;
+ z-index: 10;
+ }
}
- .realtimeContainerTopLeftBottom {
- margin-top: 12px;
+ .realtimeMiddleBlock2 {
+ flex: 1;
+ height: 100%;
background-color: #fff;
- width: 100%;
- height: 60%;
+ display: flex;
+ flex-direction: column;
+ font-family: PingFang SC;
+ font-size: 14px;
+ color: #333333;
+ padding: 5px 10px 5px 10px;
- .realtimeContainerTopLeftBottomTitle {
+ .realtimeMiddleBlock2Title {
display: flex;
justify-content: space-between;
align-items: center;
- // padding: 8px 15px;
- padding: 8px 15px 0px 15px;
+ // margin-bottom: 10px;
.realtimeTitleLeft {
display: flex;
align-items: center;
gap: 8px;
- font-family: PingFang SC;
font-weight: 500;
- font-style: Medium;
font-size: 14px;
- line-height: 100%;
- letter-spacing: 0%;
-
+ color: #333333;
.realtimeTitleIcon {
width: 3px;
- height: 16px;
+ height: 14px;
background-color: #2E4CD4;
}
}
-
- .realtimeTitleRight {
- display: flex;
- align-items: center;
- gap: 8px;
-
- font-family: PingFang SC;
- font-style: Medium;
- font-size: 13px;
- line-height: 100%;
- letter-spacing: 0%;
-
-
- .selectBox {
- padding: 4px 8px;
- border: 1px solid #d9d9d9;
- border-radius: 4px;
- background-color: #fff;
- font-size: 12px;
- color: #333;
- outline: none;
-
- &:focus {
- border-color: #2E4CD4;
- }
- }
- }
}
- .realtimeContainerTopLeftBottomChart {
- flex: 1;
+ .realtimeMiddleBlock2Chart {
width: 100%;
- height: 75%;
+ height: 100%;
+ // min-height: 200px;
}
}
+
}
+ }
+
+ // 第三个div - 高度不超过45%
+ .realtimeContainerBottom {
+ height: 45%; // 限制高度不超过45%
+ max-height: 45%; // 确保最大高度不超过45%
+ display: flex;
+ flex-direction: column;
- .realtimeContainerTopRight {
- flex: 1;
- height: calc(100% - 3.3px);
- background-color: #fff;
- background-image: url('@/assets/safe_majorHazard/online_monitoring/backTopRight.png');
- background-size: 100% auto;
+ .realtimeSectionContent {
display: flex;
- flex-direction: column;
- overflow-y: auto;
+ flex-direction: row;
+ gap: 10px;
+ padding: 0;
- .realtimeDataHeader {
+ .realtimeLeftBlock {
+ width: 28%;
+ flex-shrink: 0;
+ height: 100%;
+ background: #fff;
+ // background-size: cover;
+ padding: 0;
display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 8px 15px;
- margin-bottom: 10px;
+ flex-direction: column;
+ gap: 10px;
+ padding: 15px;
- .realtimeTitleLeft {
+ .realtimeLeftBlockTitle {
display: flex;
align-items: center;
gap: 8px;
font-family: PingFang SC;
font-weight: 500;
- font-style: Medium;
font-size: 14px;
- line-height: 100%;
- letter-spacing: 0%;
+ color: #333333;
+ margin-bottom: 10px;
.realtimeTitleIcon {
width: 3px;
@@ -336,584 +371,192 @@
}
}
- .realtimeTotalCount {
- font-family: PingFang SC;
- font-weight: 400;
- font-size: 13px;
- color: #333333;
- }
- }
-
- .realtimeDataItem {
- height: 23%;
- flex-shrink: 0;
- border: 1px solid #89E1FF;
- border-radius: 2px;
- margin: 0 15px;
- margin-bottom: 6px;
- display: flex;
- align-items: center;
- justify-content: center;
- font-family: PingFang SC;
- font-size: 14px;
- // color: #666;
- background-color: #EFF9FF;
-
- &:last-child {
- // margin-bottom: 1px;
- }
- }
-
- .realtimeDataItem1 {
- height: 25%;
- flex-shrink: 0;
- border: 1px solid #89E1FF;
- border-radius: 4px;
- margin: 0 15px;
- margin-bottom: 6px;
- display: flex;
- align-items: center;
- padding: 0px 15px;
- background-color: #EFF9FF;
-
- .realtimeDataItemLeft {
- width: 65%;
+ .realtimeDevelopmentContainer {
+ width: 100%;
+ height: 100%;
display: flex;
flex-direction: column;
gap: 8px;
- .realtimeAreaName {
-
- font-family: PingFang SC;
- font-weight: 400;
- font-size: 13px;
- color: #333333;
- line-height: 2.2;
- }
-
- .realtimeRValue {
- font-family: PingFang SC;
- font-weight: 400;
- font-size: 14px;
- color: #666666;
- line-height: 0.2;
- }
-
- .realtimeCodeNumber {
- font-family: PingFang SC;
- font-weight: 400;
- font-size: 12px;
- color: #666666;
- }
- }
-
- .realtimeDataItemRight {
- width: 35%;
- height: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
+ .realtimeDevelopmentBlock1 {
+ flex: 1;
+ background-color: #F1F7FF;
+ border-radius: 4px;
+ padding: 15px 20px;
+ display: flex;
+ align-items: center;
+ width: 100%;
- .realtimeCircleContainer {
- position: relative;
- height: 80%;
- aspect-ratio: 1; // 强制宽高比1:1
-
- .realtimeOuterCircle {
-
- width: 100%;
- height: 100%;
- background-color: rgba(51, 176, 253, 0.3);
- border-radius: 50%;
+ .realtimeLeftContent {
+ flex: 1;
display: flex;
- justify-content: center;
- align-items: center;
-
- .realtimeInnerCircle {
- width: 70%;
- height: 70%;
- background-color: rgba(4, 128, 251, 0.8);
- border-radius: 50%;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
+ flex-direction: column;
+ gap: 8px;
+ min-width: 0;
+
+ .realtimeMainText {
+ color: #333333;
+ font-size: 14px;
+ font-weight: 500;
+ font-family: PingFang SC;
+ width: 100%;
+ max-width: 500px;
+ }
- .realtimeLevelText {
- font-family: PingFang SC;
- font-weight: 500;
- font-size: 11px;
- color: #FFFFFF;
- line-height: 1.4;
- margin-top: -4px;
- }
-
- .realtimeRiskText {
- font-family: PingFang SC;
- font-weight: 300;
- font-size: 8px;
- color: #FFFFFF;
- line-height: 1;
- }
+ .realtimeSubText {
+ color: #666666;
+ font-size: 12px;
+ font-weight: 400;
+ font-family: PingFang SC;
+ width: 100%;
+ max-width: 400px;
}
}
- }
- }
- }
-
- .realtimeDataItem2 {
- height: 25%;
- flex-shrink: 0;
- border: 1px solid rgba(255, 197, 188, 1);
- border-radius: 4px;
- margin: 0 15px;
- margin-bottom: 6px;
- display: flex;
- align-items: center;
- padding: 0px 15px;
- background-color: #fff5f4;
-
- .realtimeDataItemLeft {
- width: 65%;
- display: flex;
- flex-direction: column;
- gap: 8px;
-
- .realtimeAreaName {
- font-family: PingFang SC;
- font-weight: 400;
- font-size: 13px;
- color: #333333;
- line-height: 2.2;
- }
-
- .realtimeRValue {
- font-family: PingFang SC;
- font-weight: 400;
- font-size: 14px;
- color: #666666;
- line-height: 0.2;
- }
-
- .realtimeCodeNumber {
- font-family: PingFang SC;
- font-weight: 400;
- font-size: 12px;
- color: #666666;
- }
- }
-
- .realtimeDataItemRight {
- width: 35%;
- height: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
-
- .realtimeCircleContainer {
- position: relative;
- height: 80%;
- aspect-ratio: 1;
- .realtimeOuterCircle {
- width: 100%;
- height: 100%;
- background-color: rgba(254, 214, 209, 1);
- border-radius: 50%;
+ .realtimeRightContent {
+ flex: 0 0 auto;
display: flex;
- justify-content: center;
+ justify-content: flex-end;
align-items: center;
-
- .realtimeInnerCircle {
- width: 70%;
- height: 70%;
- background-color: rgba(253, 41, 14, 1);
- border-radius: 50%;
+ padding-right: 10px;
+ min-width: 80px;
+
+ .realtimeImportantTag {
+ background-color: #FFE0E2;
+ color: #FF3E48;
+ font-size: 14px;
+ font-weight: 500;
+ font-family: PingFang SC;
+ width: 45px;
+ height: 25px;
display: flex;
- flex-direction: column;
- justify-content: center;
align-items: center;
-
- .realtimeLevelText {
- font-family: PingFang SC;
- font-weight: 500;
- font-size: 11px;
- color: #FFFFFF;
- line-height: 1.4;
- margin-top: -4px;
- }
-
- .realtimeRiskText {
- font-family: PingFang SC;
- font-weight: 300;
- font-size: 8px;
- color: #FFFFFF;
- line-height: 1;
- }
+ justify-content: center;
+ border-radius: 4px;
}
- }
- }
- }
- }
-
- .realtimeDataItem3 {
- height: 25%;
- flex-shrink: 0;
- border: 1px solid rgba(255, 217, 178, 1);
- border-radius: 4px;
- margin: 0 15px;
- margin-bottom: 6px;
- display: flex;
- align-items: center;
- padding: 0px 15px;
- background-color: #fef6f1;
-
- .realtimeDataItemLeft {
- width: 65%;
- display: flex;
- flex-direction: column;
- gap: 8px;
-
- .realtimeAreaName {
- font-family: PingFang SC;
- font-weight: 400;
- font-size: 13px;
- color: #333333;
- line-height: 2.2;
- }
-
- .realtimeRValue {
- font-family: PingFang SC;
- font-weight: 400;
- font-size: 14px;
- color: #666666;
- line-height: 0.2;
- }
-
- .realtimeCodeNumber {
- font-family: PingFang SC;
- font-weight: 400;
- font-size: 12px;
- color: #666666;
- }
- }
-
- .realtimeDataItemRight {
- width: 35%;
- height: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
-
- .realtimeCircleContainer {
- position: relative;
- height: 80%;
- aspect-ratio: 1;
- .realtimeOuterCircle {
- width: 100%;
- height: 100%;
- background-color: rgba(255, 234, 218, 1);
- border-radius: 50%;
- display: flex;
- justify-content: center;
- align-items: center;
+ .realtimeNormalTag {
+ background-color: #DAF3FF;
+ color: #00AAFA;
+ font-size: 14px;
+ font-weight: 500;
+ font-family: PingFang SC;
+ width: 45px;
+ height: 25px;
- .realtimeInnerCircle {
- width: 70%;
- height: 70%;
- background-color: rgba(252, 103, 18, 1);
- border-radius: 50%;
display: flex;
- flex-direction: column;
- justify-content: center;
align-items: center;
-
- .realtimeLevelText {
- font-family: PingFang SC;
- font-weight: 500;
- font-size: 11px;
- color: #FFFFFF;
- line-height: 1.4;
- margin-top: -4px;
- }
-
- .realtimeRiskText {
- font-family: PingFang SC;
- font-weight: 300;
- font-size: 8px;
- color: #FFFFFF;
- line-height: 1;
- }
+ justify-content: center;
+ border-radius: 4px;
}
}
}
}
}
- .realtimeDataItem4 {
- height: 25%;
- flex-shrink: 0;
- border: 1px solid #89E1FF;
- border-radius: 4px;
- margin: 0 15px;
- margin-bottom: 6px;
+ .realtimeRightBlock {
+ width: calc(100% - 28% - 10px);
+ height: 100%;
+ background-color: #fff;
+ padding: 0;
display: flex;
- align-items: center;
- padding: 0px 15px;
- background-color: #EFF9FF;
+ flex-direction: column;
- .realtimeDataItemLeft {
- width: 65%;
+ .realtimeTableHeader {
display: flex;
- flex-direction: column;
- gap: 8px;
-
- .realtimeAreaName {
- font-family: PingFang SC;
- font-weight: 400;
- font-size: 13px;
- color: #333333;
- line-height: 2.2;
- }
+ justify-content: space-between;
+ align-items: center;
+ padding: 8px 15px 5px 15px;
- .realtimeRValue {
+ .realtimeTableTitle {
+ display: flex;
+ align-items: center;
+ gap: 8px;
font-family: PingFang SC;
- font-weight: 400;
+ font-weight: 500;
font-size: 14px;
- color: #666666;
- line-height: 0.2;
- }
+ color: #333333;
- .realtimeCodeNumber {
- font-family: PingFang SC;
- font-weight: 400;
- font-size: 12px;
- color: #666666;
+ .realtimeTitleIcon {
+ width: 3px;
+ height: 16px;
+ background-color: #2E4CD4;
+ }
}
- }
-
- .realtimeDataItemRight {
- width: 35%;
- height: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
- .realtimeCircleContainer {
- position: relative;
- height: 80%;
- aspect-ratio: 1;
+ .realtimeTableActions {
+ display: flex;
+ gap: 8px;
+ margin-top: 5px;
- .realtimeOuterCircle {
- width: 100%;
- height: 100%;
- background-color: rgba(51, 176, 253, 0.3);
- border-radius: 50%;
+ .realtimeActionButton {
display: flex;
- justify-content: center;
align-items: center;
+ gap: 4px;
+ height: 28px;
+ border: 1px solid #DFE4F6;
+ border-radius: 4px;
+ color: #2E4CD4;
+ font-weight: 500;
+ font-size: 12px;
+ padding: 0px 8px;
+ background: transparent;
+ cursor: pointer;
+ transition: all 0.2s ease;
- .realtimeInnerCircle {
- width: 70%;
- height: 70%;
- background-color: rgba(4, 128, 251, 0.8);
- border-radius: 50%;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
+ &:hover {
+ background-color: #f0f2ff;
+ border-color: #2E4CD4;
+ }
+
+ &:active {
+ background-color: #e6ebff;
+ }
- .realtimeLevelText {
- font-family: PingFang SC;
- font-weight: 500;
- font-size: 11px;
- color: #FFFFFF;
- line-height: 1.4;
- margin-top: -4px;
- }
-
- .realtimeRiskText {
- font-family: PingFang SC;
- font-weight: 300;
- font-size: 8px;
- color: #FFFFFF;
- line-height: 1;
- }
+ .realtimeButtonIcon {
+ font-size: 14px;
+ font-weight: bold;
}
}
}
}
- }
- }
-
- }
-
- .realtimeContainerBottom {
- background-color: #fff;
- flex: 1;
- padding: 8px 15px 5px 15px;
- display: flex;
- flex-direction: column;
-
- .realtimeTableHeader {
- display: flex;
- justify-content: space-between;
- align-items: center;
- // margin-bottom: 15px;
- padding-bottom: 5px;
- // border-bottom: 1px solid #f0f0f0;
-
- .realtimeTableTitle {
- display: flex;
- align-items: center;
- gap: 8px;
- font-family: PingFang SC;
- font-weight: 500;
- font-size: 14px;
- color: #333333;
-
- .realtimeTitleIcon {
- width: 3px;
- height: 16px;
- background-color: #2E4CD4;
- }
- }
- .realtimeTableActions {
- display: flex;
- gap: 8px;
-
- // 自定义按钮样式
- :global(.ant-btn) {
- background-color: #ffffff !important;
- border-color: #DFE4F6 !important;
- color: #333333 !important;
- box-shadow: none !important;
-
- &:hover {
- background-color: #f5f5f5 !important;
- border-color: #DFE4F6 !important;
- color: #333333 !important;
- box-shadow: none !important;
- }
+ .realtimeTableContainer {
+ flex: 1;
+ overflow: hidden;
+ margin: 10px 15px 0 15px; // 上边距10px,左右边距15px
- &:focus {
- background-color: #ffffff !important;
- border-color: #DFE4F6 !important;
- color: #333333 !important;
- box-shadow: none !important;
+ :global(.ant-table) {
+ font-size: 12px;
}
- &:active {
- background-color: #e6e6e6 !important;
- border-color: #DFE4F6 !important;
- color: #333333 !important;
- box-shadow: none !important;
+ :global(.ant-table-thead > tr > th) {
+ background-color: #f5f5fa;
+ font-weight: 500;
+ font-size: 14px;
+ color: #333333;
+ border-bottom: 1px solid #f0f0f0;
+ padding: 8px 12px;
+ text-align: center;
}
- // 主要按钮样式
- &.ant-btn-primary {
- background-color: #ffffff !important;
- border-color: #DFE4F6 !important;
- color: #333333 !important;
- box-shadow: none !important;
-
- &:hover {
- background-color: #f5f5f5 !important;
- border-color: #DFE4F6 !important;
- color: #333333 !important;
- box-shadow: none !important;
- }
-
- &:focus {
- background-color: #ffffff !important;
- border-color: #DFE4F6 !important;
- color: #333333 !important;
- box-shadow: none !important;
- }
-
- &:active {
- background-color: #e6e6e6 !important;
- border-color: #DFE4F6 !important;
- color: #333333 !important;
- box-shadow: none !important;
- }
+ :global(.ant-table-tbody > tr > td) {
+ padding: 8px 12px;
+ border-bottom: 1px solid #f0f0f0;
+ text-align: center;
+ color: #666666;
}
- // 危险按钮样式
- &.ant-btn-dangerous {
- background-color: #ffffff !important;
- border-color: #DFE4F6 !important;
- color: #333333 !important;
- box-shadow: none !important;
-
- &:hover {
- background-color: #f5f5f5 !important;
- border-color: #DFE4F6 !important;
- color: #333333 !important;
- box-shadow: none !important;
- }
-
- &:focus {
- background-color: #ffffff !important;
- border-color: #DFE4F6 !important;
- color: #333333 !important;
- box-shadow: none !important;
- }
-
- &:active {
- background-color: #e6e6e6 !important;
- border-color: #DFE4F6 !important;
- color: #333333 !important;
- box-shadow: none !important;
- }
+ :global(.ant-table-tbody > tr:hover > td) {
+ background-color: #f5f5f5;
}
- // 禁用状态
- &:disabled {
- background-color: #f5f5f5 !important;
- border-color: #d9d9d9 !important;
- color: #bfbfbf !important;
- box-shadow: none !important;
+ :global(.ant-pagination) {
+ margin-top: 16px;
+ text-align: right;
}
}
}
}
-
- .realtimeTableContainer {
- flex: 1;
- overflow: hidden;
-
- :global(.ant-table) {
- font-size: 12px;
- }
-
- :global(.ant-table-thead > tr > th) {
- background-color: #f5f5fa;
- font-weight: 500;
- font-size: 14px;
- color: #333333;
- border-bottom: 1px solid #f0f0f0;
- padding: 8px 12px;
- text-align: center;
- }
-
- :global(.ant-table-tbody > tr > td) {
- padding: 8px 12px;
- border-bottom: 1px solid #f0f0f0;
- text-align: center;
- }
-
- :global(.ant-table-tbody > tr:hover > td) {
- background-color: #f5f5f5;
- }
-
- :global(.ant-pagination) {
- margin-top: 16px;
- text-align: right;
- }
- }
}
-
-}
+}
\ No newline at end of file