Compare commits

..

No commits in common. "35d22fffb947ef1806a00940201d0958ef3ae2d5" and "b7c1a2e23165413c8e8b0286f36b26f62899d13d" have entirely different histories.

37 changed files with 742 additions and 1742 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

View File

@ -87,9 +87,7 @@
.f3 {
flex: 3;
}
.mt_5{
margin-top: 5px;
}
.mt_10 {
margin-top: 10px;
}

View File

@ -16,7 +16,7 @@
</div>
</div>
<!-- 气象预警监测表格 -->
<div class="weather-warning-wrapper">
<div class="weather-warning-wrapper" style="padding-left: 6px">
<div class="weather-warning-panel">
<img
class="clear-icon"
@ -53,40 +53,31 @@
:cell-style="cellStyle"
:row-class-name="rowClassName"
>
<el-table-column prop="time" label="预警时间" min-width="vw(140)" />
<el-table-column
prop="type"
label="类型"
min-width="vw(80)"
align="center"
/>
<el-table-column
label="预警等级"
min-width="vw(100)"
align="center"
>
<el-table-column prop="time" label="预警时间" min-width="140" />
<el-table-column prop="type" label="类型" min-width="80" align="center" />
<el-table-column label="预警等级" min-width="100" align="center">
<template #default="{ row }">
<!-- <span class="warning-level" :class="row.levelClass">
<i class="level-icon"></i>
{{ row.level }}
</span> -->
<div class="warning-level">
<img
:src="
row.levelClass === 'red'
? redIcon
: row.levelClass === 'blue'
? blueIcon
: row.levelClass === 'orange'
? orangeIcon
: yellowIcon
? blueIcon
: row.levelClass === 'orange'
? orangeIcon
: yellowIcon
"
alt=""
/>
</div>
</template>
</el-table-column>
<el-table-column
prop="district"
label="预警区县"
min-width="vw(80)"
/>
<el-table-column prop="district" label="预警区县" min-width="80" />
</el-table>
</div>
</div>
@ -107,14 +98,12 @@ import tunnelIconIcon from "../../assets/RiskWarning_img/隧道icon@2x.png";
import slopeIconIcon from "../../assets/RiskWarning_img/边坡icon@2x.png";
import bridgeIconIcon from "../../assets/RiskWarning_img/桥梁icon@2x.png";
import roadIconIcon from "../../assets/RiskWarning_img/线路路段icon@2x.png";
import teamIconIcon from "../../assets/RiskWarning_img/队伍icon@2x.png";
import warningIconIcon1 from "../../assets/RiskWarning_img/风险预警icon1@2x.png";
import tunnelIconIcon1 from "../../assets/RiskWarning_img/隧道icon1@2x.png";
import slopeIconIcon1 from "../../assets/RiskWarning_img/边坡icon1@2x.png";
import bridgeIconIcon1 from "../../assets/RiskWarning_img/桥梁icon1@2x.png";
import roadIconIcon1 from "../../assets/RiskWarning_img/线路路段icon1@2x.png";
import teamIconIcon1 from "../../assets/RiskWarning_img/队伍icon1@2x.png";
const activeIndex = ref(0);
@ -154,13 +143,6 @@ const menuItems = [
icon: roadIconIcon,
icon1: roadIconIcon1,
},
{
label: "队伍",
icon: "icon-team",
iconClass: "team",
icon: teamIconIcon,
icon1: teamIconIcon1,
},
];
//
@ -223,15 +205,15 @@ const filteredData = computed(() => {
// el-table
const headerCellStyle = () => ({
background: "#17466F",
background: "transparent",
color: "rgba(255, 255, 255, 0.6)",
fontWeight: "normal",
borderBottom: "1px solid rgba(64, 169, 255, 0.2)",
padding: "5px 20px",
padding: "10px 8px",
});
const cellStyle = () => ({
background: "#142E49",
background: "transparent",
color: "rgba(255, 255, 255, 0.9)",
borderBottom: "1px solid rgba(64, 169, 255, 0.1)",
padding: "5px 5px",
@ -250,12 +232,7 @@ const scrollStep = 1; // 每次滚动像素
//
const hasFilter = computed(() => {
return (
filters.value.red ||
filters.value.blue ||
filters.value.orange ||
filters.value.yellow
);
return filters.value.red || filters.value.blue || filters.value.orange || filters.value.yellow;
});
//
@ -265,9 +242,7 @@ const startAutoScroll = () => {
}
if (!isScrolling.value || hasFilter.value) return;
const tableBody = document.querySelector(
".weather-warning-panel .el-table__body-wrapper .el-scrollbar__wrap",
);
const tableBody = document.querySelector('.weather-warning-panel .el-table__body-wrapper .el-scrollbar__wrap');
if (!tableBody) return;
scrollTimer.value = setInterval(() => {
@ -292,9 +267,7 @@ const stopAutoScroll = () => {
//
const resetScrollToTop = () => {
const tableBody = document.querySelector(
".weather-warning-panel .el-table__body-wrapper .el-scrollbar__wrap",
);
const tableBody = document.querySelector('.weather-warning-panel .el-table__body-wrapper .el-scrollbar__wrap');
if (tableBody) {
tableBody.scrollTop = 0;
}
@ -332,24 +305,20 @@ onMounted(() => {
nextTick(() => {
startAutoScroll();
//
const tableContainer = document.querySelector(
".weather-warning-panel .table-container",
);
const tableContainer = document.querySelector('.weather-warning-panel .table-container');
if (tableContainer) {
tableContainer.addEventListener("mouseenter", handleMouseEnter);
tableContainer.addEventListener("mouseleave", handleMouseLeave);
tableContainer.addEventListener('mouseenter', handleMouseEnter);
tableContainer.addEventListener('mouseleave', handleMouseLeave);
}
});
});
onUnmounted(() => {
stopAutoScroll();
const tableContainer = document.querySelector(
".weather-warning-panel .table-container",
);
const tableContainer = document.querySelector('.weather-warning-panel .table-container');
if (tableContainer) {
tableContainer.removeEventListener("mouseenter", handleMouseEnter);
tableContainer.removeEventListener("mouseleave", handleMouseLeave);
tableContainer.removeEventListener('mouseenter', handleMouseEnter);
tableContainer.removeEventListener('mouseleave', handleMouseLeave);
}
});
</script>
@ -365,30 +334,27 @@ onUnmounted(() => {
position: relative;
width: 100%;
height: 100%;
padding: vw(10);
box-sizing: border-box;
display: flex;
//
@media (max-width: 1366px) {
padding: vw(8);
padding: 8px;
}
@media (max-width: 1024px) {
padding: vw(6);
padding: 6px;
}
}
.nav-menu {
width: vw(50);
min-width: vw(40);
height: 100%;
min-width: 40px;
display: flex;
flex-direction: column;
justify-content: end;
align-items: center;
gap: vw(5);
z-index: 2;
position: absolute;
bottom: 0;
left: 0;
.nav-item {
display: flex;
@ -412,12 +378,12 @@ onUnmounted(() => {
.nav-icon-box {
width: vw(50);
height: vw(50);
min-width: vw(36);
min-height: vw(36);
min-width: 36px;
min-height: 36px;
margin-bottom: vw(5);
background: rgba(64, 169, 255, 0.1);
border: 1px solid rgba(64, 169, 255, 0.3);
border-radius: vw(8);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
@ -425,8 +391,8 @@ onUnmounted(() => {
img {
width: vw(50);
height: vw(50);
min-width: vw(32);
min-height: vw(32);
min-width: 32px;
min-height: 32px;
}
i {
@ -474,48 +440,57 @@ onUnmounted(() => {
//
.weather-warning-wrapper {
flex: 1;
display: flex;
flex-direction: column;
justify-content: flex-end;
width: 92%;
height: 50%;
position: absolute;
z-index: 2;
right: 0px;
bottom: 0px;
width: 90%;
}
//
.weather-warning-panel {
// border-radius: vw(8);
height: 50%;
background: rgba(64, 169, 255, 0.1);
border: 1px solid rgba(64, 169, 255, 0.3);
border-radius: 8px;
padding: vw(15);
display: flex;
flex-direction: column;
height: 100%;
position: relative;
.clear-icon {
position: absolute;
top: vw(-50);
right: 0px;
width: vw(40) !important;
height: vw(40) !important;
min-width: vw(28);
min-height: vw(28);
min-width: 28px;
min-height: 28px;
}
.panel-header {
display: flex;
justify-content: space-between;
align-items: center;
background-image: url("../../assets/RiskWarning_img/二级标题栏bg1@2x.png");
background-size: 100% 100%;
background-position: left top;
padding: vw(15);
margin-bottom: vw(15);
.header-title {
font-size: vw(18);
font-weight: 500;
color: #fff;
font-weight: bold;
color: #40a9ff;
position: relative;
padding-left: vw(12);
&::before {
content: "";
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: vw(4);
height: vw(16);
background: linear-gradient(180deg, #40a9ff 0%, #1890ff 100%);
border-radius: 2px;
}
}
.filter-tags {
@ -531,8 +506,8 @@ onUnmounted(() => {
input {
width: vw(14);
height: vw(14);
min-width: vw(12);
min-height: vw(12);
min-width: 12px;
min-height: 12px;
accent-color: #40a9ff;
}
@ -561,7 +536,6 @@ onUnmounted(() => {
}
.table-container {
background: rgb(20, 46, 74, 0.95);
flex: 1;
overflow: hidden;
@ -592,28 +566,10 @@ onUnmounted(() => {
.el-table__header-wrapper {
background: transparent;
th.el-table__cell {
background: transparent;
font-size: vw(14);
color: rgba(255, 255, 255, 0.6);
padding: vw(10) vw(8);
}
}
.el-table__body-wrapper {
background: transparent;
td.el-table__cell {
background: transparent;
font-size: vw(12);
color: rgba(255, 255, 255, 0.9);
padding: vw(5) vw(5);
}
&::-webkit-scrollbar {
display: none !important;
}
}
tr {
@ -623,17 +579,33 @@ onUnmounted(() => {
background: rgba(64, 169, 255, 0.05) !important;
}
}
th.el-table__cell {
background: transparent;
}
td.el-table__cell {
background: transparent;
}
}
.warning-level {
// display: inline-flex;
// align-items: center;
// gap: 5px;
// padding: 4px 10px;
// border-radius: 4px;
// font-size: 12px;
// width: 15px;
// height: 15px;
display: flex;
align-items: center;
justify-content: center;
img {
width: vw(15);
height: vw(15);
min-width: vw(10);
min-height: vw(10);
min-width: 10px;
min-height: 10px;
}
// .level-icon {

View File

@ -13,382 +13,128 @@
</template>
<script setup>
import { ref, onMounted, onUnmounted } from "vue";
import axios from 'axios';
import { ref, onMounted, onUnmounted } from 'vue'
const mapContainer = ref(null);
const loading = ref(false);
const error = ref(null);
let mapInstance = null;
let geoJsonLayer = null;
const mapContainer = ref(null)
const loading = ref(false)
const error = ref(null)
let mapInstance = null
// emits
const emit = defineEmits(["districtClick"]);
//
const selectedDistrict = ref(null);
let selectedLayer = null;
// GeoJSON API - 使
const GEOJSON_URL =
"https://geo.datav.aliyun.com/areas_v3/bound/500000_full.json";
// GeoJSON API
const GEOJSON_URL = 'https://geo.datav.aliyun.com/areas_v3/bound/500000_full.json'
//
const loadMapData = async () => {
loading.value = true;
error.value = null;
loading.value = true
error.value = null
try {
//
//
const response = await fetch(GEOJSON_URL)
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`)
}
const geoJsonData = await response.json()
//
// const response = await axios.get('/aliyun-geo/bound/500000_full.json');
// const geoJsonData = response.data;
// if (!geoJsonData) {
// throw new Error('');
// }
// //
processDistrictMerge(geoJsonData);
//
initMap(geoJsonData)
} catch (err) {
console.error("加载地图数据失败:", err);
error.value = "地图数据加载失败,请检查网络连接";
console.error('加载地图数据失败:', err)
error.value = '地图数据加载失败,请检查网络连接'
} finally {
loading.value = false;
loading.value = false
}
};
//
const processDistrictMerge = (geoJsonData) => {
if (!geoJsonData || !geoJsonData.features) return;
//
const yubeiIndex = geoJsonData.features.findIndex(
(f) => f.properties && f.properties.name === "渝北区",
);
const jiangbeiIndex = geoJsonData.features.findIndex(
(f) => f.properties && f.properties.name === "江北区",
);
//
if (yubeiIndex !== -1 && jiangbeiIndex !== -1) {
const yubeiFeature = geoJsonData.features[yubeiIndex];
const jiangbeiFeature = geoJsonData.features[jiangbeiIndex];
//
const liangjiangFeature = JSON.parse(JSON.stringify(yubeiFeature));
liangjiangFeature.properties.name = "两江新区";
liangjiangFeature.properties.adcode = "500006"; // 使
// MultiPolygon
if (
yubeiFeature.geometry.type === "MultiPolygon" &&
jiangbeiFeature.geometry.type === "MultiPolygon"
) {
liangjiangFeature.geometry.coordinates = [
...yubeiFeature.geometry.coordinates,
...jiangbeiFeature.geometry.coordinates,
];
} else if (
yubeiFeature.geometry.type === "Polygon" &&
jiangbeiFeature.geometry.type === "Polygon"
) {
liangjiangFeature.geometry.type = "MultiPolygon";
liangjiangFeature.geometry.coordinates = [
[yubeiFeature.geometry.coordinates],
[jiangbeiFeature.geometry.coordinates],
];
}
//
geoJsonData.features.splice(Math.max(yubeiIndex, jiangbeiIndex), 1);
geoJsonData.features.splice(Math.min(yubeiIndex, jiangbeiIndex), 1);
//
geoJsonData.features.push(liangjiangFeature);
console.log("已合并渝北区和江北区为两江新区");
}
};
//
const getCentroid = (coordinates) => {
let sumLat = 0;
let sumLng = 0;
let count = 0;
const processCoordinates = (coords) => {
if (typeof coords[0] === "number") {
// [lng, lat]
sumLng += coords[0];
sumLat += coords[1];
count++;
} else if (Array.isArray(coords[0])) {
//
coords.forEach(processCoordinates);
}
};
processCoordinates(coordinates);
return count > 0 ? [sumLat / count, sumLng / count] : null;
};
}
//
const initMap = (geoJsonData) => {
if (!mapContainer.value) return;
if (!mapContainer.value) return
try {
//
if (mapInstance) {
mapInstance.remove();
mapInstance.remove()
}
//
mapInstance = new window.L.Map(mapContainer.value, {
center: [29.563, 106.551], //
zoom: 7,
minZoom: 6,
zoom: 8,
minZoom: 7,
maxZoom: 18,
zoomControl: false,
attributionControl: false,
});
// - 使
const tileLayer = new window.L.TileLayer(
"https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png",
{
attribution:
'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors &copy; <a href="https://carto.com/attributions">CARTO</a>',
subdomains: "abcd",
maxZoom: 19,
attributionControl: false
})
//
const tileLayer = new window.L.TileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
})
mapInstance.addLayer(tileLayer)
// GeoJSON
const geoJsonLayer = new window.L.GeoJSON(geoJsonData, {
style: {
fillColor: '#1E3A8A',
weight: 2,
opacity: 0.8,
color: '#3B82F6',
fillOpacity: 0.3
},
);
mapInstance.addLayer(tileLayer);
// GeoJSON
geoJsonLayer = new window.L.GeoJSON(geoJsonData, {
style: (feature) => ({
fillColor: "#1890ff",
weight: 1.5,
opacity: 0.6,
color: "#40a9ff",
fillOpacity: 0.15,
}),
onEachFeature: (feature, layer) => {
if (feature.properties && feature.properties.name) {
//
layer.on("click", (e) => {
//
if (selectedLayer) {
selectedLayer.setStyle({
fillColor: "#1890ff",
fillOpacity: 0.15,
weight: 1.5,
color: "#40a9ff",
});
}
//
layer.setStyle({
fillColor: "#ff4d4f",
fillOpacity: 0.6,
weight: 2.5,
color: "#ff7875",
});
selectedLayer = layer;
selectedDistrict.value = feature.properties.name;
//
emit("districtClick", {
name: feature.properties.name,
feature: feature,
latlng: e.latlng,
});
//
mapInstance.panTo(e.latlng, { animate: true, duration: 0.5 });
});
//
layer.on("mouseover", () => {
layer.setStyle({
fillColor: "#1890ff",
fillOpacity: 0.4,
weight: 2,
color: "#69c0ff",
});
});
layer.on("mouseout", () => {
layer.setStyle({
fillColor: "#1890ff",
fillOpacity: 0.15,
weight: 1.5,
color: "#40a9ff",
});
});
// popup
layer.bindPopup(`<div class="map-popup">
<strong>${feature.properties.name}</strong>
</div>`);
}
},
});
mapInstance.addLayer(geoJsonLayer);
//
geoJsonData.features.forEach((feature) => {
if (feature.properties && feature.properties.name) {
let centroid;
if (feature.geometry.type === "Polygon") {
centroid = getCentroid(feature.geometry.coordinates);
} else if (feature.geometry.type === "MultiPolygon") {
//
centroid = getCentroid(feature.geometry.coordinates[0]);
}
if (centroid) {
const label = window.L.divIcon({
className: "district-label",
html: `<div class="label-content">${feature.properties.name}</div>`,
iconSize: [80, 30],
iconAnchor: [40, 15],
});
const marker = window.L.marker(centroid, { icon: label });
marker.on("click", (e) => {
//
if (selectedLayer) {
selectedLayer.setStyle({
fillColor: "#1E3A8A",
fillOpacity: 0.3,
weight: 2,
});
}
//
geoJsonLayer.eachLayer((layer) => {
if (
layer.feature &&
layer.feature.properties.name === feature.properties.name
) {
layer.setStyle({
fillColor: "#ff4d4f",
fillOpacity: 0.6,
weight: 2.5,
color: "#ff7875",
});
selectedLayer = layer;
selectedDistrict.value = feature.properties.name;
}
});
//
emit("districtClick", {
name: feature.properties.name,
feature: feature,
latlng: e.latlng,
});
//
mapInstance.panTo(e.latlng, { animate: true, duration: 0.5 });
});
mapInstance.addLayer(marker);
</div>`)
}
}
});
})
mapInstance.addLayer(geoJsonLayer)
//
mapInstance.fitBounds(geoJsonLayer.getBounds());
mapInstance.fitBounds(geoJsonLayer.getBounds())
} catch (err) {
console.error("初始化地图失败:", err);
error.value = "地图初始化失败";
console.error('初始化地图失败:', err)
error.value = '地图初始化失败'
}
};
}
//
onMounted(() => {
// Leaflet
if (typeof window.L === "undefined") {
// Leaflet CSS JS
const link = document.createElement("link");
link.rel = "stylesheet";
link.href = "https://unpkg.com/leaflet@1.9.4/dist/leaflet.css";
link.integrity = "sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=";
link.crossOrigin = "";
document.head.appendChild(link);
const script = document.createElement("script");
script.src = "https://unpkg.com/leaflet@1.9.4/dist/leaflet.js";
script.integrity = "sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=";
script.crossOrigin = "";
script.onload = loadMapData;
document.head.appendChild(script);
// Leaflet
if (typeof window.L === 'undefined') {
// Leaflet CSSJS
const link = document.createElement('link')
link.rel = 'stylesheet'
link.href = 'https://unpkg.com/leaflet@1.9.4/dist/leaflet.css'
link.integrity = 'sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY='
link.crossOrigin = ''
document.head.appendChild(link)
const script = document.createElement('script')
script.src = 'https://unpkg.com/leaflet@1.9.4/dist/leaflet.js'
script.integrity = 'sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo='
script.crossOrigin = ''
script.onload = loadMapData
document.head.appendChild(script)
} else {
loadMapData();
loadMapData()
}
});
})
//
onUnmounted(() => {
if (mapInstance) {
mapInstance.remove();
mapInstance = null;
mapInstance.remove()
mapInstance = null
}
});
})
</script>
<style lang="scss">
// Leaflet
.district-label {
background: transparent !important;
border: none !important;
.label-content {
background: transparent;
color: #fff;
padding: vw(4) vw(8);
border-radius: vw(2);
font-weight: 500;
text-align: center;
white-space: nowrap;
text-shadow:
0 1px 3px rgba(0, 0, 0, 0.8),
0 0 2px rgba(0, 0, 0, 0.5);
letter-spacing: 0.5px;
cursor: pointer;
width: fit-content;
transition: all 0.3s;
&:hover {
color: #40a9ff;
text-shadow: 0 0 10px rgba(64, 169, 255, 0.8);
transform: scale(1.05);
}
}
}
</style>
<style lang="scss" scoped>
// -
@function vw($px) {
@return calc($px / 1920 * 100vw);
}
.chongqing-map-container {
width: 100%;
height: 100%;
@ -417,84 +163,61 @@ onUnmounted(() => {
}
.loading-spinner {
width: vw(40);
height: vw(40);
border: vw(4) solid #3b82f6;
border-top: vw(4) solid transparent;
width: 40px;
height: 40px;
border: 4px solid #3B82F6;
border-top: 4px solid transparent;
border-radius: 50%;
animation: spin 1s linear infinite;
margin-bottom: vw(10);
margin-bottom: 10px;
}
.loading-text {
color: #fff;
font-size: vw(14);
font-size: 14px;
}
.error-text {
color: #ff6b6b;
font-size: vw(14);
margin-bottom: vw(10);
font-size: 14px;
margin-bottom: 10px;
}
.retry-btn {
background: #3b82f6;
background: #3B82F6;
color: white;
border: none;
padding: vw(8) vw(16);
border-radius: vw(4);
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
font-size: vw(12);
font-size: 12px;
&:hover {
background: #2563eb;
background: #2563EB;
}
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
// Leaflet
// Leaflet
:deep(.leaflet-container) {
background: #0f1c2e !important;
.leaflet-popup-content-wrapper {
background: rgba(24, 144, 255, 0.95);
border-radius: vw(4);
padding: vw(6) vw(12);
min-width: vw(80);
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
background: rgba(64, 169, 255, 0.9);
border-radius: 4px;
.map-popup {
color: #fff;
font-size: vw(12);
text-align: center;
margin: 0;
padding: 0;
font-weight: 500;
font-size: 12px;
}
}
.leaflet-popup-tip {
background: rgba(24, 144, 255, 0.95);
}
.leaflet-popup-content {
width: max-content !important;
margin: vw(10) 10px vw(10) 0;
line-height: 1.3;
background: rgba(64, 169, 255, 0.9);
}
}
//
:deep(.leaflet-interactive) {
transition: all 0.3s;
cursor: pointer;
}
</style>
</style>

View File

@ -160,8 +160,7 @@ watch(
}
.ai-dialog {
width: 80vw;
max-width: 1000px;
width: 1000px;
background: linear-gradient(135deg, rgba(20, 50, 90, 0.95) 0%, rgba(10, 30, 60, 0.98) 100%);
border: 1px solid rgba(64, 169, 255, 0.3);
border-radius: 12px;

View File

@ -51,14 +51,16 @@
<!-- 数据表格 -->
<div class="table-section">
<div class="table-header">
<div
v-for="(column, index) in tableColumns"
:key="index"
class="th"
:style="{ width: column.width, flex: column.flex || 'none' }"
>
{{ column.label }}
</div>
<div class="th" style="width: 50px">序号</div>
<div class="th" style="width: 80px">行政区域</div>
<div class="th" style="width: 80px">线路编号</div>
<div class="th" style="width: 100px">起止桩号</div>
<div class="th" style="width: 100px">路况位置</div>
<div class="th" style="width: 140px">发生时间</div>
<div class="th" style="width: 80px">线路编号</div>
<div class="th" style="width: 80px">类型</div>
<div class="th" style="width: 100px">管控措施</div>
<div class="th" style="flex: 1">操作</div>
</div>
<div class="table-body">
<div
@ -120,7 +122,6 @@
<script setup>
import { ref, computed, watch } from "vue";
import { Close } from "@element-plus/icons-vue";
import { regionOptions, typeOptions, controlMeasureOptions } from "./index.js";
const props = defineProps({
visible: {
@ -139,26 +140,27 @@ const filterForm = ref({
});
//
// index.js
const regionOptions = ref([
{ label: "巫溪县", value: "巫溪县" },
{ label: "万州区", value: "万州区" },
{ label: "沙坪坝区", value: "沙坪坝区" },
{ label: "渝中区", value: "渝中区" },
]);
//
// index.js
const typeOptions = ref([
{ label: "边坡坍塌", value: "边坡坍塌" },
{ label: "路面塌陷", value: "路面塌陷" },
{ label: "桥梁损坏", value: "桥梁损坏" },
{ label: "隧道事故", value: "隧道事故" },
]);
//
// index.js
//
const tableColumns = ref([
{ label: "序号", width: "50px" },
{ label: "行政区域", width: "80px" },
{ label: "线路编号", width: "80px" },
{ label: "起止桩号", width: "100px" },
{ label: "路况位置", width: "100px" },
{ label: "发生时间", width: "140px" },
{ label: "线路编号", width: "80px" },
{ label: "类型", width: "80px" },
{ label: "管控措施", width: "100px" },
{ label: "操作", flex: "1" },
const controlMeasureOptions = ref([
{ label: "全幅封闭", value: "全幅封闭" },
{ label: "半幅封闭", value: "半幅封闭" },
{ label: "正常通行", value: "正常通行" },
{ label: "限制通行", value: "限制通行" },
]);
//
@ -312,8 +314,7 @@ watch(
}
.clearance-dialog {
width: 80vw;
max-width: 1000px;
width: 1000px;
background: linear-gradient(135deg, rgba(20, 50, 90, 0.95) 0%, rgba(10, 30, 60, 0.98) 100%);
border: 1px solid rgba(64, 169, 255, 0.3);
border-radius: 12px;
@ -364,8 +365,7 @@ watch(
.filter-row {
display: flex;
gap: 12px;
flex-wrap: wrap;
gap: 24px;
}
.filter-item {

View File

@ -88,30 +88,12 @@ const handleOverlayClick = () => {
}
.confirm-dialog {
width: 80vw;
max-width: 400px;
width: 360px;
background: linear-gradient(135deg, rgba(20, 50, 90, 0.95) 0%, rgba(10, 30, 60, 0.98) 100%);
border: 1px solid rgba(64, 169, 255, 0.3);
border-radius: 8px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
overflow: hidden;
animation: dialogSlideIn 0.3s ease-out;
@media (max-width: 768px) {
width: 90vw;
max-width: 90vw;
}
}
@keyframes dialogSlideIn {
from {
opacity: 0;
transform: scale(0.8) translateY(-50px);
}
to {
opacity: 1;
transform: scale(1) translateY(0);
}
}
//
@ -127,23 +109,18 @@ const handleOverlayClick = () => {
font-size: 16px;
font-weight: 600;
color: #fff;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.close-btn {
width: 19px;
height: 19px;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
color: rgba(255, 255, 255, 0.6);
cursor: pointer;
font-size: 13px;
font-size: 16px;
transition: color 0.3s;
flex-shrink: 0;
&:hover {
color: #fff;
@ -155,16 +132,12 @@ const handleOverlayClick = () => {
.dialog-content {
padding: 24px 20px;
text-align: center;
max-height: 40vh;
overflow-y: auto;
.confirm-message {
font-size: 16px;
font-size: 14px;
color: rgba(255, 255, 255, 0.9);
line-height: 1.6;
margin: 0;
word-wrap: break-word;
word-break: break-all;
}
}
@ -174,20 +147,16 @@ const handleOverlayClick = () => {
justify-content: center;
gap: 16px;
padding: 0 20px 20px;
flex-wrap: wrap;
.btn-cancel {
min-width: 80px;
height: 26px;
padding: 0 16px;
height: 32px;
background-color: transparent;
border: 1px solid rgba(64, 169, 255, 0.4);
color: rgba(255, 255, 255, 0.8);
font-size: 10px;
font-size: 13px;
border-radius: 4px;
transition: all 0.3s;
flex: 1;
min-flex: 64px;
&:hover {
background-color: rgba(64, 169, 255, 0.1);
@ -198,16 +167,13 @@ const handleOverlayClick = () => {
.btn-confirm {
min-width: 80px;
height: 26px;
padding: 0 16px;
height: 32px;
background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
border: none;
color: #fff;
font-size: 10px;
font-size: 13px;
border-radius: 4px;
transition: all 0.3s;
flex: 1;
min-flex: 64px;
&:hover {
background: linear-gradient(135deg, #69c0ff 0%, #40a9ff 100%);

View File

@ -40,14 +40,12 @@
<!-- 数据表格 -->
<div class="table-section">
<div class="table-header">
<div
v-for="(column, index) in tableColumns"
:key="index"
class="th"
:style="{ width: column.width, flex: column.flex || 'none' }"
>
{{ column.label }}
</div>
<div class="th" style="width: 60px">序号</div>
<div class="th" style="width: 100px">行政区域</div>
<div class="th" style="width: 200px">驻地名称</div>
<div class="th" style="width: 200px">所属项目</div>
<div class="th" style="width: 80px">驻地人数</div>
<div class="th" style="flex: 1">驻地风险等级</div>
</div>
<div class="table-body">
<div
@ -103,7 +101,6 @@
<script setup>
import { ref, computed, watch } from "vue";
import { Close } from "@element-plus/icons-vue";
import { regionOptions, riskLevelOptions } from "./index.js";
const props = defineProps({
visible: {
@ -121,19 +118,19 @@ const filterForm = ref({
});
//
// index.js
const regionOptions = ref([
{ label: "沙坪坝区", value: "沙坪坝区" },
{ label: "万州区", value: "万州区" },
{ label: "渝中区", value: "渝中区" },
{ label: "江北区", value: "江北区" },
]);
//
// index.js
//
const tableColumns = ref([
{ label: "序号", width: "60px" },
{ label: "行政区域", width: "100px" },
{ label: "驻地名称", width: "200px" },
{ label: "所属项目", width: "200px" },
{ label: "驻地人数", width: "80px" },
{ label: "驻地风险等级", flex: "1" },
const riskLevelOptions = ref([
{ label: "Ⅰ级", value: "Ⅰ级" },
{ label: "Ⅱ级", value: "Ⅱ级" },
{ label: "Ⅲ级", value: "Ⅲ级" },
{ label: "Ⅳ级", value: "Ⅳ级" },
]);
//
@ -270,8 +267,7 @@ watch(
}
.control-dialog {
width: 80vw;
max-width: 900px;
width: 900px;
background: linear-gradient(135deg, rgba(20, 50, 90, 0.95) 0%, rgba(10, 30, 60, 0.98) 100%);
border: 1px solid rgba(64, 169, 255, 0.3);
border-radius: 12px;
@ -322,8 +318,7 @@ watch(
.filter-row {
display: flex;
gap: 12px;
flex-wrap: wrap;
gap: 24px;
}
.filter-item {

View File

@ -40,14 +40,13 @@
<!-- 数据表格 -->
<div class="table-section">
<div class="table-header">
<div
v-for="(column, index) in tableColumns"
:key="index"
class="th"
:style="{ width: column.width, flex: column.flex || 'none' }"
>
{{ column.label }}
</div>
<div class="th" style="width: 50px">序号</div>
<div class="th" style="width: 100px">区县/镇街</div>
<div class="th" style="width: 80px">姓名</div>
<div class="th" style="width: 120px">电话</div>
<div class="th" style="width: 100px">类型</div>
<div class="th" style="width: 140px">角色</div>
<div class="th" style="flex: 1">调度时间</div>
</div>
<div class="table-body">
<div
@ -94,7 +93,6 @@
<script setup>
import { ref, computed, watch } from "vue";
import { Close } from "@element-plus/icons-vue";
import { regionOptions, typeOptions } from "./index.js";
const props = defineProps({
visible: {
@ -112,20 +110,19 @@ const filterForm = ref({
});
//
// index.js
const regionOptions = ref([
{ label: "柏梓镇", value: "柏梓镇" },
{ label: "万州区", value: "万州区" },
{ label: "沙坪坝区", value: "沙坪坝区" },
{ label: "渝中区", value: "渝中区" },
]);
//
// index.js
//
const tableColumns = ref([
{ label: "序号", width: "50px" },
{ label: "区县/镇街", width: "100px" },
{ label: "姓名", width: "80px" },
{ label: "电话", width: "120px" },
{ label: "类型", width: "100px" },
{ label: "角色", width: "140px" },
{ label: "调度时间", flex: "1" },
const typeOptions = ref([
{ label: "交通主管部门", value: "交通主管部门" },
{ label: "公路机构", value: "公路机构" },
{ label: "养护站", value: "养护站" },
{ label: "护路员", value: "护路员" },
]);
//
@ -255,8 +252,7 @@ watch(
}
.dispatch-detail-dialog {
width: 80vw;
max-width: 900px;
width: 900px;
background: linear-gradient(135deg, rgba(20, 50, 90, 0.95) 0%, rgba(10, 30, 60, 0.98) 100%);
border: 1px solid rgba(64, 169, 255, 0.3);
border-radius: 12px;
@ -307,8 +303,7 @@ watch(
.filter-row {
display: flex;
gap: 12px;
flex-wrap: wrap;
gap: 24px;
}
.filter-item {

View File

@ -29,14 +29,10 @@
<!-- 数据表格 -->
<div class="table-section">
<div class="table-header">
<div
v-for="(column, index) in tableColumns"
:key="index"
class="th"
:style="{ width: column.width, flex: column.flex || 'none' }"
>
{{ column.label }}
</div>
<div class="th" style="width: 60px">序号</div>
<div class="th" style="width: 120px">行政区域</div>
<div class="th" style="width: 100px">调度数</div>
<div class="th" style="flex: 1">最近调度时间</div>
</div>
<div class="table-body">
<div
@ -82,7 +78,6 @@
<script setup>
import { ref, computed, watch } from "vue";
import { Close } from "@element-plus/icons-vue";
import { regionOptions } from "./index.js";
const props = defineProps({
visible: {
@ -99,14 +94,11 @@ const filterForm = ref({
});
//
// index.js
//
const tableColumns = ref([
{ label: "序号", width: "60px" },
{ label: "行政区域", width: "120px" },
{ label: "调度数", width: "100px" },
{ label: "最近调度时间", flex: "1" },
const regionOptions = ref([
{ label: "重庆市", value: "重庆市" },
{ label: "万州区", value: "万州区" },
{ label: "沙坪坝区", value: "沙坪坝区" },
{ label: "渝中区", value: "渝中区" },
]);
//
@ -229,8 +221,7 @@ watch(
}
.dispatch-dialog {
width: 80vw;
max-width: 700px;
width: 700px;
background: linear-gradient(135deg, rgba(20, 50, 90, 0.95) 0%, rgba(10, 30, 60, 0.98) 100%);
border: 1px solid rgba(64, 169, 255, 0.3);
border-radius: 12px;
@ -281,8 +272,7 @@ watch(
.filter-row {
display: flex;
gap: 12px;
flex-wrap: wrap;
gap: 24px;
}
.filter-item {

View File

@ -243,8 +243,7 @@ watch(
}
.event-dialog {
width: 80vw;
max-width: 700px;
width: 700px;
max-height: 85vh;
overflow-y: auto;
background: linear-gradient(135deg, rgba(20, 50, 90, 0.95) 0%, rgba(10, 30, 60, 0.98) 100%);

View File

@ -234,8 +234,7 @@ watch(
}
.impact-detail-dialog {
width: 80vw;
max-width: 650px;
width: 650px;
max-height: 90vh;
overflow-y: auto;
background: linear-gradient(135deg, rgba(20, 50, 90, 0.95) 0%, rgba(10, 30, 60, 0.98) 100%);

View File

@ -8,59 +8,32 @@
<el-icon><Close /></el-icon>
</div>
</div>
<div></div>
<!-- 统计卡片 -->
<div class="stats-cards">
<div class="stat-card">
<div class="stat-label">影响桥梁</div>
<div class="stat-value">2933</div>
</div>
<div class="stat-card">
<div class="stat-label">影响边坡</div>
<div class="stat-value">2933</div>
</div>
<div class="stat-card">
<div class="stat-label">影响隧道</div>
<div class="stat-value">2933</div>
</div>
<div class="stat-card">
<div class="stat-label">影响项目</div>
<div class="stat-value">2933</div>
</div>
</div>
<!-- 筛选区域 -->
<div class="filter-section">
<div class="filter-row">
<div class="filter-item">
<el-select v-model="filterForm.pointType" placeholder="影响点类型" class="filter-select">
<el-option
v-for="option in pointTypeOptions"
:key="option.value"
:label="option.label"
:value="option.value"
/>
<el-option label="全部" value="" />
<el-option label="边坡" value="slope" />
<el-option label="桥梁" value="bridge" />
<el-option label="隧道" value="tunnel" />
<el-option label="路面" value="road" />
</el-select>
</div>
<div class="filter-item">
<el-select v-model="filterForm.pointLevel" placeholder="影响点等级" class="filter-select">
<el-option
v-for="option in pointLevelOptions"
:key="option.value"
:label="option.label"
:value="option.value"
/>
<el-option label="全部" value="" />
<el-option label="一般隐患" value="normal" />
<el-option label="重大隐患" value="serious" />
</el-select>
</div>
<div class="filter-item">
<el-select v-model="filterForm.region" placeholder="行政区域" class="filter-select">
<el-option
v-for="option in regionOptionsWithAll"
:key="option.value"
:label="option.label"
:value="option.value"
/>
<el-option label="全部" value="" />
<el-option label="万州区" value="wanzhou" />
<el-option label="涪陵区" value="fuling" />
<el-option label="合川区" value="hechuan" />
</el-select>
</div>
<div class="filter-item">
@ -74,14 +47,16 @@
<!-- 数据表格 -->
<div class="table-section">
<div class="table-header">
<div
v-for="(column, index) in tableColumns"
:key="index"
class="th"
:style="{ width: column.width, flex: column.flex || 'none' }"
>
{{ column.label }}
</div>
<div class="th" style="width: 50px">序号</div>
<div class="th" style="width: 80px">行政区域</div>
<div class="th" style="width: 80px">影响点类型</div>
<div class="th" style="width: 180px">影响点位置</div>
<div class="th" style="width: 90px">影响点等级</div>
<div class="th" style="width: 130px">交通主管部门负责人</div>
<div class="th" style="width: 110px">公路机构责任人</div>
<div class="th" style="width: 110px">养护站负责人</div>
<div class="th" style="width: 100px">护路员</div>
<div class="th" style="width: 60px">操作</div>
</div>
<div class="table-body">
<div
@ -156,7 +131,6 @@
<script setup>
import { ref, computed, watch } from "vue";
import { Close, ArrowLeft, ArrowRight } from "@element-plus/icons-vue";
import { pointTypeOptions, pointLevelOptions, regionOptionsWithAll } from "./index.js";
const props = defineProps({
visible: {
@ -174,20 +148,6 @@ const filterForm = ref({
region: "",
});
//
const tableColumns = ref([
{ label: "序号", width: "50px" },
{ label: "行政区域", width: "80px" },
{ label: "影响点类型", width: "80px" },
{ label: "影响点位置", width: "180px" },
{ label: "影响点等级", width: "90px" },
{ label: "交通主管部门负责人", width: "130px" },
{ label: "公路机构责任人", width: "110px" },
{ label: "养护站负责人", width: "110px" },
{ label: "护路员", width: "100px" },
{ label: "操作", width: "60px" },
]);
//
const tableData = ref([
{
@ -313,11 +273,6 @@ watch(
</script>
<style lang="scss" scoped>
// -
@function vw($px) {
@return calc($px / 1920 * 100vw);
}
.impact-dialog-overlay {
position: fixed;
top: 0;
@ -332,12 +287,11 @@ watch(
}
.impact-dialog {
width: 80vw;
max-width: 1200px;
width: 1050px;
background: linear-gradient(135deg, rgba(20, 50, 90, 0.95) 0%, rgba(10, 30, 60, 0.98) 100%);
border: 1px solid rgba(64, 169, 255, 0.3);
border-radius: vw(12);
padding: vw(24);
border-radius: 12px;
padding: 24px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
@ -347,29 +301,29 @@ watch(
align-items: center;
justify-content: center;
position: relative;
margin-bottom: vw(20);
margin-bottom: 20px;
.header-title {
font-size: vw(20);
font-size: 20px;
font-weight: 600;
color: #fff;
padding: vw(8) vw(40);
padding: 8px 40px;
background: linear-gradient(90deg, transparent 0%, rgba(64, 169, 255, 0.2) 20%, rgba(64, 169, 255, 0.2) 80%, transparent 100%);
border-bottom: vw(2) solid #40a9ff;
border-bottom: 2px solid #40a9ff;
}
.close-btn {
position: absolute;
right: 0;
top: 0;
width: vw(32);
height: vw(32);
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
color: rgba(255, 255, 255, 0.7);
cursor: pointer;
font-size: vw(20);
font-size: 20px;
transition: color 0.3s;
&:hover {
@ -378,69 +332,29 @@ watch(
}
}
//
.stats-cards {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: vw(16);
margin-bottom: vw(20);
.stat-card {
background: linear-gradient(135deg, rgba(30, 70, 120, 0.6) 0%, rgba(20, 50, 90, 0.8) 100%);
border: vw(2) solid rgba(64, 169, 255, 0.4);
border-radius: vw(8);
padding: vw(16) vw(20);
text-align: center;
transition: all 0.3s;
cursor: pointer;
&:hover {
border-color: rgba(64, 169, 255, 0.8);
box-shadow: 0 0 20px rgba(64, 169, 255, 0.3);
transform: translateY(-2px);
}
.stat-label {
font-size: vw(14);
color: rgba(255, 255, 255, 0.8);
margin-bottom: vw(8);
font-weight: 500;
}
.stat-value {
font-size: vw(28);
font-weight: bold;
color: #40a9ff;
text-shadow: 0 0 10px rgba(64, 169, 255, 0.5);
}
}
}
//
.filter-section {
margin-bottom: vw(20);
margin-bottom: 20px;
.filter-row {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 12px;
}
.filter-item {
.filter-select {
width: vw(150);
width: 150px;
:deep(.el-input__wrapper) {
background-color: rgba(30, 70, 120, 0.4);
border: 1px solid rgba(64, 169, 255, 0.3);
box-shadow: none;
border-radius: vw(4);
border-radius: 4px;
.el-input__inner {
color: #fff;
font-size: vw(13);
font-size: 13px;
&::placeholder {
color: rgba(255, 255, 255, 0.5);
@ -458,10 +372,10 @@ watch(
.search-btn {
background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
border: none;
border-radius: vw(4);
padding: 0 vw(24);
height: vw(32);
font-size: vw(13);
border-radius: 4px;
padding: 0 24px;
height: 32px;
font-size: 13px;
&:hover {
background: linear-gradient(135deg, #69c0ff 0%, #40a9ff 100%);
@ -473,17 +387,17 @@ watch(
//
.table-section {
background-color: rgba(30, 70, 120, 0.3);
border-radius: vw(8);
border-radius: 8px;
overflow: hidden;
margin-bottom: vw(20);
margin-bottom: 20px;
.table-header {
display: flex;
background-color: rgba(64, 169, 255, 0.2);
padding: vw(12) vw(16);
padding: 12px 16px;
.th {
font-size: vw(13);
font-size: 13px;
font-weight: 500;
color: #fff;
text-align: center;
@ -496,10 +410,10 @@ watch(
.table-row {
display: flex;
padding: vw(12) vw(16);
padding: 12px 16px;
align-items: center;
transition: background-color 0.3s;
min-height: vw(60);
min-height: 60px;
&:hover {
background-color: rgba(64, 169, 255, 0.1);
@ -510,17 +424,17 @@ watch(
}
.td {
font-size: vw(12);
font-size: 12px;
color: rgba(255, 255, 255, 0.85);
text-align: center;
word-break: break-all;
padding: 0 vw(4);
padding: 0 4px;
.level-tag {
display: inline-block;
padding: vw(2) vw(8);
border-radius: vw(4);
font-size: vw(11);
padding: 2px 8px;
border-radius: 4px;
font-size: 11px;
&.level-normal {
background-color: rgba(250, 219, 95, 0.2);
@ -538,15 +452,15 @@ watch(
.person-info {
display: flex;
flex-direction: column;
gap: vw(2);
gap: 2px;
.person-name {
font-size: vw(12);
font-size: 12px;
color: rgba(255, 255, 255, 0.9);
}
.person-phone {
font-size: vw(11);
font-size: 11px;
color: rgba(255, 255, 255, 0.6);
}
}
@ -554,7 +468,7 @@ watch(
.detail-link {
color: #40a9ff;
cursor: pointer;
font-size: vw(12);
font-size: 12px;
&:hover {
color: #69c0ff;
@ -571,27 +485,27 @@ watch(
display: flex;
align-items: center;
justify-content: flex-end;
gap: vw(16);
gap: 16px;
.total {
font-size: vw(13);
font-size: 13px;
color: rgba(255, 255, 255, 0.6);
}
.page-btns {
display: flex;
gap: vw(8);
gap: 8px;
.page-btn {
min-width: vw(28);
height: vw(28);
min-width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(64, 169, 255, 0.1);
border: 1px solid rgba(64, 169, 255, 0.2);
border-radius: vw(4);
font-size: vw(12);
border-radius: 4px;
font-size: 12px;
color: rgba(255, 255, 255, 0.8);
cursor: pointer;
transition: all 0.3s;
@ -617,17 +531,17 @@ watch(
//
.table-body::-webkit-scrollbar {
width: vw(6);
width: 6px;
}
.table-body::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.2);
border-radius: vw(3);
border-radius: 3px;
}
.table-body::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, #40a9ff 0%, #1890ff 100%);
border-radius: vw(3);
border-radius: 3px;
}
.table-body::-webkit-scrollbar-thumb:hover {

View File

@ -1,109 +0,0 @@
// 弹窗组件统一数据配置
// 行政区域选项
export const regionOptions = [
{ label: "重庆市", value: "重庆市" },
{ label: "万州区", value: "万州区" },
{ label: "沙坪坝区", value: "沙坪坝区" },
{ label: "渝中区", value: "渝中区" },
{ label: "巫溪县", value: "巫溪县" },
{ label: "涪陵区", value: "涪陵区" },
{ label: "合川区", value: "合川区" },
{ label: "万盛区", value: "万盛区" },
{ label: "长寿区", value: "长寿区" },
{ label: "城口区", value: "城口区" },
{ label: "柏梓镇", value: "柏梓镇" },
{ label: "江北区", value: "江北区" },
];
// 类型选项
export const typeOptions = [
{ label: "边坡坍塌", value: "边坡坍塌" },
{ label: "路面塌陷", value: "路面塌陷" },
{ label: "桥梁损坏", value: "桥梁损坏" },
{ label: "隧道事故", value: "隧道事故" },
{ label: "交通主管部门", value: "交通主管部门" },
{ label: "公路机构", value: "公路机构" },
{ label: "养护站", value: "养护站" },
{ label: "护路员", value: "护路员" },
];
// 管控措施选项
export const controlMeasureOptions = [
{ label: "全幅封闭", value: "全幅封闭" },
{ label: "半幅封闭", value: "半幅封闭" },
{ label: "正常通行", value: "正常通行" },
{ label: "限制通行", value: "限制通行" },
];
// 风险等级选项
export const riskLevelOptions = [
{ label: "一级", value: "一级" },
{ label: "二级", value: "二级" },
{ label: "三级", value: "三级" },
{ label: "四级", value: "四级" },
];
// 影响点类型选项
export const pointTypeOptions = [
{ label: "全部", value: "" },
{ label: "边坡", value: "slope" },
{ label: "桥梁", value: "bridge" },
{ label: "隧道", value: "tunnel" },
{ label: "路面", value: "road" },
];
// 影响点等级选项
export const pointLevelOptions = [
{ label: "全部", value: "" },
{ label: "一般隐患", value: "normal" },
{ label: "重大隐患", value: "serious" },
];
// 是否回应选项
export const isRespondedOptions = [
{ label: "全部", value: "" },
{ label: "是", value: "yes" },
{ label: "否", value: "no" },
];
// 预警等级选项
export const warningLevelOptions = [
{ label: "全部", value: "" },
{ label: "红色预警", value: "red" },
{ label: "橙色预警", value: "orange" },
{ label: "黄色预警", value: "yellow" },
{ label: "蓝色预警", value: "blue" },
];
// 是否结束选项
export const isEndedOptions = [
{ label: "全部", value: "" },
{ label: "是", value: "yes" },
{ label: "否", value: "no" },
];
// 行政区域选项(带全部)
export const regionOptionsWithAll = [
{ label: "全部", value: "" },
{ label: "万州区", value: "wanzhou" },
{ label: "涪陵区", value: "fuling" },
{ label: "合川区", value: "hechuan" },
{ label: "万盛区", value: "wansheng" },
{ label: "长寿区", value: "changshou" },
{ label: "城口区", value: "chengkou" },
];
// 默认导出所有选项
export default {
regionOptions,
typeOptions,
controlMeasureOptions,
riskLevelOptions,
pointTypeOptions,
pointLevelOptions,
isRespondedOptions,
warningLevelOptions,
isEndedOptions,
regionOptionsWithAll,
};

View File

@ -271,8 +271,7 @@ watch(
}
.response-dialog {
width: 80vw;
max-width: 700px;
width: 700px;
max-height: 90vh;
overflow-y: auto;
background: linear-gradient(135deg, rgba(20, 50, 90, 0.95) 0%, rgba(10, 30, 60, 0.98) 100%);

View File

@ -305,8 +305,7 @@ watch(
}
.response-info-dialog {
width: 80vw;
max-width: 750px;
width: 750px;
max-height: 90vh;
overflow-y: auto;
background: linear-gradient(135deg, rgba(20, 50, 90, 0.95) 0%, rgba(10, 30, 60, 0.98) 100%);

View File

@ -52,14 +52,13 @@
<!-- 数据表格 -->
<div class="table-section">
<div class="table-header">
<div
v-for="(column, index) in tableColumns"
:key="index"
class="th"
:style="{ width: column.width, flex: column.flex || 'none' }"
>
{{ column.label }}
</div>
<div class="th" style="width: 60px">序号</div>
<div class="th" style="width: 120px">区县/镇街</div>
<div class="th" style="width: 100px">姓名</div>
<div class="th" style="width: 120px">电话</div>
<div class="th" style="flex: 1">角色</div>
<div class="th" style="width: 100px">职务</div>
<div class="th" style="width: 120px">操作</div>
</div>
<div class="table-body">
<div
@ -136,17 +135,6 @@ const stats = ref({
village: 1099,
});
//
const tableColumns = ref([
{ label: "序号", width: "60px" },
{ label: "区县/镇街", width: "120px" },
{ label: "姓名", width: "100px" },
{ label: "电话", width: "120px" },
{ label: "角色", flex: "1" },
{ label: "职务", width: "100px" },
{ label: "操作", width: "120px" },
]);
//
const tableData = ref([
{ id: 1, district: "万州区柏梓镇", name: "赵海浪", phone: "1862352068", role: "一般人员(路长履职)", position: "其他" },
@ -263,13 +251,11 @@ watch(
}
.response-dialog {
width: 70vw;
max-width: 700px;
max-height: 80vh;
width: 900px;
background: linear-gradient(135deg, rgba(20, 50, 90, 0.95) 0%, rgba(10, 30, 60, 0.98) 100%);
border: 1px solid rgba(64, 169, 255, 0.3);
border-radius: 12px;
padding: 16px;
padding: 24px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
@ -279,13 +265,13 @@ watch(
align-items: center;
justify-content: center;
position: relative;
margin-bottom: 12px;
margin-bottom: 24px;
.header-title {
font-size: 14px;
font-size: 20px;
font-weight: 600;
color: #fff;
padding: 4px 24px;
padding: 8px 40px;
background: linear-gradient(90deg, transparent 0%, rgba(64, 169, 255, 0.2) 20%, rgba(64, 169, 255, 0.2) 80%, transparent 100%);
border-bottom: 2px solid #40a9ff;
}
@ -294,14 +280,14 @@ watch(
position: absolute;
right: 0;
top: 0;
width: 24px;
height: 24px;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
color: rgba(255, 255, 255, 0.7);
cursor: pointer;
font-size: 16px;
font-size: 20px;
transition: color 0.3s;
&:hover {
@ -313,55 +299,55 @@ watch(
//
.stats-cards {
display: flex;
gap: 12px;
margin-bottom: 12px;
gap: 20px;
margin-bottom: 24px;
.stat-card {
flex: 1;
display: flex;
align-items: center;
gap: 8px;
gap: 12px;
background: linear-gradient(135deg, rgba(30, 80, 140, 0.6) 0%, rgba(20, 60, 110, 0.8) 100%);
border: 1px solid rgba(64, 169, 255, 0.2);
border-radius: 4px;
padding: 10px 12px;
border-radius: 8px;
padding: 16px 20px;
.card-icon {
width: 32px;
height: 32px;
width: 48px;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(64, 169, 255, 0.15);
border-radius: 4px;
border-radius: 8px;
.stat-icon {
font-size: 18px;
font-size: 28px;
color: #40a9ff;
}
}
.card-info {
.card-label {
font-size: 11px;
font-size: 14px;
color: rgba(255, 255, 255, 0.7);
margin-bottom: 1px;
margin-bottom: 4px;
}
.card-value {
display: flex;
align-items: baseline;
gap: 2px;
gap: 4px;
.value-num {
font-size: 18px;
font-size: 28px;
font-weight: 700;
color: #40a9ff;
text-shadow: 0 0 6px rgba(64, 169, 255, 0.5);
text-shadow: 0 0 10px rgba(64, 169, 255, 0.5);
}
.value-unit {
font-size: 10px;
font-size: 13px;
color: rgba(255, 255, 255, 0.6);
}
}
@ -372,17 +358,17 @@ watch(
//
.table-section {
background-color: rgba(30, 70, 120, 0.3);
border-radius: 4px;
border-radius: 8px;
overflow: hidden;
margin-bottom: 12px;
margin-bottom: 20px;
.table-header {
display: flex;
background-color: rgba(64, 169, 255, 0.2);
padding: 8px 12px;
padding: 12px 16px;
.th {
font-size: 12px;
font-size: 14px;
font-weight: 500;
color: #fff;
text-align: center;
@ -390,12 +376,12 @@ watch(
}
.table-body {
max-height: 30vh;
max-height: 240px;
overflow-y: auto;
.table-row {
display: flex;
padding: 10px 12px;
padding: 12px 16px;
align-items: center;
transition: background-color 0.3s;
@ -408,23 +394,23 @@ watch(
}
.td {
font-size: 11px;
font-size: 13px;
color: rgba(255, 255, 255, 0.85);
text-align: center;
.action-btns {
display: flex;
justify-content: center;
gap: 8px;
gap: 12px;
.action-btn {
width: 20px;
height: 20px;
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(64, 169, 255, 0.15);
border-radius: 2px;
border-radius: 4px;
color: #40a9ff;
cursor: pointer;
transition: all 0.3s;
@ -445,27 +431,27 @@ watch(
display: flex;
align-items: center;
justify-content: flex-end;
gap: 10px;
gap: 16px;
.total {
font-size: 11px;
font-size: 13px;
color: rgba(255, 255, 255, 0.6);
}
.page-btns {
display: flex;
gap: 4px;
gap: 8px;
.page-btn {
min-width: 24px;
height: 24px;
min-width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(64, 169, 255, 0.1);
border: 1px solid rgba(64, 169, 255, 0.2);
border-radius: 2px;
font-size: 11px;
border-radius: 4px;
font-size: 13px;
color: rgba(255, 255, 255, 0.8);
cursor: pointer;
transition: all 0.3s;
@ -491,17 +477,17 @@ watch(
//
.table-body::-webkit-scrollbar {
width: 4px;
width: 8px;
}
.table-body::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.2);
border-radius: 2px;
border-radius: 4px;
}
.table-body::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, #40a9ff 0%, #1890ff 100%);
border-radius: 2px;
border-radius: 4px;
border: 1px solid rgba(255, 255, 255, 0.1);
}

View File

@ -1,9 +1,5 @@
<template>
<div
v-if="visible"
class="response-status-dialog-overlay"
@click="handleOverlayClick"
>
<div v-if="visible" class="response-status-dialog-overlay" @click="handleOverlayClick">
<div class="response-status-dialog" @click.stop>
<!-- 标题栏 -->
<div class="dialog-header">
@ -13,69 +9,30 @@
</div>
</div>
<!-- 统计卡片 -->
<div class="stats-cards">
<div class="stat-card">
<div class="stat-label">影响桥梁</div>
<div class="stat-value">2933</div>
</div>
<div class="stat-card">
<div class="stat-label">影响边坡</div>
<div class="stat-value">2933</div>
</div>
<div class="stat-card">
<div class="stat-label">影响隧道</div>
<div class="stat-value">2933</div>
</div>
<div class="stat-card">
<div class="stat-label">影响项目</div>
<div class="stat-value">2933</div>
</div>
</div>
<!-- 筛选区域 -->
<div class="filter-section">
<div class="filter-row">
<div class="filter-item">
<el-select
v-model="filterForm.pointType"
placeholder="影响点类型"
class="filter-select"
>
<el-option
v-for="option in pointTypeOptions"
:key="option.value"
:label="option.label"
:value="option.value"
/>
<el-select v-model="filterForm.pointType" placeholder="影响点类型" class="filter-select">
<el-option label="全部" value="" />
<el-option label="边坡" value="slope" />
<el-option label="桥梁" value="bridge" />
<el-option label="隧道" value="tunnel" />
<el-option label="路面" value="road" />
</el-select>
</div>
<div class="filter-item">
<el-select
v-model="filterForm.pointLevel"
placeholder="影响点等级"
class="filter-select"
>
<el-option
v-for="option in pointLevelOptions"
:key="option.value"
:label="option.label"
:value="option.value"
/>
<el-select v-model="filterForm.pointLevel" placeholder="影响点等级" class="filter-select">
<el-option label="全部" value="" />
<el-option label="一般隐患" value="normal" />
<el-option label="重大隐患" value="serious" />
</el-select>
</div>
<div class="filter-item">
<el-select
v-model="filterForm.isResponded"
placeholder="是否回应"
class="filter-select"
>
<el-option
v-for="option in isRespondedOptions"
:key="option.value"
:label="option.label"
:value="option.value"
/>
<el-select v-model="filterForm.isResponded" placeholder="是否回应" class="filter-select">
<el-option label="全部" value="" />
<el-option label="是" value="yes" />
<el-option label="否" value="no" />
</el-select>
</div>
</div>
@ -84,14 +41,18 @@
<!-- 数据表格 -->
<div class="table-section">
<div class="table-header">
<div
v-for="(column, index) in tableColumns"
:key="index"
class="th"
:style="{ width: column.width, flex: column.flex || 'none' }"
>
{{ column.label }}
</div>
<div class="th" style="width: 50px">序号</div>
<div class="th" style="width: 80px">影响点类型</div>
<div class="th" style="width: 180px">影响点位置</div>
<div class="th" style="width: 90px">影响点等级</div>
<div class="th" style="width: 60px">查次数</div>
<div class="th" style="width: 120px">交通主管部门负责人</div>
<div class="th" style="width: 110px">公路机构责任人</div>
<div class="th" style="width: 110px">养护站负责人</div>
<div class="th" style="width: 80px">护路员</div>
<div class="th" style="width: 70px">回应状态</div>
<div class="th" style="width: 110px">最新催告时间</div>
<div class="th" style="width: 50px">操作</div>
</div>
<div class="table-body">
<div
@ -102,11 +63,9 @@
>
<div class="td" style="width: 50px">{{ item.id }}</div>
<div class="td" style="width: 80px">{{ item.pointType }}</div>
<div class="td" style="width: 150px">{{ item.pointLocation }}</div>
<div class="td" style="width: 180px">{{ item.pointLocation }}</div>
<div class="td" style="width: 90px">
<span class="level-tag" :class="item.levelClass">{{
item.pointLevel
}}</span>
<span class="level-tag" :class="item.levelClass">{{ item.pointLevel }}</span>
</div>
<div class="td" style="width: 60px">{{ item.checkCount }}</div>
<div class="td" style="width: 120px">
@ -134,9 +93,7 @@
</div>
</div>
<div class="td" style="width: 70px">
<span class="response-status" :class="item.responseClass">{{
item.responseStatus
}}</span>
<span class="response-status" :class="item.responseClass">{{ item.responseStatus }}</span>
</div>
<div class="td" style="width: 110px">
<div class="time-info">
@ -155,11 +112,7 @@
<div class="pagination">
<span class="total">{{ total }}条数据</span>
<div class="page-btns">
<div
class="page-btn"
:class="{ disabled: currentPage === 1 }"
@click="prevPage"
>
<div class="page-btn" :class="{ disabled: currentPage === 1 }" @click="prevPage">
<el-icon><ArrowLeft /></el-icon>
</div>
<div
@ -171,11 +124,7 @@
>
{{ page }}
</div>
<div
class="page-btn"
:class="{ disabled: currentPage === totalPages }"
@click="nextPage"
>
<div class="page-btn" :class="{ disabled: currentPage === totalPages }" @click="nextPage">
<el-icon><ArrowRight /></el-icon>
</div>
</div>
@ -187,7 +136,6 @@
<script setup>
import { ref, computed, watch } from "vue";
import { Close, ArrowLeft, ArrowRight } from "@element-plus/icons-vue";
import { pointTypeOptions, pointLevelOptions, isRespondedOptions } from "./index.js";
const props = defineProps({
visible: {
@ -205,22 +153,6 @@ const filterForm = ref({
isResponded: "",
});
//
const tableColumns = ref([
{ label: "序号", width: "50px" },
{ label: "影响点类型", width: "80px" },
{ label: "影响点位置", width: "150px" },
{ label: "影响点等级", width: "90px" },
{ label: "查次数", width: "60px" },
{ label: "交通主管部门负责人", width: "120px" },
{ label: "公路机构责任人", width: "110px" },
{ label: "养护站负责人", width: "110px" },
{ label: "护路员", width: "80px" },
{ label: "回应状态", width: "70px" },
{ label: "最新催告时间", width: "110px" },
{ label: "操作", width: "50px" },
]);
//
const tableData = ref([
{
@ -328,7 +260,7 @@ watch(
currentPage.value = 1;
fetchData();
}
},
}
);
</script>
@ -347,13 +279,8 @@ watch(
}
.response-status-dialog {
width: 80vw;
max-width: 1150px;
background: linear-gradient(
135deg,
rgba(20, 50, 90, 0.95) 0%,
rgba(10, 30, 60, 0.98) 100%
);
width: 1150px;
background: linear-gradient(135deg, rgba(20, 50, 90, 0.95) 0%, rgba(10, 30, 60, 0.98) 100%);
border: 1px solid rgba(64, 169, 255, 0.3);
border-radius: 12px;
padding: 24px;
@ -373,13 +300,7 @@ watch(
font-weight: 600;
color: #fff;
padding: 8px 40px;
background: linear-gradient(
90deg,
transparent 0%,
rgba(64, 169, 255, 0.2) 20%,
rgba(64, 169, 255, 0.2) 80%,
transparent 100%
);
background: linear-gradient(90deg, transparent 0%, rgba(64, 169, 255, 0.2) 20%, rgba(64, 169, 255, 0.2) 80%, transparent 100%);
border-bottom: 2px solid #40a9ff;
}
@ -410,7 +331,6 @@ watch(
.filter-row {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 12px;
}
@ -453,7 +373,7 @@ watch(
.table-header {
display: flex;
background-color: rgba(64, 169, 255, 0.2);
padding: 12px 0;
padding: 12px 16px;
.th {
font-size: 13px;
@ -469,7 +389,7 @@ watch(
.table-row {
display: flex;
padding: 12px 0px;
padding: 12px 16px;
align-items: center;
transition: background-color 0.3s;
@ -650,46 +570,4 @@ watch(
}
}
}
//
.stats-cards {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
margin-bottom: 20px;
.stat-card {
background: linear-gradient(
135deg,
rgba(30, 70, 120, 0.6) 0%,
rgba(20, 50, 90, 0.8) 100%
);
border: 2px solid rgba(64, 169, 255, 0.4);
border-radius: 8px;
padding: 16px 20px;
text-align: center;
transition: all 0.3s;
cursor: pointer;
&:hover {
border-color: rgba(64, 169, 255, 0.8);
box-shadow: 0 0 20px rgba(64, 169, 255, 0.3);
transform: translateY(-2px);
}
.stat-label {
font-size: 14px;
color: rgba(255, 255, 255, 0.8);
margin-bottom: 8px;
font-weight: 500;
}
.stat-value {
font-size: 28px;
font-weight: bold;
color: #40a9ff;
text-shadow: 0 0 10px rgba(64, 169, 255, 0.5);
}
}
}
</style>

View File

@ -93,14 +93,9 @@
</div>
<div class="responsible-table">
<div class="table-header">
<div
v-for="(column, index) in tableColumns"
:key="index"
class="th"
:style="{ width: column.width }"
>
{{ column.label }}
</div>
<div class="th" style="width: 30%">责任人类型</div>
<div class="th" style="width: 40%">责任人</div>
<div class="th" style="width: 30%">巡查频率</div>
</div>
<div class="table-body">
<div
@ -197,13 +192,6 @@ const props = defineProps({
const emit = defineEmits(["update:visible", "close", "viewTrack"]);
//
const tableColumns = ref([
{ label: "责任人类型", width: "30%" },
{ label: "责任人", width: "40%" },
{ label: "巡查频率", width: "30%" },
]);
//
const basicInfo = ref({
district: "合川区",
@ -350,8 +338,7 @@ watch(
}
.risk-dialog {
width: 80vw;
max-width: 800px;
width: 800px;
max-height: 90vh;
overflow-y: auto;
background: linear-gradient(135deg, rgba(20, 50, 90, 0.95) 0%, rgba(10, 30, 60, 0.98) 100%);

View File

@ -24,7 +24,7 @@ defineProps({
<style lang="scss" scoped>
.section-header {
height: 6.6667vw;
height: 50px;
display: flex;
justify-content: space-between;
align-items: center;
@ -35,51 +35,20 @@ defineProps({
.header-left {
display: flex;
align-items: center;
gap: 1.0667vw;
font-size: 1.3333vw;
gap: 8px;
.title {
margin-left: 2.667vw;
font-weight: bold;
color: #fff;
font-size: 1vw;
}
margin-left: 35px;
font-size: 14px;
font-weight: bold;
color: #fff;
}
}
.header-right {
display: flex;
align-items: center;
gap: 1.0667vw;
}
@media (max-width: 768px) {
height: 10.6667vw;
.header-left {
gap: 2.1333vw;
.title {
margin-left: 8vw;
font-size: 1vw;
font-weight: bold;
color: #fff;
}
}
.header-right {
gap: 2.1333vw;
}
}
}
//
::v-deep(.header-left .title),
::v-deep(.header-left > span),
::v-deep(.header-left > div) {
font-weight: bold;
color: #fff;
@media (max-width: 768px) {
font-size: 4vw;
gap: 8px;
}
}
</style>

View File

@ -12,14 +12,13 @@
<!-- 数据表格 -->
<div class="table-section">
<div class="table-header">
<div
v-for="(column, index) in tableColumns"
:key="index"
class="th"
:style="{ width: column.width, flex: column.flex || 'none' }"
>
{{ column.label }}
</div>
<div class="th" style="width: 60px">序号</div>
<div class="th" style="width: 140px">区县/镇街</div>
<div class="th" style="width: 100px">姓名</div>
<div class="th" style="width: 120px">电话</div>
<div class="th" style="width: 180px">驻地名称</div>
<div class="th" style="flex: 1">类型</div>
<div class="th" style="width: 140px">调度</div>
</div>
<div class="table-body">
<div
@ -93,17 +92,6 @@ const props = defineProps({
const emit = defineEmits(["update:visible", "close", "video", "voice", "call", "stationNameClick"]);
//
const tableColumns = ref([
{ label: "序号", width: "60px" },
{ label: "区县/镇街", width: "140px" },
{ label: "姓名", width: "100px" },
{ label: "电话", width: "120px" },
{ label: "驻地名称", width: "180px" },
{ label: "类型", flex: "1" },
{ label: "调度", width: "140px" },
]);
//
const tableData = ref([
{
@ -245,8 +233,7 @@ watch(
}
.tongnan-dialog {
width: 80vw;
max-width: 1000px;
width: 1000px;
background: linear-gradient(135deg, rgba(20, 50, 90, 0.95) 0%, rgba(10, 30, 60, 0.98) 100%);
border: 1px solid rgba(64, 169, 255, 0.3);
border-radius: 12px;

View File

@ -12,14 +12,16 @@
<!-- 数据表格 -->
<div class="table-section">
<div class="table-header">
<div
v-for="(column, index) in tableColumns"
:key="index"
class="th"
:style="{ width: column.width, flex: column.flex || 'none' }"
>
{{ column.label }}
</div>
<div class="th" style="width: 60px">序号</div>
<div class="th" style="width: 100px">区县/镇街</div>
<div class="th" style="width: 70px">总人数</div>
<div class="th" style="width: 70px">吹哨人</div>
<div class="th" style="width: 130px">建设单位包保责任人</div>
<div class="th" style="width: 130px">施工单位包保责任人</div>
<div class="th" style="width: 120px">驻地包保责任人</div>
<div class="th" style="width: 120px">区县级包保责任人</div>
<div class="th" style="width: 120px">市级包保责任人</div>
<div class="th" style="width: 60px">操作</div>
</div>
<div class="table-body">
<div
@ -82,20 +84,6 @@ const props = defineProps({
const emit = defineEmits(["update:visible", "close", "detail"]);
//
const tableColumns = ref([
{ label: "序号", width: "60px" },
{ label: "区县/镇街", width: "100px" },
{ label: "总人数", width: "70px" },
{ label: "吹哨人", width: "70px" },
{ label: "建设单位包保责任人", width: "130px" },
{ label: "施工单位包保责任人", width: "130px" },
{ label: "驻地包保责任人", width: "120px" },
{ label: "区县级包保责任人", width: "120px" },
{ label: "市级包保责任人", width: "120px" },
{ label: "操作", width: "60px" },
]);
//
const tableData = ref([
{
@ -214,8 +202,7 @@ watch(
}
.responsible-dialog {
width: 80vw;
max-width: 1100px;
width: 1100px;
background: linear-gradient(135deg, rgba(20, 50, 90, 0.95) 0%, rgba(10, 30, 60, 0.98) 100%);
border: 1px solid rgba(64, 169, 255, 0.3);
border-radius: 12px;
@ -281,7 +268,7 @@ watch(
}
.table-body {
max-height: 40vh;
max-height: 320px;
overflow-y: auto;
.table-row {

View File

@ -12,14 +12,14 @@
<!-- 数据表格 -->
<div class="table-section">
<div class="table-header">
<div
v-for="(column, index) in tableColumns"
:key="index"
class="th"
:style="{ width: column.width, flex: column.flex || 'none' }"
>
{{ column.label }}
</div>
<div class="th" style="width: 60px">序号</div>
<div class="th" style="width: 100px">区县</div>
<div class="th" style="width: 80px">总人数</div>
<div class="th" style="width: 140px">交通主管部门责任人</div>
<div class="th" style="width: 120px">公路机构责任人</div>
<div class="th" style="width: 140px">养护站道班责任人</div>
<div class="th" style="width: 80px">护路员</div>
<div class="th" style="flex: 1">操作</div>
</div>
<div class="table-body">
<div
@ -79,18 +79,6 @@ const props = defineProps({
const emit = defineEmits(["update:visible", "close", "view"]);
//
const tableColumns = ref([
{ label: "序号", width: "60px" },
{ label: "区县", width: "100px" },
{ label: "总人数", width: "80px" },
{ label: "交通主管部门责任人", width: "140px" },
{ label: "公路机构责任人", width: "120px" },
{ label: "养护站道班责任人", width: "140px" },
{ label: "护路员", width: "80px" },
{ label: "操作", flex: "1" },
]);
//
const tableData = ref([
{
@ -223,8 +211,7 @@ watch(
}
.team-dialog {
width: 80vw;
max-width: 900px;
width: 900px;
background: linear-gradient(135deg, rgba(20, 50, 90, 0.95) 0%, rgba(10, 30, 60, 0.98) 100%);
border: 1px solid rgba(64, 169, 255, 0.3);
border-radius: 12px;
@ -290,7 +277,7 @@ watch(
}
.table-body {
max-height: 40vh;
max-height: 320px;
overflow-y: auto;
.table-row {

View File

@ -8,35 +8,22 @@
<div class="dialog-header">
<div class="header-title">
<span class="title-text">{{ rescueTeamData.title }}</span>
<img
class="title-icon"
src="../../../assets/RiskWarning_img/图标_media_dvr@2x.png"
alt=""
/>
<span class="title-text">{{ data.title }}</span>
<img class="title-icon" src="../../../assets/RiskWarning_img/图标_media_dvr@2x.png" alt="" />
</div>
<!-- <div class="close-btn" @click="closeDialog">
<span class="close-icon">×</span>
</div> -->
<div class="close-btn" style="pointer-events: auto" @click="closeDialog">
<div class="close-btn" style="pointer-events: auto;" @click="closeDialog">
<el-icon color="#5DD7F6"><Close /></el-icon>
</div>
</div>
<div class="dialog-content">
<div class="info-item" v-for="(item, index) in rescueTeamData.items" :key="index">
<div class="info-item" v-for="(item, index) in data.items" :key="index">
<label class="info-label">{{ item.label }}</label>
<span class="info-value">{{ item.value }}</span>
</div>
</div>
<div class="dialog-imgs">
<img
class="dialog-img"
v-for="(img, index) in rescueTeamData.imgs"
:key="index"
:src="img"
alt=""
/>
</div>
</div>
</template>
@ -69,6 +56,7 @@ defineProps({
],
}),
},
});
//
@ -135,7 +123,6 @@ const rescueTeamData = {
{ label: "地址", value: "重庆市江津区双福工业园区赵坪路 157 号" },
{ label: "物资装备", value: "应急物资:8100 件;应急装备:33 台" },
],
imgs: ["", "", "", "", ""],
};
defineExpose({
@ -158,30 +145,22 @@ const closeDialog = () => {
@return calc($px / 1920 * 100vw);
}
.tunnel-info-dialog {
max-width: vw(300);
width: vw(300);
max-height: vw(600);
overflow-y: auto;
scrollbar-width: none;
-ms-overflow-style: none;
width: 250px;
background: rgba(64, 169, 255, 0.2);
border: 1px solid rgba(64, 169, 255, 0.3);
border-radius: 8px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
backdrop-filter: blur(10px);
position: fixed;
top: 20%;
left: 45%;
z-index: 1000;
&::-webkit-scrollbar {
display: none;
}
//
.corner {
position: absolute;
width: vw(20);
height: vw(20);
border: 1px solid #40a9ff;
border: 2px solid #40a9ff;
pointer-events: none;
&.corner-top-left {
@ -189,6 +168,7 @@ const closeDialog = () => {
left: 0;
border-right: none;
border-bottom: none;
border-top-left-radius: 6px;
}
&.corner-top-right {
@ -196,6 +176,7 @@ const closeDialog = () => {
right: 0;
border-left: none;
border-bottom: none;
border-top-right-radius: 6px;
}
&.corner-bottom-left {
@ -203,6 +184,7 @@ const closeDialog = () => {
left: 0;
border-right: none;
border-top: none;
border-bottom-left-radius: 6px;
}
&.corner-bottom-right {
@ -210,6 +192,7 @@ const closeDialog = () => {
right: 0;
border-left: none;
border-top: none;
border-bottom-right-radius: 6px;
}
}
@ -281,14 +264,4 @@ const closeDialog = () => {
}
}
}
.dialog-imgs {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: vw(6);
padding: vw(16) vw(20);
.dialog-img {
width: vw(75);
height: vw(75);
}
}
</style>

View File

@ -14,42 +14,35 @@
<div class="filter-row">
<div class="filter-item">
<el-select v-model="filterForm.warningLevel" placeholder="预警等级" class="filter-select">
<el-option
v-for="option in warningLevelOptions"
:key="option.value"
:label="option.label"
:value="option.value"
/>
<el-option label="全部" value="" />
<el-option label="红色预警" value="red" />
<el-option label="橙色预警" value="orange" />
<el-option label="黄色预警" value="yellow" />
<el-option label="蓝色预警" value="blue" />
</el-select>
</div>
<div class="filter-item">
<el-select v-model="filterForm.region" placeholder="行政区域" class="filter-select">
<el-option
v-for="option in regionOptionsWithAll"
:key="option.value"
:label="option.label"
:value="option.value"
/>
<el-option label="全部" value="" />
<el-option label="万州区" value="wanzhou" />
<el-option label="涪陵区" value="fuling" />
<el-option label="万盛区" value="wansheng" />
<el-option label="长寿区" value="changshou" />
<el-option label="城口区" value="chengkou" />
</el-select>
</div>
<div class="filter-item">
<el-select v-model="filterForm.isEnded" placeholder="是否结束" class="filter-select">
<el-option
v-for="option in isEndedOptions"
:key="option.value"
:label="option.label"
:value="option.value"
/>
<el-option label="全部" value="" />
<el-option label="是" value="yes" />
<el-option label="否" value="no" />
</el-select>
</div>
<div class="filter-item">
<el-select v-model="filterForm.isResponded" placeholder="是否回应" class="filter-select">
<el-option
v-for="option in isRespondedOptions"
:key="option.value"
:label="option.label"
:value="option.value"
/>
<el-option label="全部" value="" />
<el-option label="是" value="yes" />
<el-option label="否" value="no" />
</el-select>
</div>
<div class="filter-item">
@ -64,14 +57,16 @@
<!-- 数据表格 -->
<div class="table-section">
<div class="table-header">
<div
v-for="(column, index) in tableColumns"
:key="index"
class="th"
:style="{ width: column.width, flex: column.flex || 'none' }"
>
{{ column.label }}
</div>
<div class="th" style="width: 60px">序号</div>
<div class="th" style="width: 100px">预警等级</div>
<div class="th" style="width: 100px">行政区域</div>
<div class="th" style="width: 160px">预警时间</div>
<div class="th" style="width: 160px">结束时间</div>
<div class="th" style="width: 100px">影响点数量</div>
<div class="th clickable" style="width: 80px">已叫应</div>
<div class="th" style="width: 80px">已回应</div>
<div class="th" style="width: 80px">未回应</div>
<div class="th" style="width: 80px">已催告</div>
</div>
<div class="table-body">
<div
@ -124,7 +119,6 @@
<script setup>
import { ref, computed, watch } from "vue";
import { Close, Search, ArrowLeft, ArrowRight } from "@element-plus/icons-vue";
import { warningLevelOptions, regionOptionsWithAll, isEndedOptions, isRespondedOptions } from "./index.js";
const props = defineProps({
visible: {
@ -143,20 +137,6 @@ const filterForm = ref({
isResponded: "",
});
//
const tableColumns = ref([
{ label: "序号", width: "60px" },
{ label: "预警等级", width: "100px" },
{ label: "行政区域", width: "100px" },
{ label: "预警时间", width: "160px" },
{ label: "结束时间", width: "160px" },
{ label: "影响点数量", width: "100px" },
{ label: "已叫应", width: "80px" },
{ label: "已回应", width: "80px" },
{ label: "未回应", width: "80px" },
{ label: "已催告", width: "80px" },
]);
//
const tableData = ref([
{
@ -224,45 +204,6 @@ const tableData = ref([
notResponded: 0,
urged: 15,
},
{
id: 5,
warningLevel: "红色预警",
levelClass: "level-red",
region: "城口区",
warningTime: "2025-08-11 04:53:42",
endTime: "2025-08-11 04:53:42",
impactPoints: 0,
called: 0,
responded: 0,
notResponded: 0,
urged: 15,
},
{
id: 5,
warningLevel: "红色预警",
levelClass: "level-red",
region: "城口区",
warningTime: "2025-08-11 04:53:42",
endTime: "2025-08-11 04:53:42",
impactPoints: 0,
called: 0,
responded: 0,
notResponded: 0,
urged: 15,
},
{
id: 5,
warningLevel: "红色预警",
levelClass: "level-red",
region: "城口区",
warningTime: "2025-08-11 04:53:42",
endTime: "2025-08-11 04:53:42",
impactPoints: 0,
called: 0,
responded: 0,
notResponded: 0,
urged: 15,
},
]);
//
@ -364,8 +305,7 @@ watch(
}
.warning-dialog {
width: 80vw;
max-width: 1000px;
width: 1100px;
background: linear-gradient(135deg, rgba(20, 50, 90, 0.95) 0%, rgba(10, 30, 60, 0.98) 100%);
border: 1px solid rgba(64, 169, 255, 0.3);
border-radius: 12px;
@ -423,7 +363,7 @@ watch(
.filter-item {
.filter-select {
width: 120px;
width: 140px;
:deep(.el-input__wrapper) {
background-color: rgba(30, 70, 120, 0.4);

View File

@ -45,35 +45,19 @@
/>
</el-select>
</div>
<div class="filter-item">
<span class="filter-label">时间范围</span>
<el-date-picker
v-model="filterForm.dateRange"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
class="date-range-picker"
width="210px"
style="width: 210px"
clearable
value-format="YYYY-MM-DD"
/>
</div>
</div>
</div>
<!-- 数据表格 -->
<div class="table-section">
<div class="table-header">
<div
v-for="(column, index) in tableColumns"
:key="index"
class="th"
:style="{ width: column.width, flex: column.flex || 'none' }"
>
{{ column.label }}
</div>
<div class="th" style="width: 50px">序号</div>
<div class="th" style="width: 100px">预警等级</div>
<div class="th" style="width: 100px">气象类型</div>
<div class="th" style="width: 100px">行政区域</div>
<div class="th" style="width: 160px">预警时间</div>
<div class="th" style="width: 160px">结束时间</div>
<div class="th" style="flex: 1">影响点数量</div>
</div>
<div class="table-body">
<div
@ -124,7 +108,6 @@
<script setup>
import { ref, computed, watch } from "vue";
import { Close } from "@element-plus/icons-vue";
import { warningLevelOptions, regionOptions, isEndedOptions } from "./index.js";
const props = defineProps({
visible: {
@ -140,27 +123,28 @@ const filterForm = ref({
warningLevel: "",
region: "",
isEnded: "",
dateRange: [],
});
//
// index.js
const warningLevelOptions = ref([
{ label: "红色预警", value: "红色预警" },
{ label: "橙色预警", value: "橙色预警" },
{ label: "黄色预警", value: "黄色预警" },
{ label: "蓝色预警", value: "蓝色预警" },
]);
//
// index.js
const regionOptions = ref([
{ label: "重庆市", value: "重庆市" },
{ label: "万州区", value: "万州区" },
{ label: "沙坪坝区", value: "沙坪坝区" },
{ label: "渝中区", value: "渝中区" },
]);
//
// index.js
//
const tableColumns = ref([
{ label: "序号", width: "50px" },
{ label: "预警等级", width: "100px" },
{ label: "气象类型", width: "100px" },
{ label: "行政区域", width: "100px" },
{ label: "预警时间", width: "160px" },
{ label: "结束时间", width: "160px" },
{ label: "影响点数量", flex: "1" },
const isEndedOptions = ref([
{ label: "是", value: "是" },
{ label: "否", value: "否" },
]);
//
@ -306,8 +290,7 @@ watch(
}
.warning-dialog {
width: 80vw;
max-width: 900px;
width: 950px;
background: linear-gradient(135deg, rgba(20, 50, 90, 0.95) 0%, rgba(10, 30, 60, 0.98) 100%);
border: 1px solid rgba(64, 169, 255, 0.3);
border-radius: 12px;
@ -358,8 +341,7 @@ watch(
.filter-row {
display: flex;
flex-wrap: wrap;
gap: 12px;
gap: 24px;
}
.filter-item {
@ -381,7 +363,6 @@ watch(
border: 1px solid rgba(64, 169, 255, 0.3);
box-shadow: none;
border-radius: 4px;
width: 210px !important;
.el-input__inner {
color: #fff;
@ -399,47 +380,6 @@ watch(
}
}
}
.date-range-picker {
:deep(.el-input__wrapper) {
background-color: rgba(30, 70, 120, 0.4);
border: 1px solid rgba(64, 169, 255, 0.3);
box-shadow: none;
border-radius: 4px;
width: 210px !important;
.el-input__inner {
color: #fff;
font-size: 13px;
background: transparent;
&::placeholder {
color: rgba(255, 255, 255, 0.4);
}
}
.el-input__suffix {
.el-icon {
color: rgba(255, 255, 255, 0.6);
}
}
}
:deep(.el-range-input) {
background: transparent;
color: #fff;
font-size: 13px;
&::placeholder {
color: rgba(255, 255, 255, 0.4);
}
}
:deep(.el-range-separator) {
color: rgba(255, 255, 255, 0.6);
font-size: 13px;
}
}
}
}
@ -615,62 +555,3 @@ watch(
background: linear-gradient(180deg, #69c0ff 0%, #40a9ff 100%);
}
</style>
<style lang="scss">
//
.el-picker-panel {
background: rgba(20, 50, 90, 0.98) !important;
border: 1px solid rgba(64, 169, 255, 0.3) !important;
.el-picker-panel__content {
color: #fff;
.el-date-table th {
color: rgba(255, 255, 255, 0.6);
border-bottom-color: rgba(64, 169, 255, 0.3);
}
.el-date-table td {
color: rgba(255, 255, 255, 0.8);
&.selected .el-date-table-cell {
background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
}
&.today span {
color: #40a9ff;
font-weight: bold;
}
&.in-range,
&.start-date,
&.end-date {
background: rgba(64, 169, 255, 0.2);
}
}
}
.el-picker-panel__footer {
border-top: 1px solid rgba(64, 169, 255, 0.3);
.el-button {
background: rgba(30, 70, 120, 0.4);
border-color: rgba(64, 169, 255, 0.3);
color: #fff;
&:hover {
background: rgba(64, 169, 255, 0.3);
}
}
.el-button--primary {
background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
border: none;
&:hover {
background: linear-gradient(135deg, #69c0ff 0%, #40a9ff 100%);
}
}
}
}
</style>

View File

@ -7,11 +7,7 @@
alt=""
/>
<div class="title_img_box">
<img
class="title_img1"
src="../../assets/RiskWarning_img/位图@2x.png"
alt=""
/>
<img class="title_img1" src="../../assets/RiskWarning_img/位图@2x.png" alt="" />
<img
class="title_img2"
src="../../assets/RiskWarning_img/渝路畅行-风险预警一键响应@2x.png"
@ -48,9 +44,7 @@
<div
class="center-info-card"
v-if="
showCenterCard.type === 'second' || showCenterCard.type === 'third'
"
v-if="showCenterCard.type === 'second' || showCenterCard.type === 'third'"
>
<div
class="card-title"
@ -58,8 +52,8 @@
showCenterCard.type === 'second'
? openDialog('tongnanTeam')
: showCenterCard.type === 'third'
? openDialog('responseSituation')
: ''
? openDialog('responseSituation')
: ''
"
>
潼南
@ -96,6 +90,7 @@
@openClearanceSituation="openDialog('clearanceSituation')"
@openControlSituation="openDialog('controlSituation')"
></right>
</div>
<!-- 地图中心 -->
<div class="center">
@ -250,8 +245,8 @@
<script setup>
import { ref, onMounted } from "vue";
import useMapStore from "@/map/stores/mapStore";
import { useMapBase } from "../cockpit/composables/useMapBase";
import useMapStore from '@/map/stores/mapStore'
import { useMapBase } from '../cockpit/composables/useMapBase'
import left from "./left.vue";
import right from "./right.vue";
import bottom from "./bottom.vue";
@ -301,7 +296,7 @@ const dialogVisible = ref({
dispatchDistrict: false,
tongnanTeam: false,
warningSituation: false,
tunnelInfo: false,
tunnelInfo: true,
});
//
@ -312,7 +307,7 @@ const openDialog = (dialogName) => {
//
const closeDialog = (dialogName) => {
//
console.log("关闭弹窗", dialogName);
console.log('关闭弹窗', dialogName)
dialogVisible.value[dialogName] = false;
};
@ -335,12 +330,12 @@ const showCenterCard = ref(false);
// ==================== ====================
const mapStore = useMapStore();
const mapStore = useMapStore()
/**
* 加载地图的业务底图与聚焦中心点
*/
const mapBase = useMapBase(mapStore);
const mapBase = useMapBase(mapStore)
// ==================== ====================
@ -349,8 +344,8 @@ const mapBase = useMapBase(mapStore);
*/
onMounted(() => {
//
mapBase.loadBaseData();
});
mapBase.loadBaseData()
})
</script>
<style lang="scss" scoped>
@ -374,6 +369,7 @@ onMounted(() => {
left: 0;
width: 100%;
height: vw(100);
min-height: 70px;
z-index: 100;
.title_bg {
@ -414,35 +410,32 @@ onMounted(() => {
.left {
position: absolute;
left: 0;
top: vw(90);
top: vw(100);
width: 25%;
height: calc(100% - #{vw(90)});
z-index: 2;
height: calc(100% - #{vw(100)});
}
.right {
position: absolute;
right: 0;
top: vw(90);
top: vw(100);
width: 25%;
height: calc(100% - #{vw(90)});
z-index: 2;
height: calc(100% - #{vw(100)});
}
.bottom {
position: absolute;
bottom: 5px;
left: 25%;
width: 50%;
height: 43%;
bottom: 0px;
left: 30%;
width: 40%;
height: 50%;
}
.top {
position: absolute;
top: vw(100);
left: 25%;
width: 50%;
z-index: 2;
top: vw(120);
left: 30%;
width: 40%;
// height: 15%;
// background-color: #15293B;
}
@ -453,7 +446,7 @@ onMounted(() => {
// left: 25%;
width: 100%;
height: 100%;
z-index: 1;
z-index: -1;
}
/* 地图底层 - 填满整个容器 */
@ -471,16 +464,17 @@ onMounted(() => {
z-index: 1;
pointer-events: none;
/* 不阻挡交互 */
background: url(../../assets/RiskWarning_img/遮罩层.png) no-repeat
center/cover;
background: url(../../assets/RiskWarning_img/遮罩层.png) no-repeat center/cover;
}
//
.corner {
position: absolute;
width: vw(20);
height: vw(20);
border: 1px solid #40a9ff;
width: vw(30);
height: vw(30);
min-width: 20px;
min-height: 20px;
border: 2px solid #40a9ff;
z-index: 100;
pointer-events: none;
@ -489,6 +483,7 @@ onMounted(() => {
left: vw(10);
border-right: none;
border-bottom: none;
border-top-left-radius: 4px;
}
&.corner-top-right {
@ -496,6 +491,7 @@ onMounted(() => {
right: vw(10);
border-left: none;
border-bottom: none;
border-top-right-radius: 4px;
}
&.corner-bottom-left {
@ -503,6 +499,7 @@ onMounted(() => {
left: vw(10);
border-right: none;
border-top: none;
border-bottom-left-radius: 4px;
}
&.corner-bottom-right {
@ -510,16 +507,17 @@ onMounted(() => {
right: vw(10);
border-left: none;
border-top: none;
border-bottom-right-radius: 4px;
}
}
.center-info-card-container {
position: absolute;
top: 30%;
left: 32%;
left: 35%;
transform: translate(-50%, -50%);
width: vw(200);
min-width: 200px;
width: vw(250);
min-width: 180px;
z-index: 200;
}
//
@ -527,9 +525,7 @@ onMounted(() => {
background: rgba(64, 169, 255, 0.2);
border: 1px solid rgba(64, 169, 255, 0.3);
z-index: 50;
box-shadow:
0 4px 20px rgba(0, 0, 0, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.1);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
cursor: pointer;
transition: all 0.3s;
margin-bottom: vw(10);
@ -545,7 +541,7 @@ onMounted(() => {
font-weight: 600;
color: #fff;
margin-bottom: vw(12);
background: rgba(64, 169, 255, 0.8);
background: rgba(64, 169, 255, 0.8);
padding: vw(16) vw(20);
border-bottom: 1px solid rgba(64, 169, 255, 0.1);
}

View File

@ -1,10 +1,10 @@
<template>
<div class="left-panel">
<!-- 智能研判头部 -->
<SectionHeader title="智能研判">
<SectionHeader>
<template #left>
<div class="filter-header">
<span class="title">智能研判</span>
<span>智能研判</span>
<img
class="filter-icon-ai"
src="../../assets/RiskWarning_img/AI1@2x.png"
@ -32,8 +32,8 @@
alt=""
/>
<div class="card-info">
<div class="card-num mt_5">{{ item.value }}</div>
<div class="card-label mb_5">{{ item.label }}</div>
<div class="card-num mt_10">{{ item.value }}</div>
<div class="card-label mb_10">{{ item.label }}</div>
</div>
</div>
</div>
@ -71,7 +71,7 @@
<div class="road-type-section">
<div class="section-title">影响公路类型情况</div>
<div class="road-type-cards">
<div class="road-card">
<div class="road-card">
<span class="card-label">国省道</span>
<span class="card-value">100</span>
</div>
@ -86,12 +86,7 @@
<div class="district-table-section">
<el-table
:data="districtData"
style="
width: 100%;
background: transparent;
font-size: 12px;
height: 150px;
"
style="width: 100%; background: transparent; font-size: 12px"
:header-cell-style="headerCellStyle"
:cell-style="cellStyle"
size="small"
@ -177,8 +172,7 @@
</template>
<script setup>
import { ref, computed, onMounted } from "vue";
import request from "../../../../shared/api/request";
import { ref, computed } from "vue";
import SectionHeader from "./component/sectionHeader.vue";
@ -242,49 +236,27 @@ import imgHelp from "../../assets/RiskWarning_img/响应图标5@2x.png";
import imgCheck from "../../assets/RiskWarning_img/抽查人数icon@2x.png";
//
const weatherWarningData = ref([
{ label: "红色预警", value: "8/13", class: "red" },
{ label: "橙色预警", value: "12/14", class: "orange" },
{ label: "黄色预警", value: "27/15", class: "yellow" },
{ label: "蓝色预警", value: "15/15", class: "blue" },
]);
const weatherWarningData = [
{ label: "红色预警", value: '8/13', class: "red" },
{ label: "橙色预警", value: '12/14', class: "orange" },
{ label: "黄色预警", value: '27/15', class: "yellow" },
{ label: "蓝色预警", value: '15/15', class: "blue" },
];
//
const impactData = ref([
const impactData = [
{ label: "路段", value: 830 },
{ label: "桥梁", value: 312 },
{ label: "隧道", value: 405 },
{ label: "边坡", value: 634 },
{ label: "项目", value: 523 },
]);
];
//
const dateRange = ref([]);
//
const loadData = async () => {
try {
const response = await request.get(
"/snow-ops-platform/weatherWarning/statistics",
);
if (response.data) {
const data = response.data;
if (data.weatherWarning) {
weatherWarningData.value = data.weatherWarning;
}
if (data.impactData) {
impactData.value = data.impactData;
}
}
} catch (error) {
console.error("加载数据失败:", error);
}
};
//
const maxValue = computed(() => {
return Math.max(...impactData.value.map((item) => item.value));
});
const maxValue = Math.max(...impactData.map((item) => item.value));
//
const getBarHeight = (value) => {
@ -381,27 +353,21 @@ const cellStyle = () => ({
textAlign: "center",
lineHeight: "1.2",
});
onMounted(() => {
loadData();
});
</script>
<style lang="scss" scoped>
.filter-header {
margin-left: 2.667vw;
align-items: center;
color: #fff;
font-weight: bold;
margin-left: 35px;
display: flex;
align-items: center;
.title {
font-size: 1vw;
}
gap: vw(8);
color: #fff;
font-size: vw(24);
font-weight: bold;
}
.filter-icon-ai {
width: 1.5em;
height: 1.5em;
width: 30px;
height: 30px;
margin-left: 10px;
}
// -
@ -434,6 +400,7 @@ onMounted(() => {
.section-header {
height: vw(50);
min-height: 40px;
display: flex;
justify-content: space-between;
align-items: center;
@ -448,6 +415,7 @@ onMounted(() => {
gap: vw(8);
margin-left: vw(35);
color: #fff;
font-size: vw(24);
font-weight: bold;
.icon-back {
@ -455,7 +423,7 @@ onMounted(() => {
height: vw(20);
min-width: 16px;
min-height: 16px;
background: linear-gradient(135deg, #18f2f9 0%, #1890ff 100%);
background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
border-radius: 4px;
display: flex;
align-items: center;
@ -464,8 +432,15 @@ onMounted(() => {
&::before {
content: "←";
color: #fff;
font-size: vw(12);
}
}
.title {
font-size: vw(12);
font-weight: bold;
color: #fff;
}
}
.header-date {
@ -488,16 +463,18 @@ onMounted(() => {
.warning-cards {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: vw(10);
display: flex;
gap: vw(5);
.warning-card {
display: flex;
align-items: center;
gap: vw(10);
flex: 1;
// padding: 12px;
background: rgba(64, 169, 255, 0.1);
border: 1px solid rgba(64, 169, 255, 0.2);
border-radius: 6px;
.card-icon {
width: 100%;
@ -516,7 +493,7 @@ onMounted(() => {
.card-info {
flex: 1;
.card-num {
font-size: vw(18);
font-size: vw(20);
font-weight: bold;
margin-bottom: 2px;
}
@ -537,7 +514,7 @@ onMounted(() => {
color: #ffc53d;
}
&.blue .card-num {
color: #379afd;
color: #40a9ff;
}
}
}
@ -560,7 +537,7 @@ onMounted(() => {
.impact-detail {
font-size: vw(14);
color: #18f2f9;
color: #40a9ff;
cursor: pointer;
&.clickable {
@ -576,7 +553,8 @@ onMounted(() => {
.chart-container {
position: relative;
height: vw(100);
height: vw(120);
height: 70px;
display: flex;
// padding: 10px 0 30px 40px;
@ -630,7 +608,7 @@ onMounted(() => {
background: rgba(64, 169, 255, 0.15);
.bar-value {
color: #18f2f9;
color: #40a9ff;
transform: scale(1.1);
}
@ -661,7 +639,7 @@ onMounted(() => {
min-width: 16px;
background: linear-gradient(
180deg,
#18f2f9 0%,
#40a9ff 0%,
rgba(64, 169, 255, 0.3) 100%
);
border-radius: 2px 2px 0 0;
@ -710,18 +688,19 @@ onMounted(() => {
align-items: center;
padding: vw(12) vw(16);
background: rgba(64, 169, 255, 0.1);
border: 1px solid #1d4c60;
border: 1px solid rgba(64, 169, 255, 0.2);
border-radius: 6px;
box-shadow: inset 0px 0px 8px 0px rgba(55, 155, 255, 0.2);
.card-label {
font-size: vw(18);
font-size: vw(14);
color: rgba(255, 255, 255, 0.7);
}
.card-value {
font-size: vw(22);
font-size: vw(24);
font-weight: bold;
color: #18f2f9;
color: #40a9ff;
text-shadow: 0 0 10px rgba(64, 169, 255, 0.5);
}
}
@ -732,7 +711,7 @@ onMounted(() => {
.district-table-section {
height: vw(100);
overflow: hidden;
:deep(.el-table) {
background: transparent;
@ -760,7 +739,7 @@ onMounted(() => {
max-height: calc(#{vw(100)} - #{vw(40)}); /* 减去表头高度 */
scrollbar-width: none;
-ms-overflow-style: none;
&::-webkit-scrollbar {
display: none;
}
@ -790,7 +769,6 @@ onMounted(() => {
margin-top: vw(20);
.section-header {
height: vw(50);
display: flex;
justify-content: space-between;
align-items: center;
@ -810,7 +788,7 @@ onMounted(() => {
height: vw(20);
min-width: 16px;
min-height: 16px;
background: linear-gradient(135deg, #18f2f9 0%, #1890ff 100%);
background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
border-radius: 4px;
display: flex;
align-items: center;
@ -822,6 +800,12 @@ onMounted(() => {
font-size: vw(12);
}
}
.title {
font-size: vw(14);
font-weight: bold;
color: #fff;
}
}
.header-filters {
@ -831,11 +815,17 @@ onMounted(() => {
font-size: vw(10);
.filter-item {
color: #fff;
padding: vw(8) vw(8);
background: #183c67;
box-shadow: inset 0px 0px 8px 0px #4fecff;
color: rgba(255, 255, 255, 0.6);
padding: vw(3) vw(8);
border: 1px solid rgba(64, 169, 255, 0.3);
border-radius: 4px;
cursor: pointer;
&.active {
background: rgba(64, 169, 255, 0.2);
color: #40a9ff;
border-color: rgba(64, 169, 255, 0.5);
}
}
.filter-separator {
@ -848,18 +838,16 @@ onMounted(() => {
.stats-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
// gap: vw(10);
background: rgba(64, 169, 255, 0.1);
border: 1px solid rgba(64, 169, 255, 0.2);
margin-bottom: vw(10);
gap: vw(10);
margin-bottom: vw(15);
.stat-item {
display: flex;
align-items: center;
// gap: vw(8);
gap: vw(8);
padding: vw(10);
// background: rgba(64, 169, 255, 0.08);
background: rgba(64, 169, 255, 0.08);
border-radius: 6px;
.stat-icon {
width: 100%;
@ -894,7 +882,7 @@ onMounted(() => {
.stat-num {
font-size: vw(24);
font-weight: bold;
color: #18f2f9;
color: #40a9ff;
margin-bottom: 2px;
}
@ -910,7 +898,7 @@ onMounted(() => {
&:hover {
background: rgba(64, 169, 255, 0.2);
// transform: translateY(-2px);
transform: translateY(-2px);
.stat-num {
color: #69c0ff;
@ -931,6 +919,7 @@ onMounted(() => {
padding: vw(12);
background: rgba(64, 169, 255, 0.1);
border: 1px solid rgba(64, 169, 255, 0.2);
border-radius: 6px;
text-align: center;
&.clickable {
@ -951,7 +940,7 @@ onMounted(() => {
.card-num {
font-size: vw(20);
font-weight: bold;
color: #18f2f9;
color: #40a9ff;
margin-bottom: vw(6);
.unit {
@ -973,12 +962,11 @@ onMounted(() => {
.date-range-wrapper {
:deep(.el-date-editor) {
border-radius: 0px !important;
height: 3.1em !important;
}
:deep(.el-date-editor) {
width: 200px;
max-width: vw(200);
width: vw(200);
min-width: 140px;
background: transparent;
border: 1px solid rgba(64, 169, 255, 0.3);
border-radius: 4px;
background: #183c67;
box-shadow: inset 0px 0px 8px 0px #4fecff;

View File

@ -26,13 +26,8 @@
<!-- 管控路段数 -->
<div class="control-section">
<div class="control-title display jc_sb ai_center">
<div class="f1">
管控路段数 <span class="control-num">2</span>
</div>
<div class="f1">
管控项目 <span class="control-num">2</span>
</div>
<div class="control-title">
管控路段数 <span class="control-num">2</span>
</div>
<div style="display: flex; justify-content: space-between">
<div class="control-grid">
@ -70,15 +65,9 @@
<!-- 巡查公路里程 -->
<div class="patrol-section">
<div class="patrol-header display jc_sb ai_center">
<div>
<span class="patrol-title">巡查公路里程</span>
<span class="patrol-mileage ml_10">234882km</span>
</div>
<div>
<span class="patrol-title">巡查项目数</span>
<span class="patrol-mileage ml_10">6</span>
</div>
<div class="patrol-header">
<span class="patrol-title">巡查公路里程</span>
<span class="patrol-mileage">234882km</span>
</div>
<div class="patrol-grid">
<div
@ -223,8 +212,8 @@ import icon3 from "../../assets/RiskWarning_img/icon3@2x.png";
import icon4 from "../../assets/RiskWarning_img/icon4@2x.png";
import icon11 from "../../assets/RiskWarning_img/icon-1@2x.png";
import icon12 from "../../assets/RiskWarning_img/icon-2@2x.png";
import icon13 from "../../assets/RiskWarning_img/icon-3@2x.png";
import icon12 from "../../assets/RiskWarning_img/icon-1@2x.png";
import icon13 from "../../assets/RiskWarning_img/icon-1@2x.png";
import icon51 from "../../assets/RiskWarning_img/编组5@2x.png";
import icon52 from "../../assets/RiskWarning_img/编组22@2x.png";
@ -288,7 +277,7 @@ const patrolData = [
{ label: "巡查桥梁数", value: "1" },
{ label: "巡查边坡数", value: "6" },
{ label: "巡查隧道数", value: "10" },
{ label: "发现隐患数", value: "6" },
{ label: "巡查项目数", value: "6" },
];
//
@ -384,20 +373,19 @@ const majorEvent = "0";
justify-content: space-between;
background-image: url("../../assets/RiskWarning_img/标题bg@2x.png");
align-items: center;
margin-bottom: vw(8);
height: vw(50);
margin-bottom: vw(15);
.header-left {
display: flex;
align-items: center;
gap: vw(6);
gap: vw(8);
.icon-back {
width: vw(16);
height: vw(16);
min-width: 14px;
min-height: 14px;
background: linear-gradient(135deg, #18F2F9 0%, #1890ff 100%);
width: vw(20);
height: vw(20);
min-width: 16px;
min-height: 16px;
background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
border-radius: 4px;
display: flex;
align-items: center;
@ -406,12 +394,12 @@ const majorEvent = "0";
&::before {
content: "←";
color: #fff;
font-size: vw(10);
font-size: vw(12);
}
}
.title {
font-size: vw(14);
font-size: vw(12);
font-weight: bold;
color: #fff;
}
@ -422,34 +410,34 @@ const majorEvent = "0";
.resource-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: vw(6);
margin-bottom: vw(6);
gap: vw(10);
margin-bottom: vw(10);
.resource-item {
display: flex;
align-items: center;
gap: vw(6);
padding: vw(4) vw(8);
background: linear-gradient(270deg, rgba(18, 52, 97, 0) 0%, #203555 100%);
gap: vw(10);
padding: vw(8) vw(12);
background: linear-gradient(270deg, rgba(18, 84, 97, 0) 0%, #204a55 100%);
border: 2px solid transparent;
border-image: linear-gradient(
270deg,
rgba(80, 145, 201, 0),
rgba(39, 77, 153, 1)
rgba(80, 201, 191, 0),
rgba(39, 135, 153, 1)
)
2 2;
border-radius: 6px;
border-right: 0px;
.resource-icon {
width: vw(24);
height: vw(24);
min-width: 16px;
min-height: 16px;
width: vw(32);
height: vw(32);
min-width: 20px;
min-height: 20px;
display: flex;
align-items: center;
justify-content: center;
font-size: vw(18);
font-size: vw(20);
&.icon-team::before {
content: "👷";
@ -474,13 +462,13 @@ const majorEvent = "0";
width: 48%;
font-size: vw(12);
color: rgba(255, 255, 255, 0.7);
margin-bottom: vw(2);
margin-bottom: vw(4);
}
.resource-value {
font-size: vw(16);
font-size: vw(18);
font-weight: bold;
color: #18F2F9;
color: #40a9ff;
.unit {
font-size: vw(12);
@ -498,15 +486,14 @@ const majorEvent = "0";
margin-bottom: vw(10);
.control-title {
font-size: vw(16);
font-size: vw(14);
color: rgba(255, 255, 255, 0.9);
margin-bottom: vw(10);
font-weight: 600;
.control-num {
font-size: vw(16);
color: #18F2F9;
color: #40a9ff;
font-weight: bold;
margin-left: vw(5);
}
@ -516,13 +503,13 @@ const majorEvent = "0";
flex: 1;
display: grid;
grid-template-columns: repeat(2, 1fr);
background: rgba(62, 106, 172, 0.36);
background: rgba(64, 169, 255, 0.1);
box-shadow: inset 0px 0px 8px 0px #379bff;
gap: vw(8);
.control-item {
text-align: center;
padding: vw(5) vw(5);
padding: vw(6) vw(5);
// background: rgba(64, 169, 255, 0.1);
border-radius: 4px;
@ -533,14 +520,18 @@ const majorEvent = "0";
&:hover {
background-color: rgba(64, 169, 255, 0.15);
.control-value {
color: #69c0ff;
text-shadow: 0 0 8px rgba(105, 192, 255, 0.6);
}
}
}
.control-value {
font-size: vw(18);
font-weight: bold;
color: #18F2F9;
// margin-bottom: vw(4);
color: #40a9ff;
margin-bottom: vw(4);
}
.control-label {
@ -562,14 +553,14 @@ const majorEvent = "0";
margin-bottom: vw(10);
.patrol-title {
font-size: vw(16);
font-size: vw(14);
color: rgba(255, 255, 255, 0.9);
}
.patrol-mileage {
font-size: vw(16);
font-weight: bold;
color: #4FECFF;
color: #40a9ff;
}
}
@ -590,7 +581,7 @@ const majorEvent = "0";
.patrol-value {
font-size: vw(18);
font-weight: bold;
color: #4FECFF;
color: #40a9ff;
margin-bottom: vw(4);
text-align: left;
margin-left: vw(5);
@ -607,7 +598,7 @@ const majorEvent = "0";
//
.rescue-section {
.rescue-title {
font-size: vw(16);
font-size: vw(14);
color: rgba(255, 255, 255, 0.9);
margin-bottom: vw(10);
}
@ -630,8 +621,10 @@ const majorEvent = "0";
background-position: right;
.rescue-icon {
width: vw(40);
height: vw(40);
width: vw(36);
height: vw(36);
min-width: 24px;
min-height: 24px;
display: flex;
align-items: center;
justify-content: center;
@ -653,7 +646,7 @@ const majorEvent = "0";
.rescue-value {
font-size: vw(18);
font-weight: bold;
color: #fff;
color: #40a9ff;
margin-bottom: vw(4);
display: flex;
align-items: center;
@ -677,7 +670,7 @@ const majorEvent = "0";
//
.disaster-section {
margin-top: vw(10);
margin-top: vw(15);
.block-section {
margin-bottom: vw(10);
@ -696,7 +689,7 @@ const majorEvent = "0";
}
.block-title {
font-size: vw(16);
font-size: vw(14);
color: rgba(255, 255, 255, 0.8);
margin-bottom: vw(10);
}
@ -720,7 +713,7 @@ const majorEvent = "0";
background: linear-gradient(
180deg,
transparent 0%,
#18F2F9 50%,
#40a9ff 50%,
transparent 100%
);
// margin: 0 auto;
@ -741,7 +734,7 @@ const majorEvent = "0";
margin-bottom: vw(6);
.current {
color: #18F2F9;
color: #40a9ff;
}
.separator {
@ -763,7 +756,7 @@ const majorEvent = "0";
.death-num {
font-size: vw(18);
font-weight: bold;
color: #fff;
color: #40a9ff;
margin-bottom: vw(6);
}
@ -777,10 +770,10 @@ const majorEvent = "0";
}
.damage-section {
margin-bottom: vw(5);
margin-bottom: vw(10);
.damage-title {
font-size: vw(16);
font-size: vw(14);
color: rgba(255, 255, 255, 0.8);
margin-bottom: vw(10);
}
@ -788,7 +781,7 @@ const majorEvent = "0";
.damage-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: vw(5);
gap: vw(10);
.damage-item {
text-align: center;
@ -817,7 +810,7 @@ const majorEvent = "0";
}
&.blue .damage-value {
color: #18F2F9;
color: #40a9ff;
.unit {
color: rgba(255, 255, 255, 0.7);
}
@ -861,11 +854,17 @@ const majorEvent = "0";
font-size: vw(10);
.filter-item {
color: #fff;
padding: vw(8) vw(8);
background: #183c67;
box-shadow: inset 0px 0px 8px 0px #4fecff;
color: rgba(255, 255, 255, 0.6);
padding: vw(3) vw(8);
border: 1px solid rgba(64, 169, 255, 0.3);
border-radius: 4px;
cursor: pointer;
&.active {
background: rgba(64, 169, 255, 0.2);
color: #40a9ff;
border-color: rgba(64, 169, 255, 0.5);
}
}
.filter-separator {
@ -874,12 +873,10 @@ const majorEvent = "0";
}
.date-range-wrapper {
:deep(.el-date-editor) {
border-radius: 0px !important;
height: 3.1em !important;
}
:deep(.el-date-editor) {
width: vw(200);
max-width: vw(200);
width: 200px;
background: transparent;
border: 1px solid rgba(64, 169, 255, 0.3);
border-radius: 4px;
background: #183c67;
box-shadow: inset 0px 0px 8px 0px #4fecff;

View File

@ -64,11 +64,17 @@ const handleAIClick = () => {
font-size: vw(13);
.filter-item {
color: #fff;
padding: vw(8) vw(8);
color: rgba(255, 255, 255, 0.6);
padding: 0 vw(12);
height: vw(24);
min-height: 20px;
border: 1px solid rgba(64, 169, 255, 0.3);
border-radius: 4px;
cursor: pointer;
transition: all 0.3s ease;
background: #183c67;
box-shadow: inset 0px 0px 8px 0px #4fecff;
cursor: pointer;
// &:hover {
// border-color: rgba(64, 169, 255, 0.5);
@ -83,13 +89,12 @@ const handleAIClick = () => {
}
.date-range-wrapper {
:deep(.el-date-editor) {
border-radius: 0px !important;
height: 2.6em !important;
}
:deep(.el-date-editor) {
width: vw(200);
max-width: vw(200);
min-width: 140px;
background: transparent;
border: 1px solid rgba(64, 169, 255, 0.3);
border-radius: 4px;
background: #183c67;
box-shadow: inset 0px 0px 8px 0px #4fecff;