| | |
| | | } |
| | | |
| | | async function getVehicleProgressList() { |
| | | if (!planId.value) return |
| | | const res = await fetchVehicleProgress(planId.value) |
| | | if (!batchProgress.value || !batchProgress.value.batchId) return |
| | | const res = await fetchVehicleProgress(batchProgress.value.batchId) |
| | | if (res.code === 200) { |
| | | vehicleProgressList.value = res.data || [] |
| | | } |
| | | } |
| | | |
| | | async function refreshBatchData() { |
| | | await Promise.all([getBatchProgress(), getVehicleProgressList()]) |
| | | await getBatchProgress() |
| | | await getVehicleProgressList() |
| | | } |
| | | |
| | | function startBatchPolling() { |