엑셀 업로드 로직 개선
This commit is contained in:
parent
87189c792e
commit
b6fefe2ebd
|
|
@ -4850,6 +4850,12 @@ export class ButtonActionExecutor {
|
||||||
masterDetailRelation = relationResponse.data;
|
masterDetailRelation = relationResponse.data;
|
||||||
|
|
||||||
// 버튼 설정에서 채번 규칙 등 추가 설정 가져오기
|
// 버튼 설정에서 채번 규칙 등 추가 설정 가져오기
|
||||||
|
// 업로드 후 제어: excelAfterUploadFlows를 우선 사용 (통합된 설정)
|
||||||
|
// masterDetailExcel.afterUploadFlows는 레거시 호환성을 위해 fallback으로만 사용
|
||||||
|
const afterUploadFlows = config.excelAfterUploadFlows?.length > 0
|
||||||
|
? config.excelAfterUploadFlows
|
||||||
|
: config.masterDetailExcel?.afterUploadFlows;
|
||||||
|
|
||||||
if (config.masterDetailExcel) {
|
if (config.masterDetailExcel) {
|
||||||
masterDetailExcelConfig = {
|
masterDetailExcelConfig = {
|
||||||
...config.masterDetailExcel,
|
...config.masterDetailExcel,
|
||||||
|
|
@ -4860,8 +4866,8 @@ export class ButtonActionExecutor {
|
||||||
detailFkColumn: relationResponse.data.detailFkColumn,
|
detailFkColumn: relationResponse.data.detailFkColumn,
|
||||||
// 채번 규칙 ID 추가 (excelNumberingRuleId를 numberingRuleId로 매핑)
|
// 채번 규칙 ID 추가 (excelNumberingRuleId를 numberingRuleId로 매핑)
|
||||||
numberingRuleId: config.masterDetailExcel.numberingRuleId || config.excelNumberingRuleId,
|
numberingRuleId: config.masterDetailExcel.numberingRuleId || config.excelNumberingRuleId,
|
||||||
// 업로드 후 제어 설정 추가
|
// 업로드 후 제어 설정 (통합: excelAfterUploadFlows 우선)
|
||||||
afterUploadFlows: config.masterDetailExcel.afterUploadFlows || config.excelAfterUploadFlows,
|
afterUploadFlows,
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
// 버튼 설정이 없으면 분할 패널 정보만 사용
|
// 버튼 설정이 없으면 분할 패널 정보만 사용
|
||||||
|
|
@ -4873,8 +4879,8 @@ export class ButtonActionExecutor {
|
||||||
simpleMode: true, // 기본값으로 간단 모드 사용
|
simpleMode: true, // 기본값으로 간단 모드 사용
|
||||||
// 채번 규칙 ID 추가 (excelNumberingRuleId 사용)
|
// 채번 규칙 ID 추가 (excelNumberingRuleId 사용)
|
||||||
numberingRuleId: config.excelNumberingRuleId,
|
numberingRuleId: config.excelNumberingRuleId,
|
||||||
// 업로드 후 제어 설정 추가
|
// 업로드 후 제어 설정 (통합: excelAfterUploadFlows 우선)
|
||||||
afterUploadFlows: config.excelAfterUploadFlows,
|
afterUploadFlows,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue