heavyMetalEnterprise.vue 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492
  1. <template>
  2. <div class="page-container">
  3. <!-- 页面标题区域 -->
  4. <div class="header-section">
  5. <div class="header-content">
  6. <h1 class="system-title">韶关市涉重企业环境数据监测系统</h1>
  7. </div>
  8. </div>
  9. <!-- 地图展示区域 -->
  10. <div class="dashboard-section map-section">
  11. <div class="section-header">
  12. <div class="section-icon">🗺️</div>
  13. <h2 class="section-title">涉重企业地理分布</h2>
  14. </div>
  15. <div class="map-container">
  16. <div class="map-holder">
  17. <atmcompanymap/>
  18. </div>
  19. </div>
  20. </div>
  21. <!-- 数据展示区域 - 上下排列 -->
  22. <div class="data-section">
  23. <!-- 企业数据列表 -->
  24. <div class="dashboard-section table-section">
  25. <div class="section-header">
  26. <div class="section-icon">📋</div>
  27. <h2 class="section-title">涉重企业数据列表</h2>
  28. <div class="data-info">
  29. <span class="info-item">数据更新时间: 2025-08-16</span>
  30. <span class="info-item">当前显示: 42家企业</span>
  31. </div>
  32. </div>
  33. <div class="data-card">
  34. <div class="table-container">
  35. <atmcompanyline/>
  36. </div>
  37. </div>
  38. </div>
  39. <!-- 排放分析图表 -->
  40. <div class="dashboard-section chart-section">
  41. <div class="section-header">
  42. <div class="section-icon">📊</div>
  43. <h2 class="section-title">大气颗粒物排放分析</h2>
  44. <div class="emission-info">
  45. <span class="info-item">单位: 吨/年 (t/a)</span>
  46. <span class="info-item">统计周期: 2025年</span>
  47. </div>
  48. </div>
  49. <div class="chart-card">
  50. <div class="chart-header">
  51. <h3>各区县企业平均大气颗粒物排放量</h3>
  52. <p>重金属企业大气污染物排放分布情况</p>
  53. </div>
  54. <div class="chart-container">
  55. <HeavyMetalEnterprisechart/>
  56. </div>
  57. <div class="chart-legend">
  58. <div class="legend-item">
  59. <div class="legend-color primary"></div>
  60. <span>颗粒物排放量</span>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. </template>
  68. <script setup>
  69. import atmcompanyline from '@/components/atmpollution/atmcompanyline.vue';
  70. import atmcompanymap from '@/components/atmpollution/atmcompanymap.vue';
  71. import HeavyMetalEnterprisechart from '@/components/atmpollution/heavyMetalEnterprisechart.vue';
  72. </script>
  73. <style scoped>
  74. /* 基础样式重置 */
  75. * {
  76. margin: 0;
  77. padding: 0;
  78. box-sizing: border-box;
  79. font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
  80. }
  81. .page-container {
  82. display: flex;
  83. flex-direction: column;
  84. min-height: 100vh;
  85. background: linear-gradient(135deg, #f0f9ff 0%, #e9ecef 100%);
  86. padding: 25px;
  87. gap: 30px;
  88. position: relative;
  89. overflow-x: hidden;
  90. }
  91. /* 页眉区域 */
  92. .header-section {
  93. text-align: center;
  94. padding: 30px 0 20px;
  95. position: relative;
  96. }
  97. .header-content {
  98. display: flex;
  99. justify-content: space-between;
  100. align-items: center;
  101. }
  102. .system-title {
  103. color: #1a365d;
  104. font-size: 2.8rem;
  105. margin-bottom: 12px;
  106. font-weight: 700;
  107. letter-spacing: 0.5px;
  108. text-shadow: 0 2px 4px rgba(0,0,0,0.05);
  109. }
  110. .system-subtitle {
  111. font-size: 1.3rem;
  112. color: #cbd5e0;
  113. margin: 10px 0 0;
  114. }
  115. .header-actions {
  116. display: flex;
  117. gap: 15px;
  118. }
  119. .action-btn {
  120. display: flex;
  121. align-items: center;
  122. gap: 8px;
  123. padding: 10px 20px;
  124. background: rgba(255, 255, 255, 0.15);
  125. color: white;
  126. border: 1px solid rgba(255, 255, 255, 极 0.3);
  127. border-radius: 8px;
  128. font-size: 1rem;
  129. font-weight: 500;
  130. cursor: pointer;
  131. transition: all 0.3s ease;
  132. }
  133. .action-btn:hover {
  134. background: rgba(255, 255, 255, 0.25);
  135. transform: translateY(-3px);
  136. }
  137. .btn-icon {
  138. font-size: 1.2rem;
  139. }
  140. .header-stats {
  141. display: flex;
  142. gap: 20px;
  143. }
  144. .stat-card {
  145. flex: 1;
  146. display: flex;
  147. align-items: center;
  148. gap: 15px;
  149. background: rgba(255, 255, 255, 0.1);
  150. border-radius: 12px;
  151. padding: 15极 px;
  152. backdrop-filter: blur(5px);
  153. border: 1px solid rgba(255, 255, 255, 0.1);
  154. }
  155. .stat-icon {
  156. font-size: 2.5rem;
  157. color: #4a9ef7;
  158. }
  159. .stat-info {
  160. flex: 1;
  161. }
  162. .stat-value {
  163. font-size: 2.2rem;
  164. font-weight: 700;
  165. color: white;
  166. line-height: 1.2;
  167. }
  168. .stat-label {
  169. font-size: 1rem;
  170. color: #cbd5e0;
  171. font-weight: 500;
  172. }
  173. /* 地图区域 */
  174. .dashboard-section {
  175. margin-bottom: 20px;
  176. }
  177. .map-section {
  178. background: white;
  179. border-radius: 16px;
  180. padding: 25px;
  181. box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  182. }
  183. .section-header {
  184. display: flex;
  185. align-items: center;
  186. gap: 15px;
  187. margin-bottom: 20px;
  188. }
  189. .section-icon {
  190. font-size: 2.2rem;
  191. color: #3a9fd3;
  192. }
  193. .section-title {
  194. font-size: 1.8rem;
  195. font-weight: 600;
  196. color: #1a365d;
  197. margin: 0;
  198. position: relative;
  199. padding-left: 10px;
  200. }
  201. .section-title::before {
  202. content: "";
  203. position: absolute;
  204. left: 0;
  205. top: 50%;
  206. transform: translateY(-50%);
  207. width: 4px;
  208. height: 80%;
  209. background: linear-gradient(to bottom, #4a9ef7, #3acfd5);
  210. border-radius: 2px;
  211. }
  212. .map-controls {
  213. margin-left: auto;
  214. display: flex;
  215. align-items: center;
  216. gap: 10px;
  217. }
  218. .control-label {
  219. font-size: 0.9rem;
  220. color: #4a5568;
  221. }
  222. .control-select {
  223. padding: 8px 12px;
  224. border: 1px solid #cbd5e0;
  225. border-radius: 6px;
  226. background: white;
  227. font-size: 0.9rem;
  228. }
  229. .map-container {
  230. position: relative;
  231. height: 550px;
  232. border-radius: 12px;
  233. overflow: hidden;
  234. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  235. }
  236. .map-holder {
  237. position: relative;
  238. height: 100%;
  239. z-index: 100;
  240. }
  241. .map-legend {
  242. position: absolute;
  243. bottom: 20px;
  244. left: 20px;
  245. z-index: 200;
  246. display: flex;
  247. gap: 15px;
  248. background: rgba(255, 255, 255, 0.9);
  249. border-radius: 8px;
  250. padding: 10px 15px;
  251. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  252. }
  253. .legend-item {
  254. display: flex;
  255. align-items: center;
  256. gap: 8px;
  257. }
  258. .legend-color {
  259. width: 20px;
  260. height: 20px;
  261. border-radius: 4px;
  262. }
  263. .high-risk { background-color: #e53e3e; }
  264. .medium-risk { background-color: #dd6b20; }
  265. .low-risk { background-color: #38a169; }
  266. /* 数据展示区域 - 上下排列 */
  267. .data-section {
  268. display: flex;
  269. flex-direction: column;
  270. gap: 30px;
  271. }
  272. /* 企业数据列表 - 固定高度滚动条 */
  273. .data-card {
  274. height: 450px;
  275. background: white;
  276. border-radius: 16px;
  277. box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  278. overflow: hidden;
  279. display: flex;
  280. flex-direction: column;
  281. }
  282. .table-container {
  283. height: 100%;
  284. overflow-y: auto;
  285. padding: 15px;
  286. }
  287. /* 图表区域 - 固定高度 */
  288. .chart-card {
  289. height: 750px;
  290. padding: 20px;
  291. background: white;
  292. border-radius: 16px;
  293. box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  294. display: flex;
  295. flex-direction: column;
  296. }
  297. .chart-container {
  298. flex: 1;
  299. min-height: 0; /* 修复flex容器滚动问题 */
  300. }
  301. .data-info, .emission-info {
  302. display: flex;
  303. gap: 20px;
  304. margin-left: 30px;
  305. font-size: 0.9rem;
  306. color: #4a5568;
  307. }
  308. .chart-header {
  309. margin-bottom: 15px;
  310. padding-bottom: 10px;
  311. border-bottom: 1px solid #e2e8f0;
  312. }
  313. .chart-header h3 {
  314. font-size: 1.4rem;
  315. color: #1a365d;
  316. margin: 0 0 5px 0;
  317. }
  318. .chart-header p {
  319. font-size: 1rem;
  320. color: #718096;
  321. margin: 0;
  322. }
  323. .chart-legend {
  324. display: flex;
  325. justify-content: center;
  326. margin-top: 15px;
  327. padding-top: 10px;
  328. border-top: 1px solid #e2e8f0;
  329. }
  330. .legend-item .primary {
  331. background-color: #3182ce;
  332. }
  333. /* 页脚区域 */
  334. .footer-section {
  335. margin-top: 30px;
  336. padding: 20px 0;
  337. text-align: center;
  338. color: #546e7a;
  339. font-size: 1rem;
  340. border-top: 1px solid #e2e8f0;
  341. }
  342. .footer-links {
  343. display: flex;
  344. justify-content: center;
  345. gap: 30px;
  346. margin-top: 10px;
  347. font-size: 0.9rem;
  348. color: #718096;
  349. }
  350. /* 响应式设计 */
  351. @media (max-width: 1200px) {
  352. .header-stats {
  353. flex-wrap: wrap;
  354. }
  355. .stat-card {
  356. flex: 0 0 calc(50% - 10px);
  357. margin-bottom: 10px;
  358. }
  359. }
  360. @media (max-width: 900px) {
  361. .header-content {
  362. flex-direction: column;
  363. align-items: flex-start;
  364. gap: 15px;
  365. }
  366. .header-actions {
  367. width: 100%;
  368. justify-content: flex-end;
  369. }
  370. .system-title {
  371. font-size: 2rem;
  372. }
  373. .section-title {
  374. font-size: 1.6rem;
  375. }
  376. }
  377. @media (max-width: 768px) {
  378. .page-container {
  379. padding: 15px;
  380. gap: 20px;
  381. }
  382. .map-container {
  383. height: 450px;
  384. }
  385. .data-card, .chart-card {
  386. height: 350px;
  387. }
  388. .section-header {
  389. flex-wrap: wrap;
  390. }
  391. .map-controls {
  392. margin-top: 10px;
  393. width: 100%;
  394. }
  395. .data-info, .emission-info {
  396. margin-left: 0;
  397. margin-top: 10px;
  398. width: 100%;
  399. }
  400. }
  401. @media (max-width: 480px) {
  402. .system-title {
  403. font-size: 1.8rem;
  404. }
  405. .section-title {
  406. font-size: 1.4rem;
  407. }
  408. .map-container {
  409. height: 400px;
  410. }
  411. .data-card, .chart-card {
  412. height: 300px;
  413. }
  414. .footer-links {
  415. flex-direction: column;
  416. gap: 5px;
  417. }
  418. .header-stats {
  419. gap: 10px;
  420. }
  421. .stat-card {
  422. flex: 0 0 100%;
  423. }
  424. }
  425. </style>