|
|
@ -123,10 +123,10 @@ export default function ControlApprovalsTable(props) { |
|
|
|
}) |
|
|
|
}) |
|
|
|
); |
|
|
|
); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
handlerErrorModal(ERROR_TITLE, ERROR_MESSAGE); |
|
|
|
handlerErrorModal(ERROR_TITLE, ERROR_MESSAGE, true); |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (errInfo) { |
|
|
|
} catch (errInfo) { |
|
|
|
handlerErrorModal(ERROR_TITLE, ERROR_MESSAGE); |
|
|
|
handlerErrorModal(ERROR_TITLE, ERROR_MESSAGE, true); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
@ -286,7 +286,6 @@ export default function ControlApprovalsTable(props) { |
|
|
|
dataIndex: 'bufferZone', |
|
|
|
dataIndex: 'bufferZone', |
|
|
|
align: 'center', |
|
|
|
align: 'center', |
|
|
|
width: '80px', |
|
|
|
width: '80px', |
|
|
|
editable: true, |
|
|
|
|
|
|
|
render: (text, record) => { |
|
|
|
render: (text, record) => { |
|
|
|
return text ? text : '-'; |
|
|
|
return text ? text : '-'; |
|
|
|
} |
|
|
|
} |
|
|
@ -518,7 +517,15 @@ export default function ControlApprovalsTable(props) { |
|
|
|
<Button color='flat-dark'> |
|
|
|
<Button color='flat-dark'> |
|
|
|
<Typography.Link |
|
|
|
<Typography.Link |
|
|
|
disabled={editingKey !== ''} |
|
|
|
disabled={editingKey !== ''} |
|
|
|
onClick={() => edit(record)} |
|
|
|
onClick={() => { |
|
|
|
|
|
|
|
record.reviewedType === 'R' |
|
|
|
|
|
|
|
? handlerErrorModal( |
|
|
|
|
|
|
|
'수정 불가', |
|
|
|
|
|
|
|
'검토가 완료된 구역은 수정할 수 없습니다.', |
|
|
|
|
|
|
|
false |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
: edit(record); |
|
|
|
|
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
수정 |
|
|
|
수정 |
|
|
|
</Typography.Link> |
|
|
|
</Typography.Link> |
|
|
@ -638,7 +645,6 @@ export default function ControlApprovalsTable(props) { |
|
|
|
{ |
|
|
|
{ |
|
|
|
dataIndex: 'bufferZone', |
|
|
|
dataIndex: 'bufferZone', |
|
|
|
align: 'center', |
|
|
|
align: 'center', |
|
|
|
editable: true, |
|
|
|
|
|
|
|
width: '80px', |
|
|
|
width: '80px', |
|
|
|
render: text => { |
|
|
|
render: text => { |
|
|
|
return text ? text : <>-</>; |
|
|
|
return text ? text : <>-</>; |
|
|
@ -760,7 +766,16 @@ export default function ControlApprovalsTable(props) { |
|
|
|
<Button color='flat-dark'> |
|
|
|
<Button color='flat-dark'> |
|
|
|
<Typography.Link |
|
|
|
<Typography.Link |
|
|
|
disabled={editingKey !== ''} |
|
|
|
disabled={editingKey !== ''} |
|
|
|
onClick={() => edit(record)} |
|
|
|
onClick={() => { |
|
|
|
|
|
|
|
console.log('record>>', record); |
|
|
|
|
|
|
|
record.reviewedType === 'R' |
|
|
|
|
|
|
|
? handlerErrorModal( |
|
|
|
|
|
|
|
'수정 불가', |
|
|
|
|
|
|
|
'검토가 완료된 구역은 수정할 수 없습니다.', |
|
|
|
|
|
|
|
false |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
: edit(record); |
|
|
|
|
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
수정 |
|
|
|
수정 |
|
|
|
</Typography.Link> |
|
|
|
</Typography.Link> |
|
|
@ -912,13 +927,13 @@ export default function ControlApprovalsTable(props) { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// 단순 메시지 표출 모달
|
|
|
|
// 단순 메시지 표출 모달
|
|
|
|
const handlerErrorModal = (header, body) => { |
|
|
|
const handlerErrorModal = (header, body, isRefresh) => { |
|
|
|
dispatch( |
|
|
|
dispatch( |
|
|
|
openModal({ |
|
|
|
openModal({ |
|
|
|
header: header, |
|
|
|
header: header, |
|
|
|
body: body, |
|
|
|
body: body, |
|
|
|
isHistoryBack: false, |
|
|
|
isHistoryBack: false, |
|
|
|
isRefresh: true |
|
|
|
isRefresh: isRefresh |
|
|
|
}) |
|
|
|
}) |
|
|
|
); |
|
|
|
); |
|
|
|
}; |
|
|
|
}; |
|
|
@ -1175,6 +1190,13 @@ export default function ControlApprovalsTable(props) { |
|
|
|
|
|
|
|
|
|
|
|
// 체크박스 업데이트 함수
|
|
|
|
// 체크박스 업데이트 함수
|
|
|
|
const handleCheckbox = async () => { |
|
|
|
const handleCheckbox = async () => { |
|
|
|
|
|
|
|
if (checkList.length === 0) { |
|
|
|
|
|
|
|
return handlerErrorModal( |
|
|
|
|
|
|
|
'검토 실패', |
|
|
|
|
|
|
|
'검토할 항목을 선택해주세요.', |
|
|
|
|
|
|
|
false |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
try { |
|
|
|
try { |
|
|
|
const planAreaSnoList = [ |
|
|
|
const planAreaSnoList = [ |
|
|
|
...new Set( |
|
|
|
...new Set( |
|
|
@ -1193,7 +1215,13 @@ export default function ControlApprovalsTable(props) { |
|
|
|
searchEndDt: props.endDate |
|
|
|
searchEndDt: props.endDate |
|
|
|
}) |
|
|
|
}) |
|
|
|
); |
|
|
|
); |
|
|
|
} catch (error) {} |
|
|
|
} catch (error) { |
|
|
|
|
|
|
|
return handlerErrorModal( |
|
|
|
|
|
|
|
'검토 실패', |
|
|
|
|
|
|
|
'검토를 실패하였습니다. 다시 시도해주세요.', |
|
|
|
|
|
|
|
false |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|