This commit is contained in:
huangyaohui 2026-03-20 17:30:53 +08:00
parent 773c048b13
commit 12ae917046
1 changed files with 16 additions and 7 deletions

View File

@ -33,12 +33,12 @@ use([
const activeTrendMetric = ref('speed') const activeTrendMetric = ref('speed')
const statusMonitorOverviewCards = [ const statusMonitorOverviewCards = ref([
{label: '路段平均速度', value: '32', unit: '(km/h)', icon: imgStatusLdpjsd}, {label: '路段平均速度', value: '', unit: '(km/h)', icon: imgStatusLdpjsd},
{label: '断面流量', value: '1200', unit: '(车次/h)', icon: imgStatusDmll}, {label: '断面流量', value: '', unit: '(车次/h)', icon: imgStatusDmll},
{label: '事故点核心车速', value: '10', unit: '(km/h)', icon: imgStatusYxcs}, {label: '事故点核心车速', value: '', unit: '(km/h)', icon: imgStatusYxcs},
{label: '影响区车辆数', value: '580', unit: '(辆)', icon: imgStatusYxqcl}, {label: '影响区车辆数', value: '', unit: '(辆)', icon: imgStatusYxqcl},
] ])
// //
const accidentImpactSection = ref('A-001') const accidentImpactSection = ref('A-001')
@ -1118,7 +1118,16 @@ const getPageData = async () => {
demoAreaHistorySeries1d.value.speed[index] = item.data ?? 0 demoAreaHistorySeries1d.value.speed[index] = item.data ?? 0
} }
}) })
// 111 //
const pageTopDisplay = data['page_top_display']?.items || []
pageTopDisplay.forEach(item => {
for (let key in statusMonitorOverviewCards.value) {
const temp = statusMonitorOverviewCards.value[key]
if (temp.label === item.project) {
statusMonitorOverviewCards.value[key].value = item.data
}
}
})
// 111 // 111
// 111 // 111
// 111 // 111