feature/screen-management #55
|
|
@ -31,7 +31,12 @@ export const TableListConfigPanel: React.FC<TableListConfigPanelProps> = ({
|
|||
screenTableName,
|
||||
tableColumns,
|
||||
}) => {
|
||||
console.log("🔍 TableListConfigPanel props:", { config, screenTableName, tableColumns });
|
||||
console.log("🔍 TableListConfigPanel props:", {
|
||||
config: config?.selectedTable,
|
||||
screenTableName,
|
||||
tableColumns: tableColumns?.length,
|
||||
tableColumnsSample: tableColumns?.[0]
|
||||
});
|
||||
|
||||
const [availableTables, setAvailableTables] = useState<Array<{ tableName: string; displayName: string }>>([]);
|
||||
const [loadingTables, setLoadingTables] = useState(false);
|
||||
|
|
@ -296,7 +301,7 @@ export const TableListConfigPanel: React.FC<TableListConfigPanelProps> = ({
|
|||
columnsCount: config.columns?.length || 0,
|
||||
hasTableColumns: !!tableColumns,
|
||||
tableColumnsCount: tableColumns?.length || 0,
|
||||
selectedTable: config.selectedTable
|
||||
selectedTable: config.selectedTable,
|
||||
});
|
||||
|
||||
if (!config.columns || !tableColumns) {
|
||||
|
|
@ -312,12 +317,12 @@ export const TableListConfigPanel: React.FC<TableListConfigPanelProps> = ({
|
|||
}
|
||||
|
||||
// 테이블 컬럼 정보에서 해당 컬럼 찾기
|
||||
const tableColumn = tableColumns.find((tc) => tc.column_name === column.columnName);
|
||||
const tableColumn = tableColumns.find((tc) => tc.columnName === column.columnName);
|
||||
console.log("🔍 컬럼 검색:", {
|
||||
columnName: column.columnName,
|
||||
found: !!tableColumn,
|
||||
inputType: tableColumn?.input_type,
|
||||
webType: tableColumn?.web_type
|
||||
webType: tableColumn?.web_type,
|
||||
});
|
||||
|
||||
// 엔티티 타입인 경우 isEntityJoin 플래그 설정 (input_type 또는 web_type 확인)
|
||||
|
|
@ -468,7 +473,7 @@ export const TableListConfigPanel: React.FC<TableListConfigPanelProps> = ({
|
|||
if (!column) return;
|
||||
|
||||
// tableColumns에서 해당 컬럼의 메타정보 찾기
|
||||
const tableColumn = tableColumns?.find((tc) => tc.columnName === columnName || tc.column_name === columnName);
|
||||
const tableColumn = tableColumns?.find((tc) => tc.columnName === columnName);
|
||||
|
||||
// 컬럼의 데이터 타입과 웹타입에 따라 위젯 타입 결정
|
||||
const inferWidgetType = (dataType: string, webType?: string): string => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue