Compare commits

..

No commits in common. "d0fa7d7ea9b13a996fda8a4b9b109330458ff83b" and "c3b3191af9ed70fa878abba5aec39de7ab3ddd88" have entirely different histories.

2 changed files with 500 additions and 458 deletions

View File

@ -77,7 +77,7 @@ export const Orientation = forwardRef((props, ref) => {
};
useEffect(() => {
if (basicSetting.roofSizeSet === '3') {
if (basicSetting.roofSizeSet == '3') {
restoreModuleInstArea()
}
}, [])
@ -187,7 +187,7 @@ export const Orientation = forwardRef((props, ref) => {
title: getMessage('module.not.found'),
icon: 'warning',
})
return
}
}
}
@ -250,17 +250,8 @@ export const Orientation = forwardRef((props, ref) => {
//
if (filtered.length > 0) {
const firstModule = filtered[0]
setSelectedModules(firstModule)
// handleChangeModule
if (handleChangeModule) {
handleChangeModule(firstModule)
}
setSelectedModules(filtered[0])
}
} else {
//
setFilteredModuleList([])
setSelectedModules(null)
}
}
@ -351,14 +342,10 @@ export const Orientation = forwardRef((props, ref) => {
setSelectedModuleSeries(currentSeries)
} else {
setSelectedModuleSeries(allOption)
// "ALL"
setTimeout(() => handleChangeModuleSeries(allOption), 0)
}
} else {
// ""
setSelectedModuleSeries(allOption)
// "ALL"
setTimeout(() => handleChangeModuleSeries(allOption), 0)
}
}
}
@ -382,9 +369,6 @@ export const Orientation = forwardRef((props, ref) => {
if (filtered.length > 0 && !selectedModules) {
setSelectedModules(filtered[0])
}
} else if (moduleList.length === 0 && filteredModuleList.length === 0 && selectedModuleSeries) {
//
setFilteredModuleList([])
}
}, [moduleList, selectedModuleSeries]);
return (
@ -478,7 +462,6 @@ export const Orientation = forwardRef((props, ref) => {
sourceKey={'itemId'}
showKey={'itemNm'}
onChange={(e) => handleChangeModule(e)}
showFirstOptionWhenEmpty = {true}
/>
)}
</div>
@ -529,7 +512,7 @@ export const Orientation = forwardRef((props, ref) => {
</tbody>
</table>
</div>
{basicSetting && basicSetting.roofSizeSet === '3' && (
{basicSetting && basicSetting.roofSizeSet == '3' && (
<div className="outline-form mt15">
<span>{getMessage('modal.module.basic.setting.module.placement.area')}</span>
<div className="input-grid mr10" style={{ width: '60px' }}>
@ -540,7 +523,7 @@ export const Orientation = forwardRef((props, ref) => {
)}
</div>
{basicSetting && basicSetting.roofSizeSet !== '3' && (
{basicSetting && basicSetting.roofSizeSet != '3' && (
<div className="compas-table-box">
<div className="compas-grid-table">
<div className="outline-form">

File diff suppressed because it is too large Load Diff