heavyMetalEnterprise.vue 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <template>
  2. <div class="page-container">
  3. <div class="point-map">
  4. <div class="component-title">采样点地图展示</div>
  5. <AtmCompanytencentMap/>
  6. </div>
  7. <div class="point-line">
  8. <div class="component-title">采样点数据列表展示</div>
  9. <atmcompanyline/>
  10. </div>
  11. </div>
  12. </template>
  13. <script setup>
  14. import { ref, onMounted, watch, computed } from 'vue';
  15. import * as echarts from 'echarts';
  16. import atmcompanyline from './atmcompanyline.vue';
  17. import AtmCompanytencentMap from './atmCompanytencentMap.vue';
  18. </script>
  19. <style scoped>
  20. .page-container {
  21. display: flex;
  22. flex-direction: column;
  23. height: 100vh; /* 整屏高度 */
  24. padding: 0;
  25. box-sizing: border-box;
  26. background-color: #f5f7fa;
  27. gap: 20px;
  28. margin: 0;
  29. }
  30. .point-map {
  31. flex: 0 0 70%;
  32. margin-bottom: 20px;
  33. background-color: white;
  34. border-radius: 8px;
  35. box-shadow: 0 2px 4px rgba(0,0,0,1);
  36. overflow: hidden;
  37. }
  38. .point-line {
  39. background-color: white;
  40. border-radius: 12px;/*圆角 */
  41. box-shadow: 0 2px 8px rgba(0, 0,0, 0.08);
  42. padding: 16px;/*内部间距 */
  43. box-sizing: border-box;
  44. }
  45. .charts-line{
  46. background-color: white;
  47. border-radius: 12px;
  48. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  49. padding: 16px;
  50. box-sizing: border-box;
  51. max-width: 1800px;
  52. width: 100%;
  53. margin: 20px auto;
  54. }
  55. .component-title {
  56. /* 基础布局:左对齐 + 紧凑间距 */
  57. text-align: left; /* 强制左对齐,告别居中 */
  58. margin: 12px 0; /* 上下间距缩小,更紧凑(原16px→12px) */
  59. padding-left: 24px; /* 给蓝色方块留空间 */
  60. position: relative; /* 为伪元素定位做准备 */
  61. /* 文字样式:简约但醒目 */
  62. font-size: 1.7rem; /* 稍小一号,更克制(原1.5rem→1.25rem) */
  63. font-weight: 600; /* 适度加粗,比正文突出但不夸张 */
  64. color: #1e88e5; /* 统一蓝色,和方块颜色呼应 */
  65. line-height: 1.2; /* 紧凑行高,避免臃肿 */
  66. }
  67. /* 蓝色小方块:用伪元素实现,无额外HTML */
  68. .component-title::before {
  69. content: "";
  70. position: absolute;
  71. left: 0; /* 靠最左侧 */
  72. top: 50%; /* 垂直居中 */
  73. transform: translateY(-50%);
  74. width: 12px; /* 方块大小,适中即可 */
  75. height: 12px;
  76. background-color: #1e88e5; /* 和文字同色,统一感 */
  77. border-radius: 2px; /* 轻微圆角,比直角更柔和 */
  78. }
  79. </style>