422
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
return props.list.map((item) => {
|
||||
return {
|
||||
...item,
|
||||
value: item.occupiedSpaces,
|
||||
value: parseInt((item.occupiedSpaces/item.total)*100),
|
||||
total: item.total,
|
||||
itemStyle: {
|
||||
color: {
|
||||
@@ -62,7 +62,7 @@
|
||||
return props.list.map((item) => {
|
||||
return {
|
||||
...item,
|
||||
value: item.occupiedSpaces,
|
||||
value: parseInt((item.occupiedSpaces/item.total)*100),
|
||||
total: item.total,
|
||||
itemStyle: {
|
||||
color: '#fff',
|
||||
|
||||
@@ -140,11 +140,11 @@
|
||||
value: '静止',
|
||||
number: 0
|
||||
},
|
||||
{
|
||||
label: '离线',
|
||||
value: '离线',
|
||||
number: 0
|
||||
}
|
||||
// {
|
||||
// label: '离线',
|
||||
// value: '离线',
|
||||
// number: 0
|
||||
// }
|
||||
])
|
||||
let listTabs = ref([])
|
||||
let tabsIndex = ref(0)
|
||||
@@ -168,7 +168,7 @@ let tabsIndex = ref(0)
|
||||
tabs.value[0].leng = val[0].all.length
|
||||
tabs.value[1].leng = val[0].moving.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){
|
||||
listTabs.value = val[0].all
|
||||
|
||||
@@ -114,7 +114,8 @@
|
||||
</div>
|
||||
<div class="box-2">
|
||||
<Title1 title="异常信息 " />
|
||||
<div @click="handleToWorkOrder" style="cursor: pointer;" class="count-box flex">
|
||||
<!-- @click="handleToWorkOrder" -->
|
||||
<div style="cursor: pointer;" class="count-box flex">
|
||||
<count-item
|
||||
v-for="item in headList"
|
||||
:label="item.name"
|
||||
|
||||
@@ -142,11 +142,11 @@ import PubSub from 'pubsub-js'
|
||||
value: '静止',
|
||||
number: 0
|
||||
},
|
||||
{
|
||||
label: '离线',
|
||||
value: '离线',
|
||||
number: 0
|
||||
}
|
||||
// {
|
||||
// label: '离线',
|
||||
// value: '离线',
|
||||
// number: 0
|
||||
// }
|
||||
])
|
||||
watch(
|
||||
()=>[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[1].leng = val[0].moving.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){
|
||||
listTabs.value = val[0].all
|
||||
|
||||
Reference in New Issue
Block a user