This commit is contained in:
duanliang
2025-04-23 00:17:20 +08:00
parent 2cbaa1df99
commit 5635b5cd05
4 changed files with 16 additions and 15 deletions

View File

@@ -34,7 +34,7 @@
return props.list.map((item) => { return props.list.map((item) => {
return { return {
...item, ...item,
value: item.occupiedSpaces, value: parseInt((item.occupiedSpaces/item.total)*100),
total: item.total, total: item.total,
itemStyle: { itemStyle: {
color: { color: {
@@ -62,7 +62,7 @@
return props.list.map((item) => { return props.list.map((item) => {
return { return {
...item, ...item,
value: item.occupiedSpaces, value: parseInt((item.occupiedSpaces/item.total)*100),
total: item.total, total: item.total,
itemStyle: { itemStyle: {
color: '#fff', color: '#fff',

View File

@@ -140,11 +140,11 @@
value: '静止', value: '静止',
number: 0 number: 0
}, },
{ // {
label: '离线', // label: '离线',
value: '离线', // value: '离线',
number: 0 // number: 0
} // }
]) ])
let listTabs = ref([]) let listTabs = ref([])
let tabsIndex = ref(0) let tabsIndex = ref(0)
@@ -168,7 +168,7 @@ let tabsIndex = ref(0)
tabs.value[0].leng = val[0].all.length tabs.value[0].leng = val[0].all.length
tabs.value[1].leng = val[0].moving.length tabs.value[1].leng = val[0].moving.length
tabs.value[2].leng = val[0].still.length tabs.value[2].leng = val[0].still.length
tabs.value[3].leng = val[0].offline.length // tabs.value[3].leng = val[0].offline.length
} }
if(val[1]==0){ if(val[1]==0){
listTabs.value = val[0].all listTabs.value = val[0].all

View File

@@ -114,7 +114,8 @@
</div> </div>
<div class="box-2"> <div class="box-2">
<Title1 title="异常信息 " /> <Title1 title="异常信息 " />
<div @click="handleToWorkOrder" style="cursor: pointer;" class="count-box flex"> <!-- @click="handleToWorkOrder" -->
<div style="cursor: pointer;" class="count-box flex">
<count-item <count-item
v-for="item in headList" v-for="item in headList"
:label="item.name" :label="item.name"

View File

@@ -142,11 +142,11 @@ import PubSub from 'pubsub-js'
value: '静止', value: '静止',
number: 0 number: 0
}, },
{ // {
label: '离线', // label: '离线',
value: '离线', // value: '离线',
number: 0 // number: 0
} // }
]) ])
watch( watch(
()=>[scenicStore.vehicleData,tabsIndex.value,map.value], ()=>[scenicStore.vehicleData,tabsIndex.value,map.value],
@@ -156,7 +156,7 @@ import PubSub from 'pubsub-js'
tabs.value[0].leng = val[0].all.length tabs.value[0].leng = val[0].all.length
tabs.value[1].leng = val[0].moving.length tabs.value[1].leng = val[0].moving.length
tabs.value[2].leng = val[0].still.length tabs.value[2].leng = val[0].still.length
tabs.value[3].leng = val[0].offline.length // tabs.value[3].leng = val[0].offline.length
} }
if(val[1]==0){ if(val[1]==0){
listTabs.value = val[0].all listTabs.value = val[0].all