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