Merge branch 'main' of http://39.117.244.52:3000/kjs/ERP-node into feature/v2-unified-renewal
This commit is contained in:
@@ -1223,13 +1223,14 @@ export const InteractiveDataTable: React.FC<InteractiveDataTableProps> = ({
|
||||
description: editModalDescription,
|
||||
modalSize: "lg",
|
||||
editData: initialData,
|
||||
menuObjid, // 🆕 메뉴 OBJID 전달 (카테고리 스코프용)
|
||||
onSave: () => {
|
||||
loadData(); // 테이블 데이터 새로고침
|
||||
},
|
||||
},
|
||||
});
|
||||
window.dispatchEvent(event);
|
||||
}, [selectedRows, data, getDisplayColumns, component.addModalConfig, component.editModalConfig, loadData]);
|
||||
}, [selectedRows, data, getDisplayColumns, component.addModalConfig, component.editModalConfig, loadData, menuObjid]);
|
||||
|
||||
// 수정 폼 데이터 변경 핸들러
|
||||
const handleEditFormChange = useCallback((columnName: string, value: any) => {
|
||||
@@ -2730,6 +2731,7 @@ export const InteractiveDataTable: React.FC<InteractiveDataTableProps> = ({
|
||||
screenId={saveModalScreenId}
|
||||
modalSize={component.addModalConfig?.modalSize || "lg"}
|
||||
initialData={saveModalData}
|
||||
menuObjid={menuObjid} // 🆕 메뉴 OBJID 전달 (카테고리 스코프용)
|
||||
onSaveSuccess={() => {
|
||||
// 저장 성공 시 테이블 새로고침
|
||||
loadData(currentPage, searchValues); // 현재 페이지로 다시 로드
|
||||
|
||||
Reference in New Issue
Block a user