2026-03-27 17:47:09 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="filter-header">
|
|
|
|
|
|
<div class="filter-container">
|
2026-04-29 10:33:26 +08:00
|
|
|
|
<!-- <span class="filter-item active" @click="handleDateRangeClick()">本轮</span> -->
|
|
|
|
|
|
<span class="filter-item active" @click="handleDateRangeClick('total')">累计</span>
|
|
|
|
|
|
<span class="filter-item active" @click="handleDateRangeClick('today')">今日</span>
|
2026-03-27 17:47:09 +08:00
|
|
|
|
<div class="date-range-wrapper">
|
|
|
|
|
|
<el-date-picker
|
|
|
|
|
|
v-model="dateRange"
|
|
|
|
|
|
type="daterange"
|
|
|
|
|
|
range-separator="-"
|
|
|
|
|
|
start-placeholder="开始时间"
|
|
|
|
|
|
end-placeholder="结束时间"
|
|
|
|
|
|
size="small"
|
2026-04-13 11:38:11 +08:00
|
|
|
|
popper-class="custom-date-picker"
|
|
|
|
|
|
:teleported="false"
|
2026-03-27 17:47:09 +08:00
|
|
|
|
:prefix-icon="Calendar"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2026-04-17 14:50:25 +08:00
|
|
|
|
<div class="hazard-stats" v-if="showHazardPopup">
|
2026-04-29 10:33:26 +08:00
|
|
|
|
<div v-for="(item, index) in hazardStatsShowArr" :key="index" class="stat-item" :class="item.class">
|
2026-04-17 14:50:25 +08:00
|
|
|
|
<span class="stat-label">{{ item.label }}</span>
|
|
|
|
|
|
<span class="stat-value-container display ai_center">
|
|
|
|
|
|
<span class="stat-value">{{ item.value }}</span>
|
|
|
|
|
|
<span class="stat-unit">个</span>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2026-04-17 15:21:10 +08:00
|
|
|
|
<div class="road-stats" v-if="showRoadStats && roadStats.length > 0">
|
2026-04-17 14:50:25 +08:00
|
|
|
|
<div v-for="(item, index) in roadStats" :key="index" class="stat-item">
|
|
|
|
|
|
<span class="stat-label">{{ item.label }}</span>
|
|
|
|
|
|
<span class="stat-value-container display ai_center">
|
|
|
|
|
|
<span class="stat-value">{{ item.value }}</span>
|
|
|
|
|
|
<span class="stat-unit">个</span>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2026-03-27 17:47:09 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup>
|
2026-04-29 10:33:26 +08:00
|
|
|
|
import { ref, watch, inject, defineProps, nextTick, provide, onMounted } from 'vue'
|
|
|
|
|
|
import { Calendar } from '@element-plus/icons-vue'
|
|
|
|
|
|
import { request } from '@/utils/request'
|
2026-03-27 17:47:09 +08:00
|
|
|
|
|
2026-04-17 14:50:25 +08:00
|
|
|
|
const props = defineProps({
|
|
|
|
|
|
riskPointStats: {
|
|
|
|
|
|
type: Object,
|
|
|
|
|
|
default: () => ({}),
|
|
|
|
|
|
},
|
|
|
|
|
|
showHazardPopup: {
|
|
|
|
|
|
type: Boolean,
|
|
|
|
|
|
default: false,
|
|
|
|
|
|
},
|
|
|
|
|
|
roadvalArrtrue: {
|
|
|
|
|
|
type: Array,
|
|
|
|
|
|
default: () => [],
|
|
|
|
|
|
},
|
|
|
|
|
|
roadItem: {
|
|
|
|
|
|
type: Object,
|
|
|
|
|
|
default: () => ({}),
|
|
|
|
|
|
},
|
2026-04-17 15:21:10 +08:00
|
|
|
|
showRoadStats: {
|
|
|
|
|
|
type: Boolean,
|
|
|
|
|
|
default: false,
|
|
|
|
|
|
},
|
2026-04-29 10:33:26 +08:00
|
|
|
|
})
|
2026-04-17 14:50:25 +08:00
|
|
|
|
watch(
|
|
|
|
|
|
() => props.showHazardPopup,
|
2026-04-29 10:33:26 +08:00
|
|
|
|
(newShow) => {
|
|
|
|
|
|
hazardStatsShowArr.value = JSON.parse(JSON.stringify([]))
|
|
|
|
|
|
hazardStats.value.forEach((item) => {
|
|
|
|
|
|
item.value = 0
|
|
|
|
|
|
item.show = false
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
)
|
2026-04-17 14:50:25 +08:00
|
|
|
|
|
2026-04-29 10:33:26 +08:00
|
|
|
|
const emit = defineEmits(['openAIResult', 'dateRangeChange'])
|
2026-03-30 10:57:32 +08:00
|
|
|
|
|
2026-04-03 18:08:42 +08:00
|
|
|
|
// 注入兄弟组件通信机制
|
2026-04-29 10:33:26 +08:00
|
|
|
|
const triggerRefreshLeftData = inject('triggerRefreshLeftData')
|
|
|
|
|
|
const dateRange = ref([])
|
2026-03-30 10:57:32 +08:00
|
|
|
|
|
2026-04-17 14:50:25 +08:00
|
|
|
|
// 隐患点统计数据
|
2026-04-29 10:33:26 +08:00
|
|
|
|
const hazardStatsShowArr = ref([])
|
2026-04-17 14:50:25 +08:00
|
|
|
|
const hazardStats = ref([
|
|
|
|
|
|
{ label: '重大路内隐患点', value: 0, show: false, type: '重大路内隐患点', isWithinRedLine: '是' },
|
|
|
|
|
|
{ label: '重大路外隐患点', value: 0, show: false, type: '重大路外隐患点', isWithinRedLine: '否' },
|
|
|
|
|
|
{ label: '较大路内隐患点', value: 0, show: false, type: '较大路内隐患点', isWithinRedLine: '是' },
|
|
|
|
|
|
{ label: '较大路外隐患点', value: 0, show: false, type: '较大路外隐患点', isWithinRedLine: '否' },
|
|
|
|
|
|
{ label: '一般路内隐患点', value: 0, show: false, type: '一般路内隐患点', isWithinRedLine: '是' },
|
|
|
|
|
|
{ label: '一般路外隐患点', value: 0, show: false, type: '一般路外隐患点', isWithinRedLine: '否' },
|
|
|
|
|
|
{ label: '风险点总数', value: 0, show: false, type: '风险点总数', isWithinRedLine: '' },
|
2026-04-29 10:33:26 +08:00
|
|
|
|
])
|
2026-04-17 14:50:25 +08:00
|
|
|
|
|
|
|
|
|
|
// 路段统计数据
|
|
|
|
|
|
const roadStats = ref([
|
|
|
|
|
|
{ label: '高风险路段', value: 0, type: '高风险路段' },
|
|
|
|
|
|
{ label: '较高风险路段', value: 0, type: '较高风险路段' },
|
|
|
|
|
|
{ label: '中风险路段', value: 0, type: '中风险路段' },
|
|
|
|
|
|
{ label: '低风险路段', value: 0, type: '低风险路段' },
|
|
|
|
|
|
{ label: '风险点总数', value: 0, type: '风险点总数' },
|
2026-04-29 10:33:26 +08:00
|
|
|
|
])
|
2026-04-17 14:50:25 +08:00
|
|
|
|
|
|
|
|
|
|
watch(
|
|
|
|
|
|
() => props.riskPointStats,
|
2026-04-29 10:33:26 +08:00
|
|
|
|
(newStats) => {
|
|
|
|
|
|
console.log('top.vue 收到风险点统计数据:', newStats)
|
2026-04-17 14:50:25 +08:00
|
|
|
|
if (newStats) {
|
2026-04-29 10:33:26 +08:00
|
|
|
|
hazardStatsShowArr.value = []
|
|
|
|
|
|
hazardStats.value.forEach((item) => {
|
|
|
|
|
|
if (item.label.includes(newStats.riskLevel) && newStats.isWithinRedLine == item.isWithinRedLine && newStats.value >= 0) {
|
|
|
|
|
|
item.value = newStats.value
|
|
|
|
|
|
item.show = true
|
2026-04-17 14:50:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
if (item.show) {
|
2026-04-29 10:33:26 +08:00
|
|
|
|
hazardStatsShowArr.value.push(item)
|
|
|
|
|
|
hazardStats.value[6].show = true
|
2026-04-17 14:50:25 +08:00
|
|
|
|
}
|
2026-04-29 10:33:26 +08:00
|
|
|
|
})
|
2026-04-17 14:50:25 +08:00
|
|
|
|
|
|
|
|
|
|
hazardStats.value[6].value =
|
|
|
|
|
|
hazardStats.value[0].value +
|
|
|
|
|
|
hazardStats.value[1].value +
|
|
|
|
|
|
hazardStats.value[2].value +
|
|
|
|
|
|
hazardStats.value[3].value +
|
|
|
|
|
|
hazardStats.value[4].value +
|
2026-04-29 10:33:26 +08:00
|
|
|
|
hazardStats.value[5].value
|
2026-04-17 14:50:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
2026-04-29 10:33:26 +08:00
|
|
|
|
{ immediate: true, deep: true },
|
|
|
|
|
|
)
|
2026-04-17 14:50:25 +08:00
|
|
|
|
|
2026-04-09 14:53:44 +08:00
|
|
|
|
// 设置日期时间为当天的23:59:59
|
2026-04-29 10:33:26 +08:00
|
|
|
|
const setEndOfDay = (date) => {
|
|
|
|
|
|
if (!date) return date
|
|
|
|
|
|
const d = new Date(date)
|
|
|
|
|
|
d.setHours(23, 59, 59, 999)
|
|
|
|
|
|
return d
|
|
|
|
|
|
}
|
2026-04-15 16:40:35 +08:00
|
|
|
|
// 点击本轮
|
2026-04-29 10:33:26 +08:00
|
|
|
|
const handleDateRangeClick = (type) => {
|
|
|
|
|
|
const now = new Date()
|
|
|
|
|
|
if (type === 'total') {
|
|
|
|
|
|
// 今年1月1号 00:00:00 到今年年底 23:59:59
|
|
|
|
|
|
const startOfYear = new Date(now.getFullYear(), 0, 1, 0, 0, 0, 0)
|
|
|
|
|
|
const endOfYear = new Date(now.getFullYear(), 11, 31, 23, 59, 59, 999)
|
|
|
|
|
|
dateRange.value = [startOfYear, endOfYear]
|
|
|
|
|
|
} else if (type === 'today') {
|
|
|
|
|
|
// 今天 00:00:00 到 23:59:59
|
|
|
|
|
|
const startOfDay = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 0, 0, 0, 0)
|
|
|
|
|
|
const endOfDay = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 23, 59, 59, 999)
|
|
|
|
|
|
dateRange.value = [startOfDay, endOfDay]
|
|
|
|
|
|
} else {
|
|
|
|
|
|
dateRange.value = []
|
|
|
|
|
|
}
|
2026-04-15 16:40:35 +08:00
|
|
|
|
// triggerRefreshLeftData();
|
|
|
|
|
|
// 不需要手动 emit,watch 会监听 dateRange 变化并自动 emit
|
2026-04-29 10:33:26 +08:00
|
|
|
|
}
|
2026-04-03 18:08:42 +08:00
|
|
|
|
// 监听 dateRange 变化
|
2026-04-13 11:38:11 +08:00
|
|
|
|
watch(
|
|
|
|
|
|
dateRange,
|
|
|
|
|
|
(newVal, oldVal) => {
|
|
|
|
|
|
// 只有当值真正发生变化时才触发
|
2026-04-29 10:33:26 +08:00
|
|
|
|
console.log('dateRange 变化:', newVal, oldVal)
|
2026-04-13 11:38:11 +08:00
|
|
|
|
if (JSON.stringify(newVal) !== JSON.stringify(oldVal)) {
|
2026-04-29 10:33:26 +08:00
|
|
|
|
console.log('dateRange 发生变化:', newVal)
|
2026-04-13 11:38:11 +08:00
|
|
|
|
// 如果有结束日期,将其设置为当天的23:59:59
|
|
|
|
|
|
if (newVal && newVal.length === 2 && newVal[1]) {
|
2026-04-29 10:33:26 +08:00
|
|
|
|
newVal[1] = setEndOfDay(newVal[1])
|
2026-04-13 11:38:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
// 触发兄弟组件刷新
|
2026-04-15 16:40:35 +08:00
|
|
|
|
// if (triggerRefreshLeftData) {
|
|
|
|
|
|
// triggerRefreshLeftData();
|
|
|
|
|
|
// }
|
2026-04-13 11:38:11 +08:00
|
|
|
|
// 向父组件传递时间范围
|
2026-04-29 10:33:26 +08:00
|
|
|
|
emit('dateRangeChange', newVal)
|
2026-04-03 18:08:42 +08:00
|
|
|
|
}
|
2026-04-13 11:38:11 +08:00
|
|
|
|
},
|
2026-04-29 10:33:26 +08:00
|
|
|
|
{ deep: true },
|
|
|
|
|
|
)
|
2026-04-03 18:08:42 +08:00
|
|
|
|
|
2026-03-30 10:57:32 +08:00
|
|
|
|
const handleAIClick = () => {
|
2026-04-29 10:33:26 +08:00
|
|
|
|
emit('openAIResult')
|
|
|
|
|
|
}
|
2026-04-17 14:50:25 +08:00
|
|
|
|
|
|
|
|
|
|
// 获取风险等级统计数据
|
|
|
|
|
|
const fetchRiskLevelCount = async () => {
|
|
|
|
|
|
try {
|
|
|
|
|
|
const res = await request({
|
|
|
|
|
|
url: '/snow-ops-platform/risk-point/risk-level-count',
|
|
|
|
|
|
method: 'GET',
|
2026-04-29 10:33:26 +08:00
|
|
|
|
})
|
|
|
|
|
|
console.log('风险等级统计数据:', res)
|
2026-04-17 14:50:25 +08:00
|
|
|
|
if (res.code === '00000' && res.data) {
|
2026-04-17 17:23:51 +08:00
|
|
|
|
// 更新路段统计数据
|
2026-04-29 10:33:26 +08:00
|
|
|
|
const data = res.data
|
|
|
|
|
|
let roadTotal = 0
|
|
|
|
|
|
roadStats.value.forEach((item) => {
|
2026-04-17 17:23:51 +08:00
|
|
|
|
// 重置值为0
|
2026-04-29 10:33:26 +08:00
|
|
|
|
item.value = 0
|
2026-04-17 17:23:51 +08:00
|
|
|
|
// 查找匹配的数据
|
2026-04-29 10:33:26 +08:00
|
|
|
|
const matchedData = data.find((d) => item.label.includes(d.level))
|
2026-04-17 17:23:51 +08:00
|
|
|
|
if (matchedData) {
|
2026-04-29 10:33:26 +08:00
|
|
|
|
item.value = Number(matchedData.count)
|
|
|
|
|
|
roadTotal += Number(matchedData.count)
|
2026-04-17 17:23:51 +08:00
|
|
|
|
}
|
2026-04-29 10:33:26 +08:00
|
|
|
|
})
|
2026-04-17 17:23:51 +08:00
|
|
|
|
// 更新风险点总数
|
2026-04-29 10:33:26 +08:00
|
|
|
|
roadStats.value[4].value = roadTotal
|
|
|
|
|
|
console.log('更新后的roadStats:', roadStats.value)
|
2026-04-17 14:50:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
} catch (error) {
|
2026-04-29 10:33:26 +08:00
|
|
|
|
console.error('获取风险等级统计数据失败:', error)
|
2026-04-17 14:50:25 +08:00
|
|
|
|
}
|
2026-04-29 10:33:26 +08:00
|
|
|
|
}
|
2026-04-17 14:50:25 +08:00
|
|
|
|
|
|
|
|
|
|
// 组件挂载时获取数据
|
|
|
|
|
|
onMounted(() => {
|
2026-04-29 10:33:26 +08:00
|
|
|
|
fetchRiskLevelCount()
|
|
|
|
|
|
})
|
2026-03-27 17:47:09 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2026-03-30 10:57:32 +08:00
|
|
|
|
// 视频屏幕自适应 - 基于视口宽度动态调整
|
|
|
|
|
|
// 基准宽度 1920px,使用 vw 单位实现自适应
|
|
|
|
|
|
@function vw($px) {
|
|
|
|
|
|
@return calc($px / 1920 * 100vw);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-27 17:47:09 +08:00
|
|
|
|
.filter-header {
|
2026-03-30 10:57:32 +08:00
|
|
|
|
padding: vw(10);
|
2026-04-17 14:50:25 +08:00
|
|
|
|
// display: flex;
|
|
|
|
|
|
// justify-content: space-between;
|
2026-03-27 17:47:09 +08:00
|
|
|
|
// align-items: center;
|
2026-03-30 10:57:32 +08:00
|
|
|
|
|
|
|
|
|
|
// 小屏幕适配
|
|
|
|
|
|
@media (max-width: 1366px) {
|
|
|
|
|
|
padding: 8px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (max-width: 1024px) {
|
|
|
|
|
|
padding: 6px;
|
|
|
|
|
|
}
|
2026-03-27 17:47:09 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.filter-container {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
2026-04-13 11:38:11 +08:00
|
|
|
|
width: 100%;
|
2026-03-30 10:57:32 +08:00
|
|
|
|
height: vw(20);
|
|
|
|
|
|
min-height: 18px;
|
|
|
|
|
|
gap: vw(8);
|
|
|
|
|
|
font-size: vw(13);
|
2026-04-17 14:50:25 +08:00
|
|
|
|
margin-bottom: vw(20);
|
2026-03-27 17:47:09 +08:00
|
|
|
|
|
|
|
|
|
|
.filter-item {
|
2026-04-02 16:35:45 +08:00
|
|
|
|
color: #fff;
|
|
|
|
|
|
padding: vw(8) vw(8);
|
2026-03-27 17:47:09 +08:00
|
|
|
|
background: #183c67;
|
|
|
|
|
|
box-shadow: inset 0px 0px 8px 0px #4fecff;
|
2026-04-02 16:35:45 +08:00
|
|
|
|
cursor: pointer;
|
2026-03-27 17:47:09 +08:00
|
|
|
|
|
|
|
|
|
|
// &:hover {
|
|
|
|
|
|
// border-color: rgba(64, 169, 255, 0.5);
|
|
|
|
|
|
// color: rgba(255, 255, 255, 0.8);
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
// &.active {
|
|
|
|
|
|
// background: rgba(64, 169, 255, 0.2);
|
|
|
|
|
|
// color: #40a9ff;
|
|
|
|
|
|
// border-color: rgba(64, 169, 255, 0.5);
|
|
|
|
|
|
// }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.date-range-wrapper {
|
2026-04-02 16:35:45 +08:00
|
|
|
|
:deep(.el-date-editor) {
|
|
|
|
|
|
border-radius: 0px !important;
|
|
|
|
|
|
height: 2.6em !important;
|
|
|
|
|
|
}
|
2026-03-27 17:47:09 +08:00
|
|
|
|
:deep(.el-date-editor) {
|
2026-04-09 14:53:44 +08:00
|
|
|
|
width: 200px;
|
2026-04-03 18:08:42 +08:00
|
|
|
|
max-width: vw(350);
|
2026-03-27 17:47:09 +08:00
|
|
|
|
background: #183c67;
|
|
|
|
|
|
box-shadow: inset 0px 0px 8px 0px #4fecff;
|
|
|
|
|
|
|
|
|
|
|
|
.el-range-input {
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
color: rgba(255, 255, 255, 0.8);
|
|
|
|
|
|
|
|
|
|
|
|
&::placeholder {
|
|
|
|
|
|
color: rgba(255, 255, 255, 0.5);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.el-range-separator {
|
|
|
|
|
|
color: rgba(255, 255, 255, 0.4);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.el-icon {
|
|
|
|
|
|
color: rgba(255, 255, 255, 0.5);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// &:hover {
|
|
|
|
|
|
// border-color: rgba(64, 169, 255, 0.5);
|
|
|
|
|
|
// }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
.filter-icon-ai {
|
2026-03-30 10:57:32 +08:00
|
|
|
|
width: vw(67);
|
|
|
|
|
|
height: vw(67);
|
|
|
|
|
|
min-width: 48px;
|
|
|
|
|
|
min-height: 48px;
|
2026-03-27 17:47:09 +08:00
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
2026-04-17 14:50:25 +08:00
|
|
|
|
|
|
|
|
|
|
// 隐患点统计样式
|
|
|
|
|
|
.hazard-stats {
|
|
|
|
|
|
width: min-content;
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
background: url('@/assets/RiskWarning_img/隐患点弹窗背景@2x.png') no-repeat top left;
|
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
|
grid-template-columns: repeat(7, 1fr);
|
|
|
|
|
|
margin-bottom: vw(20);
|
|
|
|
|
|
.stat-item {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
// gap: vw(4);
|
|
|
|
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
|
|
border-right: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.stat-label {
|
|
|
|
|
|
font-size: vw(14);
|
|
|
|
|
|
padding: vw(8) vw(15);
|
|
|
|
|
|
// background: #0e365d;
|
|
|
|
|
|
color: rgba(255, 255, 255, 0.8);
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
}
|
|
|
|
|
|
.stat-value-container {
|
|
|
|
|
|
padding: vw(4) vw(10);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.stat-value {
|
|
|
|
|
|
font-size: vw(18);
|
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
color: #ff4d4f;
|
|
|
|
|
|
}
|
|
|
|
|
|
.stat-unit {
|
|
|
|
|
|
font-size: vw(14);
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 路段统计样式
|
|
|
|
|
|
.road-stats {
|
|
|
|
|
|
padding: vw(10);
|
|
|
|
|
|
width: min-content;
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
background: url('@/assets/RiskWarning_img/隐患点弹窗背景@2x.png') no-repeat top left;
|
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
|
grid-template-columns: repeat(5, 1fr);
|
|
|
|
|
|
margin-bottom: vw(20);
|
|
|
|
|
|
|
|
|
|
|
|
.stat-item {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: vw(4);
|
|
|
|
|
|
padding: 0 vw(10);
|
|
|
|
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
|
|
border-right: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.stat-label {
|
|
|
|
|
|
font-size: vw(14);
|
|
|
|
|
|
color: rgba(255, 255, 255, 0.8);
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.stat-value-container {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: vw(2);
|
|
|
|
|
|
|
|
|
|
|
|
.stat-value {
|
|
|
|
|
|
font-size: vw(18);
|
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
color: #ff4d4f;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.stat-unit {
|
|
|
|
|
|
font-size: vw(14);
|
|
|
|
|
|
color: rgba(255, 255, 255, 0.8);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2026-03-27 17:47:09 +08:00
|
|
|
|
</style>
|