zcloud-gbs-bi-react/src/pages/Container/Bi/index.less

1054 lines
18 KiB
Plaintext
Raw Normal View History

/* 驾驶舱专用 - 通用样式规则 */
/* 顶部标题区域样式 */
.top-title-area {
box-sizing: border-box;
width: 100%;
height: 80px;
.top-title-area__back {
width: 65px;
height: 32px;
display: flex;
justify-content: center;
align-items: center;
gap: 6px;
position: absolute;
top: 30px;
left: 17px;
color: #fff;
font-size: 17px;
cursor: pointer;
.icon-arrow__left {
font-size: 20px;
}
}
.top-title-area__img {
width: 100%;
height: 100%;
text-align: center;
line-height: 80px;
position: relative;
background-origin: border-box;
background-repeat: no-repeat;
background-size: 100% 100%;
.top-title-area__img__text {
user-select: none;
background-image: linear-gradient(to bottom, #5bb4f7, #ffffff);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-size: 40px;
font-weight: bold;
}
.top-title-area__img__box {
position: absolute;
top: 53px;
left: 50%;
}
.top-title-area__right {
position: absolute;
top: 30px;
right: 17px;
width: 110px;
height: 32px;
cursor: pointer;
background-image: url("../../../assets/images/public/bigScreen/bg7.png");
background-origin: border-box;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
color: #fff;
.top-title-area__right__text {
user-select: none;
width: 60px;
position: absolute;
top: -24px;
left: 40px;
height: 32px;
}
}
.top-title-area__img__guang {
animation: scale 2s infinite;
}
}
}
@keyframes scale {
0% {
transform: translateX(-50%) scale(1.2);
}
50% {
transform: translateX(-50%) scale(0.6);
}
100% {
transform: translateX(-50%) scale(1.2);
}
}
/* 主容器样式 */
.screen-container {
background-origin: border-box;
background-repeat: no-repeat;
position: relative;
background-size: 100% 100%;
width: 100%;
height: 100%;
}
.screen-body {
box-sizing: border-box;
padding-top: 10px;
width: 100%;
display: grid;
grid-template-columns: 450px 1fr 450px;
gap: 8px;
}
/* 地图点位样式 */
.center-area__point {
position: absolute;
.img {
cursor: pointer;
animation: moveUpDown 1.3s infinite ease-in-out;
position: relative;
img:nth-child(1) {
width: 52px;
height: 54px;
position: absolute;
top: -52px;
left: 21px;
}
img:nth-child(2) {
width: 96px;
height: 31px;
position: absolute;
top: 0;
left: 0;
}
}
.bubble-box {
width: 380px;
position: absolute;
top: 0;
left: 45px;
}
}
// /* 卡片样式 */
// .card {
// width: 100%;
// background: rgba(4, 24, 52, 0.85);
// border-radius: 8px;
// box-shadow: 0 0 12px rgba(20, 143, 255, 0.4);
// overflow: hidden;
// .card-header {
// width: 100%;
// height: 38px;
// background-image: url("../../../assets/images/public/bigScreen/smalltitle.png");
// background-origin: border-box;
// background-position: left;
// background-repeat: no-repeat;
// background-size: contain;
// .card-header__text {
// line-height: 35px;
// padding-left: 25px;
// font-size: 18px;
// font-weight: bold;
// color: #fff;
// }
// }
// .card-body {
// height: calc(100% - 40px);
// padding: 10px;
// box-sizing: border-box;
// }
// }
/* 左侧面板样式 */
.left-panel {
height: 100%;
display: flex;
flex-direction: column;
gap: 15px;
z-index: 100;
}
/* 通用卡片样式 */
.card {
width: 100%;
background: rgba(4, 24, 52, 0);
overflow: hidden;
}
.card-header {
width: 100%;
height: 38px;
background-origin: border-box;
background-position: left;
background-repeat: no-repeat;
background-size: contain;
}
.card-header__text {
line-height: 35px;
padding-left: 25px;
font-size: 18px;
font-weight: bold;
color: #fff;
}
.weather-card__content {
padding: 15px;
}
.weather-main {
display: flex;
align-items: center;
gap: 20px;
margin-bottom: 15px;
}
.weather-icon {
width: 80px;
height: 80px;
background: rgba(255, 255, 255, 0.1);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid #42698f;
}
.wind-icon {
width: 60px;
height: 60px;
background: rgba(5, 227, 251, 0.2);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: #05e3fb;
font-size: 18px;
font-weight: bold;
border: 1px solid #05e3fb;
}
.weather-info {
display: flex;
flex-direction: column;
gap: 10px;
}
.temperature {
display: flex;
align-items: baseline;
gap: 5px;
}
.temp-value {
font-size: 36px;
font-weight: bold;
color: #fff;
}
.temp-unit {
font-size: 18px;
color: #fff;
}
.wind-speed {
display: flex;
align-items: center;
gap: 10px;
}
.wind-label {
font-size: 14px;
color: #fff;
}
.wind-value {
font-size: 24px;
font-weight: bold;
color: #05e3fb;
}
.weather-alert {
padding: 10px;
background: rgba(255, 87, 34, 0.2);
border: 1px solid #ff5722;
border-radius: 4px;
}
.weather-alert p {
margin: 0;
font-size: 14px;
color: #ff5722;
line-height: 1.4;
}
/* 防汛状态样式 */
.flood-control-card {
@extend .card;
}
.table-header {
display: flex;
justify-content: space-between;
padding: 8px 0;
border-bottom: 1px solid #42698f;
font-weight: bold;
color: #fff;
font-size: 14px;
}
.table-body {
margin-top: 10px;
}
.table-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 0;
border-bottom: 1px solid rgba(66, 105, 143, 0.3);
font-size: 13px;
color: #fff;
}
.table-row span:first-child {
width: 30%;
}
.table-row span:nth-child(2) {
width: 20%;
text-align: center;
}
.table-row span:last-child {
width: 50%;
text-align: right;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.status-done {
color: #52c41a;
background: rgba(82, 196, 26, 0.2);
padding: 2px 8px;
border-radius: 10px;
}
.status-processing {
color: #faad14;
background: rgba(250, 173, 20, 0.2);
padding: 2px 8px;
border-radius: 10px;
}
.status-pending {
color: #ff4d4f;
background: rgba(255, 77, 79, 0.2);
padding: 2px 8px;
border-radius: 10px;
}
/* 重大危险源样式 */
.hazards-card {
@extend .card;
}
.hazard-list {
margin-bottom: 15px;
}
.hazard-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px;
background: rgba(255, 77, 79, 0.1);
border: 1px solid #ff4d4f;
border-radius: 4px;
cursor: pointer;
margin-bottom: 8px;
color: #fff;
}
.hazard-item.selected {
background: rgba(255, 77, 79, 0.3);
border-color: #ff7875;
}
.hazard-icon {
font-size: 20px;
}
.hazard-name {
font-size: 14px;
}
.hazard-stats {
display: flex;
gap: 20px;
margin-bottom: 15px;
}
.stat-item {
text-align: center;
color: #fff;
}
.stat-label {
font-size: 13px;
margin-bottom: 5px;
}
.stat-value {
font-size: 24px;
font-weight: bold;
color: #05e3fb;
}
.tank-stats {
display: flex;
gap: 20px;
}
.tank-group {
flex: 1;
padding: 10px;
background: rgba(66, 105, 143, 0.2);
border: 1px solid #42698f;
border-radius: 4px;
}
.tank-group-label {
font-size: 14px;
font-weight: bold;
color: #fff;
margin-bottom: 10px;
text-align: center;
}
.tank-info {
display: flex;
flex-direction: column;
gap: 5px;
color: #fff;
font-size: 13px;
}
/* 储罐状态样式 */
.tank-status-card {
@extend .card;
}
.tank-list {
margin-bottom: 15px;
}
.tank-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 0;
border-bottom: 1px solid rgba(66, 105, 143, 0.3);
color: #fff;
font-size: 14px;
}
.tank-status {
padding: 2px 12px;
border-radius: 10px;
font-size: 12px;
}
.tank-status.normal {
color: #52c41a;
background: rgba(82, 196, 26, 0.2);
}
.tank-status.warning {
color: #faad14;
background: rgba(250, 173, 20, 0.2);
}
.handling-status {
padding: 12px;
background: rgba(66, 105, 143, 0.2);
border: 1px solid #42698f;
border-radius: 4px;
}
.handling-header h4 {
margin: 0 0 10px 0;
font-size: 14px;
color: #fff;
}
.handling-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.handling-item {
display: flex;
justify-content: space-between;
align-items: center;
color: #fff;
font-size: 13px;
}
/* 领域整改情况统计样式 */
.domain-rectification-card {
@extend .card;
}
.chart-container {
width: 100%;
height: 200px;
}
.flow-machine-tooltip {
background: rgba(35, 53, 93, 0.95);
border: 1px solid #42698f;
border-radius: 4px;
padding: 10px;
color: #fff;
font-size: 13px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.tooltip-content {
display: flex;
flex-direction: column;
gap: 5px;
}
.tooltip-title {
font-weight: bold;
margin-bottom: 5px;
color: #05e3fb;
}
/* 公司作业情况样式 */
.operation-status-card {
@extend .card;
}
.operation-status-card .table-header span {
width: 20%;
text-align: center;
}
.operation-status-card .table-row span {
width: 20%;
text-align: center;
font-size: 13px;
}
/* 中间区域样式 */
.center-area {
height: 100%;
display: flex;
flex-direction: column;
gap: 20px;
z-index: 100;
box-sizing: border-box;
width: 100%;
position: relative;
.center-area__navlist {
position: absolute;
top: 73px;
right: 30px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
gap: 3px;
.center-area__navlist__item {
cursor: pointer;
width: 157px;
height: 54px;
background-image: url("../../../assets/images/public/bigScreen/bg3.png");
background-origin: border-box;
background-repeat: no-repeat;
background-size: contain;
.center-area__navlist__item__title {
color: #fff;
font-size: 21px;
font-weight: bold;
text-align: center;
line-height: 50px;
margin-right: 17px;
}
}
}
.center-area__content {
width: 100%;
height: 282px;
position: absolute;
bottom: 15px;
left: 50%;
transform: translate(-50%, 0);
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 15px;
.node_style__1 {
.card-body {
margin-top: 10px;
.card-body__table {
width: 100%;
background: linear-gradient(180deg, #0e1a4f7a, transparent);
.text-ellipsis {
width: 235px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.card-body__table_thead {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
&>div {
text-align: start;
color: #fff;
padding: 7px;
font-size: 16px;
}
&>div:nth-child(1) {
width: 258px;
}
}
.card-body__table_tbody {
.card-body__table_tbody_scroll {
width: 100%;
height: 200px;
overflow: hidden;
}
.tbody__item {
color: #fff;
width: 100%;
padding: 12px 5px;
display: flex;
justify-content: space-between;
align-items: center;
&>span:not(:first-child) {
width: 82px;
text-align: center;
}
&>span:nth-child(1) {
display: inline-block;
text-align: start;
}
&>span:nth-child(2) {
display: inline-block;
text-align: center;
}
}
}
}
}
}
.node_style__2 {
.card-body {
margin-top: 10px;
.echarts_node_2 {
width: 100%;
height: 232px;
}
}
}
}
}
/* 右侧面板样式 */
.right-panel {
height: 100%;
display: flex;
flex-direction: column;
gap: 20px;
z-index: 100;
}
/* 节点样式 */
.node_style__1,
.node_style__2,
.node_style__3,
.node_style__4 {
height: calc(33.33% - 13.33px);
}
/* 节点1样式 */
.node_style__1 {
.card-body {
display: flex;
justify-content: space-around;
align-items: center;
.card-body__items {
text-align: center;
&>p {
color: #fff;
}
.card-body__items__title {
font-size: 16px;
margin-bottom: 10px;
}
.card-body__items__imgbox {
width: 80px;
height: 40px;
background-image: url("../../../assets/images/public/bigScreen/bg1.png");
background-origin: border-box;
background-repeat: no-repeat;
background-size: cover;
&>img {
width: 40px;
height: 40px;
animation: moveUpDown 1.3s infinite ease-in-out;
}
}
.card-body__items__text {
display: flex;
text-align: left;
margin-top: 10px;
font-size: 14px;
color: #fff;
}
}
}
}
/* 节点2样式 */
.node_style__2 {
.card-body {
margin-top: 8px;
.echarts_node_style_2 {
width: 100%;
height: 200px;
padding: 0 10px;
}
}
}
/* 节点3样式 */
.node_style__3 {
.card-body {
margin-top: 15px;
.card-body__imgbox {
display: flex;
align-items: center;
justify-content: space-between;
gap: 2px;
.card-body__imgbox__items {
width: 242px;
height: 67px;
background-image: url("../../../assets/images/public/bigScreen/bg4.png");
background-origin: border-box;
background-repeat: no-repeat;
background-size: contain;
padding: 12px;
display: flex;
align-items: center;
gap: 12px;
&>div>img {
animation: zooming 1.3s infinite ease-in-out;
}
.items__content {
color: #fff;
&>p:nth-child(1) {
font-size: 15px;
margin-bottom: 5px;
}
&>p:nth-child(2) {
font-size: 18px;
}
}
}
}
.card-body__count {
margin-top: 30px;
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(2, 1fr);
gap: 30px;
.card-body__count__items {
display: flex;
justify-content: flex-start;
align-items: center;
gap: 8px;
margin-left: 30px;
.card-body__count_imgbox {
width: 53px;
height: 36px;
background-image: url("../../../assets/images/public/bigScreen/bg2.png");
background-origin: border-box;
background-repeat: no-repeat;
background-size: contain;
&>img {
animation: moveUpDown__2 1.3s infinite ease-in-out;
}
}
.count__content {
color: #fff;
&>p:nth-child(1) {
font-size: 15px;
margin-bottom: 5px;
}
&>p:nth-child(2) {
font-size: 18px;
}
}
}
}
}
}
/* 节点4样式 */
.node_style__4 {
width: 100%;
box-sizing: border-box;
.card-body {
margin-top: 12px;
width: 100%;
color: #fff;
.card-body__tabbar {
display: flex;
justify-content: flex-end;
align-items: center;
.tabBarItem {
cursor: pointer;
padding: 6px 8px;
background-color: #00216d;
&:first-child {
border-radius: 5px 0 0 5px;
}
&:last-child {
border-radius: 0 5px 5px 0;
}
}
.tabBarItemIndex {
background-color: #094ed8;
}
}
.card-body-tabbar__content {
width: 100%;
margin-top: 6px;
.echarts_node_style_4 {
width: 100%;
height: 190px;
}
.echarts_node_style_5 {
width: 100%;
height: 190px;
}
}
}
}
/* 图表容器样式 */
.echarts_node_style_2,
.echarts_node_2,
.echarts_node {
width: 100%;
height: 100%;
}
/* 气泡样式 */
.bubble-wrap {
width: 100%;
z-index: 1500;
.bubble-box {
width: 100%;
border-radius: 4px;
border: 1px solid #42698f;
background-color: rgb(35 53 93 / 74%);
animation: slide-in-elliptic-bottom-fwd 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
.bubble-wrap__header {
display: flex;
padding: 10px 14px;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #42698f;
.bubble-wrap__title {
text-align: start;
font-size: 16px;
font-weight: bold;
color: #ffffff;
}
.bubble-wrap__close {
width: 12px;
height: 12px;
background-repeat: no-repeat;
background-size: 100% 100%;
cursor: pointer;
}
}
.bubble-wrap__content {
background-color: rgb(74 101 161 / 38%);
padding: 25px 10px;
display: flex;
justify-content: space-between;
align-items: flex-start;
color: #fff;
font-size: 14px;
.content__label {
width: 110px;
color: #fff;
font-size: 14px;
}
.content__text {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
text-overflow: ellipsis;
white-space: normal;
height: 48px;
}
}
.bubble-wrap__footer {
background-color: rgb(74 101 161 / 38%);
padding: 10px 14px;
text-align: right;
.footer__text {
color: #05e3fb;
font-size: 14px;
cursor: pointer;
margin: 0;
display: inline-flex;
align-items: center;
&:hover {
text-decoration: underline;
}
}
}
}
}
/* 动画效果 */
@keyframes moveUpDown {
0%,
100% {
transform: translateY(0);
}
50% {
transform: translateY(-5px);
}
}
@keyframes moveUpDown__2 {
0%,
100% {
transform: translateX(12px) translateY(-10px);
}
50% {
transform: translateX(12px) translateY(-15px);
}
}
@keyframes zooming {
0%,
100% {
transform: scale(1);
}
50% {
transform: scale(1.1);
}
}
@keyframes slide-in-elliptic-bottom-fwd {
0% {
transform: translateY(600px) rotateX(30deg) scale(0);
transform-origin: 50% 100%;
opacity: 0;
}
100% {
transform: translateY(0) rotateX(0) scale(1);
transform-origin: 50% 100%;
opacity: 1;
}
}