irriWaterSampleData.vue 9.1 KB

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