新版式

This commit is contained in:
duanliang
2025-11-26 23:36:37 +08:00
parent d05a0f645e
commit b7f4cca716
2 changed files with 7 additions and 3 deletions

View File

@@ -151,7 +151,7 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.age { .age {
width: vw(240); width: vw(260);
height: vh(800); height: vh(800);
} }
</style> </style>

View File

@@ -193,7 +193,11 @@ import pubSub from 'pubsub-js'
const carBearXAxisData = computed(() => { const carBearXAxisData = computed(() => {
return scenicStore.stopCarData.dataList.map((item) => item.name) 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(() => { const garageList = computed(() => {
return scenicStore.stopCarData.headList return scenicStore.stopCarData.headList
}) })
@@ -202,7 +206,7 @@ import pubSub from 'pubsub-js'
watch( watch(
() => scenicStore.stopCarData.dataLists, () => scenicStore.stopCarData.dataLists,
(val) => { (val) => {
// console.log(val.length, 'watch 监听') console.log(val.length, 'dataListsdataListsdataLists')
if (val.length) { if (val.length) {
dataLists.value = val dataLists.value = val
} else { } else {