heavyMetalEnterprise.vue 9.6 KB

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