Enhance dynamic form service error handling and add pagination to DataGrid component

- Added error handling in DynamicFormService to throw an error if the record to be updated is not found, improving robustness.
- Enhanced DataGrid component with pagination features, including page size input and navigation buttons, to improve data management and user experience.
- Introduced state management for current page and page size, ensuring that data is displayed in a paginated format, making it easier for users to navigate through large datasets.
This commit is contained in:
kjs
2026-03-31 11:18:41 +09:00
parent 2bd99849b4
commit efed63a6cb
2 changed files with 141 additions and 7 deletions

View File

@@ -1195,6 +1195,10 @@ export class DynamicFormService {
const updatedRecord = Array.isArray(result) ? result[0] : result;
if (!updatedRecord) {
throw new Error(`업데이트 대상 레코드를 찾을 수 없습니다. (id: ${id}, 테이블: ${tableName})`);
}
// 🔥 조건부 연결 실행 (UPDATE 트리거)
try {
if (company_code) {