자동할당일 때 모듈의 회로 정보 초기화 적용 및 API 오류 시 메시지 처리
This commit is contained in:
parent
4a8ebe19af
commit
734636adad
@ -178,7 +178,11 @@ export default function CircuitTrestleSetting({ id }) {
|
|||||||
...params,
|
...params,
|
||||||
pcsItemList: getSelectedPcsItemList(),
|
pcsItemList: getSelectedPcsItemList(),
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
setTabNum(2)
|
if (res?.result.resultCode === 'S' && res?.data) {
|
||||||
|
setTabNum(2)
|
||||||
|
} else {
|
||||||
|
swalFire({ text: getMessage('common.message.send.error') })
|
||||||
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
swalFire({
|
swalFire({
|
||||||
|
|||||||
@ -56,9 +56,19 @@ export default function StepUp(props) {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log(allocationType)
|
|
||||||
|
|
||||||
if (allocationType === 'auto') {
|
if (allocationType === 'auto') {
|
||||||
|
// 자동일 때 모듈의 회로 정보 초기화
|
||||||
|
canvas
|
||||||
|
.getObjects()
|
||||||
|
.filter((obj) => obj.name === POLYGON_TYPE.MODULE)
|
||||||
|
.forEach((module) => {
|
||||||
|
module.circuit = null
|
||||||
|
module.circuitNumber = null
|
||||||
|
module.pcsItemId = null
|
||||||
|
})
|
||||||
|
|
||||||
|
canvas.renderAll()
|
||||||
|
|
||||||
// PCS 자동 승압설정 정보 조회
|
// PCS 자동 승압설정 정보 조회
|
||||||
fetchAutoStepUpData()
|
fetchAutoStepUpData()
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user