“yu” 2024-07-17 10:16:08 +08:00
parent 2402fb4d81
commit 29fe2681db
1 changed files with 7 additions and 5 deletions

View File

@ -107,21 +107,21 @@
<span class="c-blue">{{ item.name }}</span> <span class="c-blue">{{ item.name }}</span>
<div class="tval"> <div class="tval">
<div :class="[ <div :class="[
item.status === '1' item.status === 1
? 'b-green' ? 'b-green'
: item.status === '0' : item.status === 0
? 'b-gary' ? 'b-gary'
: 'b-yellow', : 'b-yellow',
'yuand', 'yuand',
]"></div> ]"></div>
<div :class="[ <div :class="[
item.status === '1' item.status === 1
? 'c-green' ? 'c-green'
: item.status === '0' : item.status === 0
? 'c-gary' ? 'c-gary'
: 'c-yellow', : 'c-yellow',
]"> ]">
{{ item.status === '1' ? '充电中' : '未充电'}} {{ item.status === 1 ? '充电中' : '未充电'}}
</div> </div>
</div> </div>
</div> </div>
@ -480,6 +480,8 @@ let getRunning_api = () => {
setData.carPipeId = currentData.id setData.carPipeId = currentData.id
} }
running_api(setData).then((res: any) => { running_api(setData).then((res: any) => {
console.log('1-----------',res.data.data);
carRightData.chargingList = res?.data?.data carRightData.chargingList = res?.data?.data
carRightData.chargingListRunning = res?.data?.running carRightData.chargingListRunning = res?.data?.running
carRightData.chargingListTotal = res?.data?.total carRightData.chargingListTotal = res?.data?.total