From b7f4cca716a9513bb07c869632a4942088eb9749 Mon Sep 17 00:00:00 2001 From: duanliang <540489889@qq.com> Date: Wed, 26 Nov 2025 23:36:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E7=89=88=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/scenic/components/age.vue | 2 +- src/views/scenic/components/box-1.vue | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/views/scenic/components/age.vue b/src/views/scenic/components/age.vue index 87c6564..84d498d 100644 --- a/src/views/scenic/components/age.vue +++ b/src/views/scenic/components/age.vue @@ -151,7 +151,7 @@ diff --git a/src/views/scenic/components/box-1.vue b/src/views/scenic/components/box-1.vue index 983456c..7c0c67b 100644 --- a/src/views/scenic/components/box-1.vue +++ b/src/views/scenic/components/box-1.vue @@ -193,7 +193,11 @@ import pubSub from 'pubsub-js' const carBearXAxisData = computed(() => { return scenicStore.stopCarData.dataList.map((item) => item.name) }) - + const carTotal = computed(() => { + return dataLists.value.reduce((pre, cur) => { + return pre + parseInt(cur.count) + }, 0) + }) const garageList = computed(() => { return scenicStore.stopCarData.headList }) @@ -202,7 +206,7 @@ import pubSub from 'pubsub-js' watch( () => scenicStore.stopCarData.dataLists, (val) => { - // console.log(val.length, 'watch 监听') + console.log(val.length, 'dataListsdataListsdataLists') if (val.length) { dataLists.value = val } else {