index.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <template>
  2. <div class="water-station-content">
  3. <!-- 左侧统计面板 -->
  4. <div class="left-panel">
  5. <div class="left-panel-3d">
  6. <div class="stats-card">
  7. <div class="stats-title">圩区统计</div>
  8. <div class="stats-grid">
  9. <div class="stat-item">
  10. <div class="stat-value">18</div>
  11. <div class="stat-label">骨干河道</div>
  12. </div>
  13. <div class="stat-item">
  14. <div class="stat-value">94</div>
  15. <div class="stat-label">圩区总数</div>
  16. </div>
  17. <div class="stat-item">
  18. <div class="stat-value">618</div>
  19. <div class="stat-label">防洪闸</div>
  20. </div>
  21. <div class="stat-item">
  22. <div class="stat-value">560</div>
  23. <div class="stat-label">排涝站</div>
  24. </div>
  25. <div class="stat-item">
  26. <div class="stat-value">2173.69<span class="stat-unit">m³/s</span></div>
  27. <div class="stat-label">排涝流量</div>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. </template>
  35. <script setup>
  36. </script>
  37. <style lang="scss">
  38. .water-station-content {
  39. position: absolute;
  40. top: 0;
  41. left: 0;
  42. right: 0;
  43. bottom: 0;
  44. z-index: 2;
  45. pointer-events: none;
  46. }
  47. .left-panel {
  48. position: absolute;
  49. z-index: 4;
  50. width: 398px;
  51. left: 32px;
  52. top: 180px;
  53. bottom: 50px;
  54. perspective: 500px;
  55. perspective-origin: 50% 50%;
  56. }
  57. .left-panel-3d {
  58. position: absolute;
  59. left: 0;
  60. top: 0;
  61. right: 0;
  62. bottom: 0;
  63. display: flex;
  64. flex-direction: column;
  65. justify-content: space-between;
  66. transform: translate3d(0px, 0px, 0px) scaleX(1) scaleY(1) rotateX(0deg) rotateY(6deg) rotateZ(0deg) skewX(0deg) skewY(0deg);
  67. z-index: 4;
  68. }
  69. .stats-card {
  70. height: 450px;
  71. background: rgba(0, 20, 40, 0.8);
  72. border: 1px solid rgba(48, 220, 255, 0.3);
  73. border-radius: 10px;
  74. box-shadow: 0 0 20px rgba(48, 220, 255, 0.1);
  75. padding: 20px;
  76. pointer-events: auto;
  77. transform: translateX(-150%);
  78. opacity: 0;
  79. .stats-title {
  80. font-size: 20px;
  81. font-weight: bold;
  82. color: #30dcff;
  83. text-align: center;
  84. margin-bottom: 20px;
  85. padding-bottom: 15px;
  86. border-bottom: 1px solid rgba(48, 220, 255, 0.3);
  87. letter-spacing: 4px;
  88. }
  89. .stats-grid {
  90. display: flex;
  91. flex-direction: column;
  92. gap: 15px;
  93. }
  94. .stat-item {
  95. display: flex;
  96. justify-content: space-between;
  97. align-items: center;
  98. padding: 15px 20px;
  99. background: rgba(48, 220, 255, 0.05);
  100. border: 1px solid rgba(48, 220, 255, 0.15);
  101. border-radius: 8px;
  102. transition: all 0.3s ease;
  103. &:hover {
  104. background: rgba(48, 220, 255, 0.1);
  105. border-color: rgba(48, 220, 255, 0.3);
  106. }
  107. .stat-value {
  108. font-size: 28px;
  109. font-weight: bold;
  110. color: #30dcff;
  111. text-shadow: 0 0 10px rgba(48, 220, 255, 0.5);
  112. .stat-unit {
  113. font-size: 14px;
  114. margin-left: 4px;
  115. opacity: 0.8;
  116. }
  117. }
  118. .stat-label {
  119. font-size: 15px;
  120. color: #a3dcde;
  121. }
  122. }
  123. }
  124. </style>