|
|
@@ -0,0 +1,782 @@
|
|
|
+<template>
|
|
|
+ <div class="water-environment-content">
|
|
|
+ <!-- 左侧面板 -->
|
|
|
+ <div class="left-panel">
|
|
|
+ <div class="left-panel-3d">
|
|
|
+ <!-- 水质监测面板 -->
|
|
|
+ <m-card title="水质监测" class="water-environment-card water-environment-card-top" :width="398" :height="320">
|
|
|
+ <div class="water-quality-panel">
|
|
|
+ <!-- 核心成效数据 -->
|
|
|
+ <div class="quality-achievement">
|
|
|
+ <div class="achievement-item">
|
|
|
+ <div class="achievement-label">国省考断面优Ⅲ比例</div>
|
|
|
+ <div class="achievement-value">90%</div>
|
|
|
+ </div>
|
|
|
+ <div class="achievement-item">
|
|
|
+ <div class="achievement-label">优Ⅱ比例</div>
|
|
|
+ <div class="achievement-value">60%</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 水质指标列表 -->
|
|
|
+ <div class="quality-indicators">
|
|
|
+ <div class="indicator-item" v-for="(indicator, index) in qualityIndicators" :key="index" :class="{ 'over-limit': indicator.isOverLimit }">
|
|
|
+ <div class="indicator-name">{{ indicator.name }}</div>
|
|
|
+ <div class="indicator-value">{{ indicator.value }} <span class="unit">{{ indicator.unit }}</span></div>
|
|
|
+ <div class="indicator-status">
|
|
|
+ <div class="status-bar">
|
|
|
+ <div class="status-fill" :style="{ width: indicator.percent + '%', background: indicator.isOverLimit ? '#ff4444' : '#00d4ff' }"></div>
|
|
|
+ </div>
|
|
|
+ <div class="status-text" :class="{ 'warning': indicator.isOverLimit }">{{ indicator.status }}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </m-card>
|
|
|
+
|
|
|
+ <!-- 水质趋势 -->
|
|
|
+ <m-card title="水质趋势" class="water-environment-card water-environment-card-bottom" :width="398" :height="480">
|
|
|
+ <div class="water-quality-trend">
|
|
|
+ <div class="trend-chart">
|
|
|
+ <div class="chart-header">
|
|
|
+ <div class="chart-title">近7日水质变化</div>
|
|
|
+ <div class="chart-legend">
|
|
|
+ <div class="legend-item">
|
|
|
+ <div class="legend-color" style="background: #00d4ff;"></div>
|
|
|
+ <span>优Ⅲ</span>
|
|
|
+ </div>
|
|
|
+ <div class="legend-item">
|
|
|
+ <div class="legend-color" style="background: #ffaa00;"></div>
|
|
|
+ <span>Ⅳ</span>
|
|
|
+ </div>
|
|
|
+ <div class="legend-item">
|
|
|
+ <div class="legend-color" style="background: #ff4444;"></div>
|
|
|
+ <span>劣Ⅴ</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="chart-body">
|
|
|
+ <div class="chart-bar" v-for="(item, index) in trendData" :key="index">
|
|
|
+ <div class="bar-wrapper">
|
|
|
+ <div class="bar-fill" :style="{ height: item.height, background: item.color }"></div>
|
|
|
+ </div>
|
|
|
+ <div class="bar-label">{{ item.date }}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </m-card>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 右侧面板 -->
|
|
|
+ <div class="right-panel">
|
|
|
+ <div class="right-panel-3d">
|
|
|
+ <!-- 水质站点分布 -->
|
|
|
+ <m-card title="水质站点分布" class="water-environment-card water-environment-card-top" :width="398" :height="350">
|
|
|
+ <div class="station-distribution">
|
|
|
+ <div class="distribution-stats">
|
|
|
+ <div class="stat-item excellent">
|
|
|
+ <div class="stat-icon">优</div>
|
|
|
+ <div class="stat-info">
|
|
|
+ <div class="stat-value">45</div>
|
|
|
+ <div class="stat-label">优良站点</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="stat-item good">
|
|
|
+ <div class="stat-icon">良</div>
|
|
|
+ <div class="stat-info">
|
|
|
+ <div class="stat-value">8</div>
|
|
|
+ <div class="stat-label">良好站点</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="stat-item poor">
|
|
|
+ <div class="stat-icon">差</div>
|
|
|
+ <div class="stat-info">
|
|
|
+ <div class="stat-value">4</div>
|
|
|
+ <div class="stat-label">较差站点</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="station-list">
|
|
|
+ <div class="station-item" v-for="(station, index) in stationList" :key="index">
|
|
|
+ <div class="station-name">{{ station.name }}</div>
|
|
|
+ <div class="station-level" :class="station.levelClass">{{ station.level }}</div>
|
|
|
+ <div class="station-score">{{ station.score }}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </m-card>
|
|
|
+
|
|
|
+ <!-- 污染源监控 -->
|
|
|
+ <m-card title="污染源监控" class="water-environment-card water-environment-card-bottom" :width="398" :height="450">
|
|
|
+ <div class="pollution-monitor">
|
|
|
+ <div class="pollution-stats">
|
|
|
+ <div class="pollution-item">
|
|
|
+ <div class="pollution-title">工业污染源</div>
|
|
|
+ <div class="pollution-value">12</div>
|
|
|
+ <div class="pollution-unit">个</div>
|
|
|
+ </div>
|
|
|
+ <div class="pollution-item">
|
|
|
+ <div class="pollution-title">生活污染源</div>
|
|
|
+ <div class="pollution-value">28</div>
|
|
|
+ <div class="pollution-unit">个</div>
|
|
|
+ </div>
|
|
|
+ <div class="pollution-item">
|
|
|
+ <div class="pollution-title">农业污染源</div>
|
|
|
+ <div class="pollution-value">15</div>
|
|
|
+ <div class="pollution-unit">个</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="pollution-list">
|
|
|
+ <div class="pollution-list-header">
|
|
|
+ <div class="header-item">污染源名称</div>
|
|
|
+ <div class="header-item">类型</div>
|
|
|
+ <div class="header-item">排放量</div>
|
|
|
+ <div class="header-item">状态</div>
|
|
|
+ </div>
|
|
|
+ <div class="pollution-list-body">
|
|
|
+ <div class="pollution-item-row" v-for="(item, index) in pollutionList" :key="index">
|
|
|
+ <div class="item-cell">{{ item.name }}</div>
|
|
|
+ <div class="item-cell">{{ item.type }}</div>
|
|
|
+ <div class="item-cell">{{ item.emission }}</div>
|
|
|
+ <div class="item-cell">
|
|
|
+ <div class="status-badge" :class="item.statusClass">{{ item.status }}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </m-card>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script setup>
|
|
|
+import { ref } from "vue"
|
|
|
+import mCard from "@/components/mCard/index.vue"
|
|
|
+
|
|
|
+const qualityIndicators = ref([
|
|
|
+ { name: 'pH值', value: 7.2, unit: '', status: '正常', percent: 72, isOverLimit: false },
|
|
|
+ { name: '溶解氧', value: 6.8, unit: 'mg/L', status: '正常', percent: 85, isOverLimit: false },
|
|
|
+ { name: '氨氮', value: 0.45, unit: 'mg/L', status: '正常', percent: 45, isOverLimit: false },
|
|
|
+ { name: 'COD', value: 18.5, unit: 'mg/L', status: '正常', percent: 62, isOverLimit: false },
|
|
|
+ { name: '总磷', value: 0.12, unit: 'mg/L', status: '正常', percent: 60, isOverLimit: false },
|
|
|
+ { name: '总氮', value: 1.2, unit: 'mg/L', status: '正常', percent: 60, isOverLimit: false },
|
|
|
+ { name: '高锰酸盐指数', value: 4.2, unit: 'mg/L', status: '正常', percent: 70, isOverLimit: false },
|
|
|
+ { name: '氟化物', value: 0.8, unit: 'mg/L', status: '正常', percent: 40, isOverLimit: false },
|
|
|
+ { name: '氰化物', value: 0.005, unit: 'mg/L', status: '正常', percent: 10, isOverLimit: false },
|
|
|
+ { name: '挥发酚', value: 0.001, unit: 'mg/L', status: '正常', percent: 5, isOverLimit: false }
|
|
|
+])
|
|
|
+
|
|
|
+const trendData = ref([
|
|
|
+ { date: '02-06', height: '90%', color: '#00d4ff' },
|
|
|
+ { date: '02-07', height: '85%', color: '#00d4ff' },
|
|
|
+ { date: '02-08', height: '88%', color: '#00d4ff' },
|
|
|
+ { date: '02-09', height: '75%', color: '#ffaa00' },
|
|
|
+ { date: '02-10', height: '92%', color: '#00d4ff' },
|
|
|
+ { date: '02-11', height: '87%', color: '#00d4ff' },
|
|
|
+ { date: '02-12', height: '90%', color: '#00d4ff' }
|
|
|
+])
|
|
|
+
|
|
|
+const stationList = ref([
|
|
|
+ { name: '巴城湖', level: 'Ⅱ类', levelClass: 'level-excellent', score: '92' },
|
|
|
+ { name: '斜塘', level: 'Ⅲ类', levelClass: 'level-good', score: '85' },
|
|
|
+ { name: '赵库', level: 'Ⅱ类', levelClass: 'level-excellent', score: '90' },
|
|
|
+ { name: '兵希(浏)', level: 'Ⅲ类', levelClass: 'level-good', score: '82' },
|
|
|
+ { name: '大直', level: 'Ⅳ类', levelClass: 'level-poor', score: '68' }
|
|
|
+])
|
|
|
+
|
|
|
+const pollutionList = ref([
|
|
|
+ { name: '昆山污水处理厂', type: '工业', emission: '1200', status: '正常', statusClass: 'normal' },
|
|
|
+ { name: '周市化工园区', type: '工业', emission: '850', status: '正常', statusClass: 'normal' },
|
|
|
+ { name: '花桥生活污水站', type: '生活', emission: '680', status: '正常', statusClass: 'normal' },
|
|
|
+ { name: '张浦农业灌溉区', type: '农业', emission: '420', status: '正常', statusClass: 'normal' },
|
|
|
+ { name: '千灯印染厂', type: '工业', emission: '560', status: '预警', statusClass: 'warning' }
|
|
|
+])
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.water-environment-content {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ bottom: 0;
|
|
|
+ z-index: 100;
|
|
|
+}
|
|
|
+
|
|
|
+.left-panel {
|
|
|
+ position: absolute;
|
|
|
+ z-index: 4;
|
|
|
+ width: 398px;
|
|
|
+ left: 32px;
|
|
|
+ top: 100px;
|
|
|
+ bottom: 50px;
|
|
|
+ perspective: 500px;
|
|
|
+ perspective-origin: 50% 50%;
|
|
|
+}
|
|
|
+
|
|
|
+.left-panel-3d {
|
|
|
+ position: absolute;
|
|
|
+ left: 0;
|
|
|
+ top: 0;
|
|
|
+ right: 0;
|
|
|
+ bottom: 0;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: 10px;
|
|
|
+ transform: translate3d(0px, 0px, 0px) scaleX(1) scaleY(1) rotateX(0deg) rotateY(6deg) rotateZ(0deg) skewX(0deg) skewY(0deg);
|
|
|
+ z-index: 4;
|
|
|
+}
|
|
|
+
|
|
|
+.right-panel {
|
|
|
+ position: absolute;
|
|
|
+ z-index: 4;
|
|
|
+ width: 398px;
|
|
|
+ right: 32px;
|
|
|
+ top: 100px;
|
|
|
+ bottom: 50px;
|
|
|
+ perspective: 500px;
|
|
|
+ perspective-origin: 50% 50%;
|
|
|
+}
|
|
|
+
|
|
|
+.right-panel-3d {
|
|
|
+ position: absolute;
|
|
|
+ left: 0;
|
|
|
+ top: 0;
|
|
|
+ right: 0;
|
|
|
+ bottom: 0;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: 10px;
|
|
|
+ transform: translate3d(0px, 0px, 0px) scaleX(1) scaleY(1) rotateX(0deg) rotateY(-6deg) rotateZ(0deg) skewX(0deg) skewY(0deg);
|
|
|
+ z-index: 4;
|
|
|
+}
|
|
|
+
|
|
|
+.water-environment-card {
|
|
|
+ pointer-events: auto;
|
|
|
+
|
|
|
+ &.water-environment-card-top {
|
|
|
+ flex-shrink: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.water-environment-card-bottom {
|
|
|
+ flex: 1;
|
|
|
+ min-height: 200px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.water-quality-panel {
|
|
|
+ padding: 12px;
|
|
|
+ height: 100%;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: 12px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ background: rgba(0, 30, 60, 0.5);
|
|
|
+ border-radius: 6px;
|
|
|
+}
|
|
|
+
|
|
|
+.quality-achievement {
|
|
|
+ display: grid;
|
|
|
+ grid-template-columns: repeat(2, 1fr);
|
|
|
+ gap: 10px;
|
|
|
+ padding-bottom: 12px;
|
|
|
+ border-bottom: 1px solid rgba(48, 220, 255, 0.3);
|
|
|
+}
|
|
|
+
|
|
|
+.achievement-item {
|
|
|
+ background: linear-gradient(135deg, rgba(48, 220, 255, 0.2) 0%, rgba(0, 191, 255, 0.15) 100%);
|
|
|
+ border: 1px solid rgba(48, 220, 255, 0.4);
|
|
|
+ border-radius: 6px;
|
|
|
+ padding: 12px;
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+
|
|
|
+.achievement-label {
|
|
|
+ color: rgba(255, 255, 255, 0.8);
|
|
|
+ font-size: 11px;
|
|
|
+ margin-bottom: 6px;
|
|
|
+ letter-spacing: 0.5px;
|
|
|
+}
|
|
|
+
|
|
|
+.achievement-value {
|
|
|
+ font-size: 24px;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #30DCFF;
|
|
|
+ font-family: "D-DIN";
|
|
|
+ text-shadow: 0 0 10px rgba(48, 220, 255, 0.5);
|
|
|
+}
|
|
|
+
|
|
|
+.quality-indicators {
|
|
|
+ flex: 1;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: 6px;
|
|
|
+ overflow-y: auto;
|
|
|
+
|
|
|
+ &::-webkit-scrollbar {
|
|
|
+ width: 4px;
|
|
|
+ }
|
|
|
+
|
|
|
+ &::-webkit-scrollbar-thumb {
|
|
|
+ background: rgba(48, 220, 255, 0.3);
|
|
|
+ border-radius: 2px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.indicator-item {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ padding: 8px 10px;
|
|
|
+ background: rgba(0, 100, 150, 0.3);
|
|
|
+ border: 1px solid rgba(48, 220, 255, 0.3);
|
|
|
+ border-radius: 4px;
|
|
|
+ transition: all 0.3s ease;
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ background: rgba(0, 100, 150, 0.5);
|
|
|
+ }
|
|
|
+
|
|
|
+ &.over-limit {
|
|
|
+ border-color: rgba(255, 68, 68, 0.6);
|
|
|
+ background: rgba(255, 68, 68, 0.15);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.indicator-name {
|
|
|
+ width: 100px;
|
|
|
+ color: rgba(255, 255, 255, 0.9);
|
|
|
+ font-size: 12px;
|
|
|
+ flex-shrink: 0;
|
|
|
+}
|
|
|
+
|
|
|
+.indicator-value {
|
|
|
+ width: 80px;
|
|
|
+ color: #30DCFF;
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: bold;
|
|
|
+ font-family: "D-DIN";
|
|
|
+ text-align: right;
|
|
|
+ margin-right: 10px;
|
|
|
+
|
|
|
+ .unit {
|
|
|
+ font-size: 11px;
|
|
|
+ color: rgba(255, 255, 255, 0.6);
|
|
|
+ margin-left: 2px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.indicator-status {
|
|
|
+ flex: 1;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 8px;
|
|
|
+}
|
|
|
+
|
|
|
+.status-bar {
|
|
|
+ flex: 1;
|
|
|
+ height: 6px;
|
|
|
+ background: rgba(0, 0, 0, 0.4);
|
|
|
+ border-radius: 3px;
|
|
|
+ overflow: hidden;
|
|
|
+}
|
|
|
+
|
|
|
+.status-fill {
|
|
|
+ height: 100%;
|
|
|
+ border-radius: 3px;
|
|
|
+ transition: width 0.3s ease;
|
|
|
+}
|
|
|
+
|
|
|
+.status-text {
|
|
|
+ width: 40px;
|
|
|
+ text-align: right;
|
|
|
+ font-size: 11px;
|
|
|
+ color: #00ff88;
|
|
|
+
|
|
|
+ &.warning {
|
|
|
+ color: #ff4444;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.water-quality-trend {
|
|
|
+ padding: 12px;
|
|
|
+ height: 100%;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ box-sizing: border-box;
|
|
|
+ background: rgba(0, 30, 60, 0.5);
|
|
|
+ border-radius: 6px;
|
|
|
+}
|
|
|
+
|
|
|
+.trend-chart {
|
|
|
+ flex: 1;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+}
|
|
|
+
|
|
|
+.chart-header {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ margin-bottom: 15px;
|
|
|
+}
|
|
|
+
|
|
|
+.chart-title {
|
|
|
+ color: #30DCFF;
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: bold;
|
|
|
+}
|
|
|
+
|
|
|
+.chart-legend {
|
|
|
+ display: flex;
|
|
|
+ gap: 12px;
|
|
|
+}
|
|
|
+
|
|
|
+.legend-item {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 4px;
|
|
|
+ font-size: 11px;
|
|
|
+ color: rgba(255, 255, 255, 0.8);
|
|
|
+}
|
|
|
+
|
|
|
+.legend-color {
|
|
|
+ width: 12px;
|
|
|
+ height: 12px;
|
|
|
+ border-radius: 2px;
|
|
|
+}
|
|
|
+
|
|
|
+.chart-body {
|
|
|
+ flex: 1;
|
|
|
+ display: flex;
|
|
|
+ align-items: flex-end;
|
|
|
+ justify-content: space-between;
|
|
|
+ padding: 0 10px;
|
|
|
+}
|
|
|
+
|
|
|
+.chart-bar {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+ gap: 6px;
|
|
|
+ flex: 1;
|
|
|
+}
|
|
|
+
|
|
|
+.bar-wrapper {
|
|
|
+ width: 30px;
|
|
|
+ height: 100%;
|
|
|
+ background: rgba(0, 0, 0, 0.3);
|
|
|
+ border-radius: 4px 4px 0 0;
|
|
|
+ position: relative;
|
|
|
+ overflow: hidden;
|
|
|
+}
|
|
|
+
|
|
|
+.bar-fill {
|
|
|
+ position: absolute;
|
|
|
+ bottom: 0;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ border-radius: 4px 4px 0 0;
|
|
|
+ transition: height 0.5s ease;
|
|
|
+}
|
|
|
+
|
|
|
+.bar-label {
|
|
|
+ font-size: 11px;
|
|
|
+ color: rgba(255, 255, 255, 0.7);
|
|
|
+}
|
|
|
+
|
|
|
+.station-distribution {
|
|
|
+ padding: 12px;
|
|
|
+ height: 100%;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: 12px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ background: rgba(0, 30, 60, 0.5);
|
|
|
+ border-radius: 6px;
|
|
|
+}
|
|
|
+
|
|
|
+.distribution-stats {
|
|
|
+ display: grid;
|
|
|
+ grid-template-columns: repeat(3, 1fr);
|
|
|
+ gap: 8px;
|
|
|
+ padding-bottom: 12px;
|
|
|
+ border-bottom: 1px solid rgba(48, 220, 255, 0.3);
|
|
|
+}
|
|
|
+
|
|
|
+.stat-item {
|
|
|
+ background: rgba(0, 100, 150, 0.4);
|
|
|
+ border: 1px solid rgba(48, 220, 255, 0.5);
|
|
|
+ border-radius: 6px;
|
|
|
+ padding: 10px;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
+ &.excellent {
|
|
|
+ border-color: #00ff88;
|
|
|
+ background: rgba(0, 255, 136, 0.15);
|
|
|
+ }
|
|
|
+
|
|
|
+ &.good {
|
|
|
+ border-color: #00d4ff;
|
|
|
+ background: rgba(0, 212, 255, 0.15);
|
|
|
+ }
|
|
|
+
|
|
|
+ &.poor {
|
|
|
+ border-color: #ff4444;
|
|
|
+ background: rgba(255, 68, 68, 0.15);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.stat-icon {
|
|
|
+ width: 32px;
|
|
|
+ height: 32px;
|
|
|
+ border-radius: 50%;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: bold;
|
|
|
+ margin-bottom: 6px;
|
|
|
+
|
|
|
+ .excellent & {
|
|
|
+ background: rgba(0, 255, 136, 0.3);
|
|
|
+ color: #00ff88;
|
|
|
+ }
|
|
|
+
|
|
|
+ .good & {
|
|
|
+ background: rgba(0, 212, 255, 0.3);
|
|
|
+ color: #00d4ff;
|
|
|
+ }
|
|
|
+
|
|
|
+ .poor & {
|
|
|
+ background: rgba(255, 68, 68, 0.3);
|
|
|
+ color: #ff4444;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.stat-info {
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+
|
|
|
+.stat-value {
|
|
|
+ font-size: 20px;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #fff;
|
|
|
+ font-family: "D-DIN";
|
|
|
+ margin-bottom: 2px;
|
|
|
+}
|
|
|
+
|
|
|
+.stat-label {
|
|
|
+ font-size: 10px;
|
|
|
+ color: rgba(255, 255, 255, 0.7);
|
|
|
+}
|
|
|
+
|
|
|
+.station-list {
|
|
|
+ flex: 1;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: 6px;
|
|
|
+ overflow-y: auto;
|
|
|
+
|
|
|
+ &::-webkit-scrollbar {
|
|
|
+ width: 4px;
|
|
|
+ }
|
|
|
+
|
|
|
+ &::-webkit-scrollbar-thumb {
|
|
|
+ background: rgba(48, 220, 255, 0.3);
|
|
|
+ border-radius: 2px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.station-item {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ padding: 8px 10px;
|
|
|
+ background: rgba(0, 100, 150, 0.3);
|
|
|
+ border: 1px solid rgba(48, 220, 255, 0.3);
|
|
|
+ border-radius: 4px;
|
|
|
+ transition: all 0.3s ease;
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ background: rgba(0, 100, 150, 0.5);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.station-name {
|
|
|
+ flex: 1;
|
|
|
+ color: rgba(255, 255, 255, 0.9);
|
|
|
+ font-size: 12px;
|
|
|
+}
|
|
|
+
|
|
|
+.station-level {
|
|
|
+ width: 50px;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 11px;
|
|
|
+ font-weight: bold;
|
|
|
+ padding: 2px 6px;
|
|
|
+ border-radius: 3px;
|
|
|
+
|
|
|
+ &.level-excellent {
|
|
|
+ background: rgba(0, 255, 136, 0.3);
|
|
|
+ color: #00ff88;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.level-good {
|
|
|
+ background: rgba(0, 212, 255, 0.3);
|
|
|
+ color: #00d4ff;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.level-poor {
|
|
|
+ background: rgba(255, 68, 68, 0.3);
|
|
|
+ color: #ff4444;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.station-score {
|
|
|
+ width: 40px;
|
|
|
+ text-align: right;
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #30DCFF;
|
|
|
+ font-family: "D-DIN";
|
|
|
+}
|
|
|
+
|
|
|
+.pollution-monitor {
|
|
|
+ padding: 12px;
|
|
|
+ height: 100%;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: 12px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ background: rgba(0, 30, 60, 0.5);
|
|
|
+ border-radius: 6px;
|
|
|
+}
|
|
|
+
|
|
|
+.pollution-stats {
|
|
|
+ display: grid;
|
|
|
+ grid-template-columns: repeat(3, 1fr);
|
|
|
+ gap: 8px;
|
|
|
+ padding-bottom: 12px;
|
|
|
+ border-bottom: 1px solid rgba(48, 220, 255, 0.3);
|
|
|
+}
|
|
|
+
|
|
|
+.pollution-item {
|
|
|
+ background: rgba(0, 100, 150, 0.4);
|
|
|
+ border: 1px solid rgba(48, 220, 255, 0.5);
|
|
|
+ border-radius: 6px;
|
|
|
+ padding: 12px;
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+
|
|
|
+.pollution-title {
|
|
|
+ color: rgba(255, 255, 255, 0.8);
|
|
|
+ font-size: 11px;
|
|
|
+ margin-bottom: 6px;
|
|
|
+}
|
|
|
+
|
|
|
+.pollution-value {
|
|
|
+ font-size: 20px;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #30DCFF;
|
|
|
+ font-family: "D-DIN";
|
|
|
+ margin-bottom: 2px;
|
|
|
+}
|
|
|
+
|
|
|
+.pollution-unit {
|
|
|
+ font-size: 11px;
|
|
|
+ color: rgba(255, 255, 255, 0.6);
|
|
|
+}
|
|
|
+
|
|
|
+.pollution-list {
|
|
|
+ flex: 1;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ overflow: hidden;
|
|
|
+}
|
|
|
+
|
|
|
+.pollution-list-header {
|
|
|
+ display: flex;
|
|
|
+ padding: 8px 10px;
|
|
|
+ background: rgba(0, 100, 150, 0.5);
|
|
|
+ border-bottom: 1px solid rgba(48, 220, 255, 0.4);
|
|
|
+ color: #30dcff;
|
|
|
+ font-weight: bold;
|
|
|
+ font-size: 12px;
|
|
|
+ flex-shrink: 0;
|
|
|
+ border-radius: 4px 4px 0 0;
|
|
|
+ margin-bottom: 5px;
|
|
|
+
|
|
|
+ .header-item {
|
|
|
+ flex: 1;
|
|
|
+ text-align: center;
|
|
|
+ padding: 0 5px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.pollution-list-body {
|
|
|
+ flex: 1;
|
|
|
+ overflow-y: auto;
|
|
|
+
|
|
|
+ &::-webkit-scrollbar {
|
|
|
+ width: 4px;
|
|
|
+ }
|
|
|
+
|
|
|
+ &::-webkit-scrollbar-thumb {
|
|
|
+ background: rgba(48, 220, 255, 0.3);
|
|
|
+ border-radius: 2px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.pollution-item-row {
|
|
|
+ display: flex;
|
|
|
+ padding: 8px 10px;
|
|
|
+ border-bottom: 1px solid rgba(48, 220, 255, 0.2);
|
|
|
+ color: rgba(255, 255, 255, 0.9);
|
|
|
+ font-size: 12px;
|
|
|
+ line-height: 1.4;
|
|
|
+ transition: all 0.3s ease;
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ background: rgba(48, 220, 255, 0.15);
|
|
|
+ border-radius: 3px;
|
|
|
+ }
|
|
|
+
|
|
|
+ &:last-child {
|
|
|
+ border-bottom: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ .item-cell {
|
|
|
+ flex: 1;
|
|
|
+ text-align: center;
|
|
|
+ padding: 0 5px;
|
|
|
+
|
|
|
+ &:first-child {
|
|
|
+ flex: 2;
|
|
|
+ text-align: left;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.status-badge {
|
|
|
+ display: inline-block;
|
|
|
+ padding: 2px 8px;
|
|
|
+ border-radius: 3px;
|
|
|
+ font-size: 10px;
|
|
|
+ font-weight: bold;
|
|
|
+
|
|
|
+ &.normal {
|
|
|
+ background: rgba(0, 255, 136, 0.3);
|
|
|
+ color: #00ff88;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.warning {
|
|
|
+ background: rgba(255, 68, 68, 0.3);
|
|
|
+ color: #ff4444;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|