| | |
| | | }) |
| | | if(resChart.data.data && resChart.data.data.length > 0){ |
| | | const gasNewValue = resChart.data.data[0].gasCategoryConfigurationRespDTO |
| | | if(resChart.data.data && gasNewValue && gasNewValue != null ){ |
| | | if(resChart.data.data && gasNewValue && gasNewValue.id != null ){ |
| | | resChart.data.data.forEach(item => { |
| | | item.gasValue = ((Number(item.gasValue) - Number(gasNewValue.concentration)) * Number(gasNewValue.multiplication)).toFixed(2) |
| | | }) |
| | |
| | | state.tableData.data = res.data.data; |
| | | if(res.data.data && res.data.data.length > 0){ |
| | | const gasNewValue = state.tableData.data[0].gasCategoryConfigurationRespDTO |
| | | if(res.data.data && gasNewValue && gasNewValue != null ){ |
| | | if(res.data.data && gasNewValue && gasNewValue.id != null ){ |
| | | state.tableData.data.forEach(item => { |
| | | item.gasValue = ((Number(item.gasValue) - Number(gasNewValue.concentration)) * Number(gasNewValue.multiplication)).toFixed(2) |
| | | }) |