Merge pull request '시뮬레이션 수정' (#458) from dev_ysCha into dev

Reviewed-on: #458
This commit is contained in:
ysCha 2025-12-10 11:21:20 +09:00
commit ab78399e42

View File

@ -264,7 +264,6 @@ export default function Simulator() {
style={{ width: '30%' }} style={{ width: '30%' }}
className="select-light" className="select-light"
value={pwrGnrSimType} value={pwrGnrSimType}
defaultValue={`D`}
onChange={(e) => { onChange={(e) => {
handleChartChangeData(e.target.value) handleChartChangeData(e.target.value)
setPwrGnrSimType(e.target.value) setPwrGnrSimType(e.target.value)
@ -334,33 +333,31 @@ export default function Simulator() {
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{moduleInfoList.length > 0 ? ( {moduleInfoList.length > 0 ? (
moduleInfoList.map((moduleInfo) => { moduleInfoList.map((moduleInfo) => {
return ( return (
<> <tr key={moduleInfo.itemId}>
<tr key={moduleInfo.itemId}> {/* 지붕면 */}
{/* 지붕면 */} <td>{moduleInfo.roofSurface}</td>
<td>{moduleInfo.roofSurface}</td> {/* 경사각 */}
{/* 경사각 */} <td>
<td> {convertNumberToPriceDecimal(moduleInfo.slopeAngle)}
{convertNumberToPriceDecimal(moduleInfo.slopeAngle)} {moduleInfo.classType == 0 ? '寸' : 'º'}
{moduleInfo.classType == 0 ? '寸' : 'º'} </td>
</td> {/* 방위각(도) */}
{/* 방위각(도) */} <td>{convertNumberToPriceDecimal(moduleInfo.azimuth)}</td>
<td>{convertNumberToPriceDecimal(moduleInfo.azimuth)}</td> {/* 태양전지모듈 */}
{/* 태양전지모듈 */} <td>
<td> <div className="overflow-lab">{moduleInfo.itemNo}</div>
<div className="overflow-lab">{moduleInfo.itemNo}</div> </td>
</td> {/* 매수 */}
{/* 매수 */} <td>{convertNumberToPriceDecimal(moduleInfo.amount)}</td>
<td>{convertNumberToPriceDecimal(moduleInfo.amount)}</td> </tr>
</tr> )
</> })
) ) : (
}) <tr>
) : ( <td colSpan={5}>{getMessage('common.message.no.data')}</td>
<tr>
<td colSpan={5}>{getMessage('common.message.no.data')}</td>
</tr> </tr>
)} )}
</tbody> </tbody>
@ -385,25 +382,23 @@ export default function Simulator() {
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{pcsInfoList.length > 0 ? ( {pcsInfoList.length > 0 ? (
pcsInfoList.map((pcsInfo) => { pcsInfoList.map((pcsInfo) => {
return ( return (
<> <tr key={pcsInfo.itemId}>
<tr key={pcsInfo.itemId}> {/* 파워컨디셔너 */}
{/* 파워컨디셔너 */} <td className="al-l">
<td className="al-l"> <div className="overflow-lab">{pcsInfo.itemNo}</div>
<div className="overflow-lab">{pcsInfo.itemNo}</div> </td>
</td> {/* 대 */}
{/* 대 */} <td>{convertNumberToPriceDecimal(pcsInfo.amount)}</td>
<td>{convertNumberToPriceDecimal(pcsInfo.amount)}</td> </tr>
</tr> )
</> })
) ) : (
}) <tr>
) : ( <td colSpan={2}>{getMessage('common.message.no.data')}</td>
<tr> </tr>
<td colSpan={2}>{getMessage('common.message.no.data')}</td>
</tr>
)} )}
</tbody> </tbody>
</table> </table>