浏览代码

feat:燃气管网-基础数据管理

null 3 周之前
父节点
当前提交
505276f8bb
共有 1 个文件被更改,包括 318 次插入53 次删除
  1. 318 53
      src/views/subSystem/gas/ghome/gHome.vue

+ 318 - 53
src/views/subSystem/gas/ghome/gHome.vue

@@ -482,6 +482,11 @@ onBeforeUnmount(() => {
         </section>
       </div>
     </div>
+
+    <a href="https://deerflow.tech" target="_blank" class="deerflow-mark" title="Created By Deerflow">
+      <span class="deerflow-diamond">◆</span>
+      <span class="deerflow-text">Deerflow</span>
+    </a>
   </div>
 </template>
 
@@ -493,23 +498,62 @@ onBeforeUnmount(() => {
     linear-gradient(180deg, rgba(14, 42, 70, 0.96), rgba(8, 20, 37, 1)),
     radial-gradient(circle at center, rgba(36, 122, 184, 0.18), transparent 58%),
     #081425;
+  position: relative;
+}
+
+.gas-home-screen::before {
+  content: '';
+  position: absolute;
+  inset: 0;
+  pointer-events: none;
+  z-index: 0;
+  background:
+    radial-gradient(circle at 28% 32%, rgba(56, 216, 255, 0.06) 0%, transparent 45%),
+    radial-gradient(circle at 72% 58%, rgba(22, 109, 255, 0.05) 0%, transparent 40%),
+    radial-gradient(circle at 50% 85%, rgba(56, 216, 255, 0.04) 0%, transparent 35%);
+  animation: bgPulse 8s ease-in-out infinite alternate;
+}
+
+@keyframes bgPulse {
+  0% { opacity: 0.6; }
+  100% { opacity: 1; }
 }
 
 .screen-header {
   height: 72px;
-  padding: 0 18px;
+  padding: 0 24px;
   display: grid;
   grid-template-columns: 320px 1fr 320px;
   align-items: center;
-  border-bottom: 1px solid rgba(93, 194, 255, 0.28);
+  position: relative;
+  z-index: 1;
   background: linear-gradient(90deg, rgba(27, 98, 155, 0.95), rgba(18, 53, 98, 0.95));
+  border-bottom: 1px solid rgba(93, 194, 255, 0.28);
+}
+
+.screen-header::after {
+  content: '';
+  position: absolute;
+  bottom: -1px;
+  left: 5%;
+  width: 90%;
+  height: 1px;
+  background: linear-gradient(90deg, transparent, rgba(56, 216, 255, 0.7), rgba(22, 109, 255, 0.7), transparent);
+  animation: headerGlow 4s ease-in-out infinite alternate;
+}
+
+@keyframes headerGlow {
+  0% { opacity: 0.4; }
+  100% { opacity: 1; }
 }
 
 .header-time {
   font-size: 18px;
   font-weight: 700;
-  letter-spacing: 1px;
+  letter-spacing: 1.5px;
   color: #ddf6ff;
+  font-variant-numeric: tabular-nums;
+  text-shadow: 0 0 18px rgba(56, 216, 255, 0.35);
 }
 
 .header-title-wrap {
@@ -519,14 +563,19 @@ onBeforeUnmount(() => {
 .header-title {
   font-size: 30px;
   font-weight: 800;
-  letter-spacing: 2px;
+  letter-spacing: 3px;
+  background: linear-gradient(180deg, #e8f6ff 0%, #8fd6ff 100%);
+  -webkit-background-clip: text;
+  -webkit-text-fill-color: transparent;
+  background-clip: text;
 }
 
 .header-subtitle {
   margin-top: 4px;
-  color: rgba(196, 234, 255, 0.78);
-  font-size: 12px;
-  letter-spacing: 1px;
+  color: rgba(196, 234, 255, 0.65);
+  font-size: 11px;
+  letter-spacing: 3px;
+  text-transform: uppercase;
 }
 
 .header-tags {
@@ -536,12 +585,21 @@ onBeforeUnmount(() => {
 }
 
 .header-tag {
-  padding: 7px 12px;
-  border: 1px solid rgba(117, 206, 255, 0.4);
+  padding: 6px 14px;
+  border: 1px solid rgba(117, 206, 255, 0.35);
   border-radius: 16px;
   color: #d8f5ff;
   background: rgba(13, 77, 128, 0.45);
   font-size: 12px;
+  letter-spacing: 1px;
+  transition: all 0.3s;
+  cursor: default;
+}
+
+.header-tag:hover {
+  border-color: rgba(117, 206, 255, 0.7);
+  background: rgba(13, 77, 128, 0.65);
+  box-shadow: 0 0 16px rgba(56, 216, 255, 0.15);
 }
 
 .screen-body {
@@ -550,6 +608,8 @@ onBeforeUnmount(() => {
   display: grid;
   grid-template-columns: 360px 1fr 360px;
   gap: 12px;
+  position: relative;
+  z-index: 1;
 }
 
 .side-panel,
@@ -573,31 +633,51 @@ onBeforeUnmount(() => {
 
 .panel-card {
   min-height: 0;
-  padding: 12px;
+  padding: 14px;
+  position: relative;
   background: linear-gradient(180deg, rgba(13, 33, 56, 0.88), rgba(10, 25, 42, 0.88));
-  border: 1px solid rgba(65, 158, 219, 0.28);
-  border-radius: 10px;
-  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
+  border: 1px solid rgba(65, 158, 219, 0.22);
+  border-radius: 12px;
+  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.025);
+  transition: border-color 0.4s;
+}
+
+.panel-card::after {
+  content: '';
+  position: absolute;
+  top: -1px;
+  left: 20px;
+  right: 20px;
+  height: 1px;
+  border-radius: 1px;
+  background: linear-gradient(90deg, transparent, rgba(56, 216, 255, 0.25), transparent);
+  pointer-events: none;
+}
+
+.panel-card:hover {
+  border-color: rgba(65, 158, 219, 0.38);
 }
 
 .panel-title {
   position: relative;
-  padding-left: 14px;
-  margin-bottom: 12px;
+  padding-left: 16px;
+  margin-bottom: 14px;
   color: #8fe5ff;
   font-size: 18px;
   font-weight: 800;
+  letter-spacing: 1px;
 }
 
 .panel-title::before {
   content: '';
   position: absolute;
   left: 0;
-  top: 4px;
+  top: 3px;
   width: 4px;
-  height: 18px;
+  height: 20px;
   border-radius: 2px;
   background: linear-gradient(180deg, #28d7ff, #1776ff);
+  box-shadow: 0 0 10px rgba(40, 215, 255, 0.5);
 }
 
 .base-grid {
@@ -618,12 +698,37 @@ onBeforeUnmount(() => {
 .base-item {
   display: flex;
   align-items: center;
-  gap: 12px;
+  gap: 14px;
   min-height: 72px;
-  padding: 12px;
+  padding: 14px;
+  border-radius: 14px;
+  background: linear-gradient(180deg, rgba(20, 57, 89, 0.45), rgba(18, 44, 72, 0.35));
+  border: 1px solid rgba(97, 190, 255, 0.12);
+  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
+  cursor: default;
+  position: relative;
+  overflow: hidden;
+}
+
+.base-item::before {
+  content: '';
+  position: absolute;
+  inset: 0;
   border-radius: 14px;
-  background: linear-gradient(180deg, rgba(20, 57, 89, 0.55), rgba(18, 44, 72, 0.45));
-  border: 1px solid rgba(97, 190, 255, 0.16);
+  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.03), transparent 70%);
+  pointer-events: none;
+  transition: opacity 0.35s;
+  opacity: 0;
+}
+
+.base-item:hover {
+  transform: translateY(-2px);
+  border-color: rgba(97, 190, 255, 0.35);
+  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(97, 190, 255, 0.1) inset;
+}
+
+.base-item:hover::before {
+  opacity: 1;
 }
 
 .base-icon {
@@ -634,12 +739,24 @@ onBeforeUnmount(() => {
   align-items: center;
   justify-content: center;
   flex: 0 0 48px;
+  position: relative;
+  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s;
+}
+
+.base-item:hover .base-icon {
+  transform: scale(1.08);
+  box-shadow: 0 0 28px rgba(56, 216, 255, 0.3);
 }
 
 .base-icon-svg {
   width: 26px;
   height: 26px;
   color: #fff;
+  transition: transform 0.35s;
+}
+
+.base-item:hover .base-icon-svg {
+  transform: scale(1.1);
 }
 
 .base-text {
@@ -647,17 +764,20 @@ onBeforeUnmount(() => {
 }
 
 .base-label {
-  color: #d6efff;
-  font-size: 13px;
-  letter-spacing: 0.5px;
+  color: #c0dff5;
+  font-size: 12px;
+  letter-spacing: 1px;
+  text-transform: uppercase;
 }
 
 .base-value {
   margin-top: 4px;
   color: #fff;
-  font-size: 30px;
+  font-size: 32px;
   font-weight: 800;
   line-height: 1;
+  font-variant-numeric: tabular-nums;
+  letter-spacing: -0.5px;
 }
 
 .base-value span {
@@ -665,6 +785,7 @@ onBeforeUnmount(() => {
   color: #90d9ff;
   font-size: 12px;
   font-weight: 500;
+  letter-spacing: 0;
 }
 
 .chart-box {
@@ -693,24 +814,38 @@ onBeforeUnmount(() => {
   background: rgba(24, 122, 198, 0.55);
 }
 
+.data-table thead th {
+  font-weight: 700;
+  letter-spacing: 0.5px;
+  color: #b9e4ff;
+}
+
 .data-table th,
 .data-table td {
   padding: 10px 6px;
   color: #f4fbff;
   text-align: center;
   font-size: 13px;
-  border-bottom: 1px solid rgba(130, 194, 231, 0.12);
+  border-bottom: 1px solid rgba(130, 194, 231, 0.1);
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
 }
 
+.data-table tbody tr {
+  transition: background 0.25s;
+}
+
 .data-table tbody tr:nth-child(odd) {
-  background: rgba(133, 196, 242, 0.12);
+  background: rgba(133, 196, 242, 0.10);
 }
 
 .data-table tbody tr:nth-child(even) {
-  background: rgba(133, 196, 242, 0.06);
+  background: rgba(133, 196, 242, 0.04);
+}
+
+.data-table tbody tr:hover {
+  background: rgba(56, 216, 255, 0.12);
 }
 
 .compact-table th,
@@ -720,6 +855,7 @@ onBeforeUnmount(() => {
 
 .status-cell.ok {
   color: #6effc4;
+  position: relative;
 }
 
 .status-cell.warn {
@@ -730,6 +866,31 @@ onBeforeUnmount(() => {
   color: #ff8e8e;
 }
 
+.status-cell::before {
+  content: '';
+  display: inline-block;
+  width: 6px;
+  height: 6px;
+  border-radius: 50%;
+  margin-right: 6px;
+  vertical-align: middle;
+}
+
+.status-cell.ok::before {
+  background: #6effc4;
+  box-shadow: 0 0 6px rgba(110, 255, 196, 0.6);
+}
+
+.status-cell.warn::before {
+  background: #ffe16a;
+  box-shadow: 0 0 6px rgba(255, 225, 106, 0.6);
+}
+
+.status-cell.off::before {
+  background: #ff8e8e;
+  box-shadow: 0 0 6px rgba(255, 142, 142, 0.6);
+}
+
 .center-panel {
   position: relative;
 }
@@ -741,6 +902,7 @@ onBeforeUnmount(() => {
   border-radius: 12px;
   border: 1px solid rgba(56, 159, 223, 0.2);
   background: rgba(8, 20, 37, 0.64);
+  box-shadow: 0 0 40px rgba(0, 0, 0, 0.3), inset 0 0 60px rgba(8, 30, 60, 0.3);
 }
 
 .map-stage-top {
@@ -764,10 +926,12 @@ onBeforeUnmount(() => {
 .summary-item,
 .map-kpi {
   min-width: 110px;
-  padding: 10px 12px;
+  padding: 10px 14px;
   border-radius: 10px;
-  background: rgba(8, 31, 54, 0.78);
-  border: 1px solid rgba(79, 177, 238, 0.22);
+  background: rgba(8, 31, 54, 0.82);
+  border: 1px solid rgba(79, 177, 238, 0.18);
+  backdrop-filter: blur(8px);
+  transition: all 0.3s;
 }
 
 .summary-label,
@@ -775,14 +939,17 @@ onBeforeUnmount(() => {
   display: block;
   color: #91d7ff;
   font-size: 12px;
+  letter-spacing: 0.5px;
 }
 
 .summary-value,
 .map-kpi strong {
   display: block;
-  margin-top: 6px;
+  margin-top: 4px;
   color: #fff;
-  font-size: 20px;
+  font-size: 22px;
+  font-weight: 800;
+  letter-spacing: 1px;
 }
 
 .map-view {
@@ -805,10 +972,11 @@ onBeforeUnmount(() => {
   position: absolute;
   z-index: 3;
   width: 190px;
-  padding: 12px;
-  border-radius: 10px;
-  background: rgba(8, 31, 54, 0.78);
-  border: 1px solid rgba(79, 177, 238, 0.22);
+  padding: 14px;
+  border-radius: 12px;
+  background: rgba(8, 31, 54, 0.82);
+  border: 1px solid rgba(79, 177, 238, 0.18);
+  backdrop-filter: blur(10px);
 }
 
 .info-panel {
@@ -826,14 +994,21 @@ onBeforeUnmount(() => {
   color: #8fe5ff;
   font-size: 14px;
   font-weight: 700;
+  letter-spacing: 0.5px;
 }
 
 .mini-row {
   display: flex;
   justify-content: space-between;
-  margin-top: 8px;
+  margin-top: 6px;
+  padding: 4px 0;
   color: #d6efff;
   font-size: 13px;
+  border-bottom: 1px solid rgba(130, 194, 231, 0.06);
+}
+
+.mini-row:last-child {
+  border-bottom: none;
 }
 
 .warning-scroll {
@@ -843,12 +1018,12 @@ onBeforeUnmount(() => {
 }
 
 .warning-scroll::-webkit-scrollbar {
-  width: 6px;
+  width: 5px;
 }
 
 .warning-scroll::-webkit-scrollbar-thumb {
   border-radius: 999px;
-  background: rgba(96, 180, 235, 0.38);
+  background: rgba(96, 180, 235, 0.3);
 }
 
 .warning-scroll::-webkit-scrollbar-track {
@@ -857,27 +1032,71 @@ onBeforeUnmount(() => {
 
 .warning-list {
   display: grid;
-  gap: 12px;
+  gap: 10px;
 }
 
 .warning-item {
   display: flex;
   gap: 12px;
   align-items: stretch;
-  padding: 12px;
+  padding: 14px;
   border-radius: 14px;
   border: 1px solid rgba(255, 108, 108, 0.1);
-  background: linear-gradient(180deg, rgba(72, 24, 38, 0.48), rgba(49, 19, 31, 0.36));
+  background: linear-gradient(180deg, rgba(72, 24, 38, 0.42), rgba(49, 19, 31, 0.30));
+  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
+  position: relative;
+  overflow: hidden;
+}
+
+.warning-item::before {
+  content: '';
+  position: absolute;
+  left: 0;
+  top: 12px;
+  bottom: 12px;
+  width: 3px;
+  border-radius: 0 3px 3px 0;
+  transition: all 0.35s;
+}
+
+.warning-item.danger::before {
+  background: linear-gradient(180deg, #ff5858, #ff3030);
+  box-shadow: 0 0 12px rgba(255, 58, 58, 0.5);
+  animation: dangerPulse 2s ease-in-out infinite;
+}
+
+.warning-item.notice::before {
+  background: linear-gradient(180deg, #ffc635, #ff9f1a);
+  box-shadow: 0 0 10px rgba(255, 198, 53, 0.35);
+}
+
+@keyframes dangerPulse {
+  0%, 100% { opacity: 0.6; }
+  50% { opacity: 1; }
+}
+
+.warning-item:hover {
+  transform: translateX(3px);
+}
+
+.warning-item.danger:hover {
+  border-color: rgba(255, 108, 108, 0.25);
+  box-shadow: 0 4px 20px rgba(255, 58, 58, 0.1);
+}
+
+.warning-item.notice:hover {
+  border-color: rgba(255, 201, 92, 0.2);
+  box-shadow: 0 4px 20px rgba(255, 198, 53, 0.08);
 }
 
 .warning-item.notice {
   border-color: rgba(255, 201, 92, 0.1);
-  background: linear-gradient(180deg, rgba(78, 63, 23, 0.34), rgba(48, 43, 20, 0.24));
+  background: linear-gradient(180deg, rgba(78, 63, 23, 0.28), rgba(48, 43, 20, 0.18));
 }
 
 .warning-side {
-  width: 56px;
-  flex: 0 0 56px;
+  width: 52px;
+  flex: 0 0 52px;
   display: flex;
   flex-direction: column;
   gap: 8px;
@@ -885,8 +1104,8 @@ onBeforeUnmount(() => {
 }
 
 .warning-badge {
-  width: 32px;
-  height: 32px;
+  width: 34px;
+  height: 34px;
   border-radius: 10px;
   display: flex;
   align-items: center;
@@ -894,6 +1113,11 @@ onBeforeUnmount(() => {
   font-size: 13px;
   font-weight: 800;
   color: #fff;
+  transition: transform 0.3s;
+}
+
+.warning-item:hover .warning-badge {
+  transform: scale(1.1);
 }
 
 .warning-tag {
@@ -901,13 +1125,14 @@ onBeforeUnmount(() => {
   padding: 3px 0;
   border-radius: 999px;
   text-align: center;
-  font-size: 11px;
+  font-size: 10px;
+  letter-spacing: 0.5px;
   color: #dcefff;
-  background: rgba(255, 255, 255, 0.08);
+  background: rgba(255, 255, 255, 0.06);
 }
 
 .warning-item.danger .warning-badge {
-  background: rgba(255, 58, 58, 0.24);
+  background: rgba(255, 58, 58, 0.28);
   color: #ff8787;
 }
 
@@ -916,7 +1141,7 @@ onBeforeUnmount(() => {
 }
 
 .warning-item.notice .warning-badge {
-  background: rgba(255, 198, 53, 0.18);
+  background: rgba(255, 198, 53, 0.2);
   color: #ffd45d;
 }
 
@@ -966,7 +1191,7 @@ onBeforeUnmount(() => {
 .hazard-summary {
   display: flex;
   gap: 12px;
-  margin-bottom: 8px;
+  margin-bottom: 10px;
 }
 
 .hazard-summary.three-col {
@@ -978,6 +1203,16 @@ onBeforeUnmount(() => {
   align-items: center;
   gap: 8px;
   font-size: 13px;
+  padding: 8px 12px;
+  border-radius: 10px;
+  background: rgba(255, 255, 255, 0.03);
+  border: 1px solid rgba(255, 255, 255, 0.04);
+  transition: all 0.3s;
+}
+
+.hazard-summary-item:hover {
+  background: rgba(255, 255, 255, 0.06);
+  border-color: rgba(255, 255, 255, 0.08);
 }
 
 .hazard-dot {
@@ -985,6 +1220,7 @@ onBeforeUnmount(() => {
   height: 24px;
   display: inline-block;
   border-radius: 4px;
+  box-shadow: 0 0 10px currentColor;
 }
 
 .hazard-chart {
@@ -1000,6 +1236,35 @@ onBeforeUnmount(() => {
   display: none !important;
 }
 
+.deerflow-mark {
+  position: fixed;
+  bottom: 14px;
+  right: 18px;
+  z-index: 10;
+  display: flex;
+  align-items: center;
+  gap: 6px;
+  text-decoration: none;
+  opacity: 0.28;
+  transition: opacity 0.4s;
+}
+
+.deerflow-mark:hover {
+  opacity: 0.6;
+}
+
+.deerflow-diamond {
+  font-size: 10px;
+  color: #8fe5ff;
+}
+
+.deerflow-text {
+  font-size: 11px;
+  letter-spacing: 1px;
+  color: #8fe5ff;
+  font-weight: 500;
+}
+
 @media (max-width: 1500px) {
   .screen-body {
     grid-template-columns: 320px 1fr 320px;