Compare commits

..

No commits in common. "ab78399e42abd09fac9f7e3d0f3cdf763e6b6f8e" and "c5d830f6c01ffe7ac35addf7f7c8fe8cb40c24fb" have entirely different histories.

View File

@ -264,6 +264,7 @@ 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)
@ -333,31 +334,33 @@ 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> {/* 경사각 */}
{convertNumberToPriceDecimal(moduleInfo.slopeAngle)} <td>
{moduleInfo.classType == 0 ? '寸' : 'º'} {convertNumberToPriceDecimal(moduleInfo.slopeAngle)}
</td> {moduleInfo.classType == 0 ? '寸' : 'º'}
{/* 방위각(도) */} </td>
<td>{convertNumberToPriceDecimal(moduleInfo.azimuth)}</td> {/* 방위각(도) */}
{/* 태양전지모듈 */} <td>{convertNumberToPriceDecimal(moduleInfo.azimuth)}</td>
<td> {/* 태양전지모듈 */}
<div className="overflow-lab">{moduleInfo.itemNo}</div> <td>
</td> <div className="overflow-lab">{moduleInfo.itemNo}</div>
{/* 매수 */} </td>
<td>{convertNumberToPriceDecimal(moduleInfo.amount)}</td> {/* 매수 */}
</tr> <td>{convertNumberToPriceDecimal(moduleInfo.amount)}</td>
) </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>
@ -382,23 +385,25 @@ 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"> {/* 파워컨디셔너 */}
<div className="overflow-lab">{pcsInfo.itemNo}</div> <td className="al-l">
</td> <div className="overflow-lab">{pcsInfo.itemNo}</div>
{/* 대 */} </td>
<td>{convertNumberToPriceDecimal(pcsInfo.amount)}</td> {/* 대 */}
</tr> <td>{convertNumberToPriceDecimal(pcsInfo.amount)}</td>
) </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>