airInputFlux.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <template>
  2. <div class="agricultural-input-management">
  3. <div class="page-container">
  4. <el-card class="results-card">
  5. <div class="results-content">
  6. <!-- 地图区域 -->
  7. <div class="map-section">
  8. <h3>大气Cd通量分布图</h3>
  9. <div class="image-container">
  10. <img
  11. src="/大气通量(1).jpg"
  12. alt="大气通量分布图"
  13. class="result-image"
  14. >
  15. </div>
  16. </div>
  17. </div>
  18. </el-card>
  19. </div>
  20. </div>
  21. </template>
  22. <script>
  23. import { ElButton, ElCard } from 'element-plus';
  24. export default {
  25. name: 'AtmosphereFluxMap',
  26. components: {
  27. ElButton,
  28. ElCard
  29. }
  30. };
  31. </script>
  32. <style scoped>
  33. .page-container {
  34. width: 100%;
  35. height: 100%;
  36. }
  37. /* 结果卡片样式 */
  38. .results-card {
  39. background-color: rgba(255, 255, 255, 0.8);
  40. border-radius: 8px;
  41. padding: 20px;
  42. box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  43. backdrop-filter: blur(5px);
  44. height: 100%;
  45. box-sizing: border-box;
  46. }
  47. .results-content {
  48. height: 100%;
  49. display: flex;
  50. flex-direction: column;
  51. }
  52. .map-section {
  53. background-color: rgba(255, 255, 255, 0.8);
  54. border-radius: 8px;
  55. padding: 20px;
  56. box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  57. }
  58. h3 {
  59. margin-bottom: 15px;
  60. color: #333;
  61. font-size: 18px;
  62. font-weight: 600;
  63. }
  64. /* 图片容器限定大小 */
  65. .image-container {
  66. width: 100%;
  67. height: 500px;
  68. display: flex;
  69. justify-content: center;
  70. align-items: center;
  71. background-color: #f9f9f9;
  72. border-radius: 8px;
  73. overflow: hidden;
  74. }
  75. .result-image {
  76. max-width: 100%;
  77. max-height: 100%;
  78. object-fit: contain;
  79. transition: transform 0.3s ease;
  80. }
  81. .result-image:hover {
  82. transform: scale(1.02);
  83. }
  84. /* 响应式设计 */
  85. @media (max-width: 768px) {
  86. .image-container {
  87. height: 400px;
  88. }
  89. }
  90. @media (max-width: 480px) {
  91. .agricultural-input-management {
  92. padding: 10px;
  93. }
  94. .image-container {
  95. height: 300px;
  96. }
  97. }
  98. </style>