diff --git a/src/views/EquipmentLedger/components/EquAnalysis.vue b/src/views/EquipmentLedger/components/EquAnalysis.vue index 2fd25000..c90b47dd 100644 --- a/src/views/EquipmentLedger/components/EquAnalysis.vue +++ b/src/views/EquipmentLedger/components/EquAnalysis.vue @@ -155,11 +155,11 @@ export default { try { console.log('🚀 ~ this.queryParams:', this.queryParams) const res = await getTotalValueApi(this.queryParams) - this.priceData = res.data + this.priceData = res.data || {} const res2 = await getConfigurationRateApi(this.queryParams) - this.configData = res2.data + this.configData = res2.data || {} const res3 = await getEquipmentStatusApi(this.queryParams) - this.total = res3.data.total + this.total = res3.data.total || 0 const fieldMap = [ { name: '在库数量', key: 'availableNum' }, { name: '维修数量', key: 'repairNum' },