이제 디비에 한글로 출발지 목적지 저장되도록
This commit is contained in:
parent
54c674f3c9
commit
109380b9e5
|
|
@ -107,10 +107,10 @@ export function LocationSwapSelectorComponent(props: LocationSwapSelectorProps)
|
||||||
const dbTableName = config.dbTableName || "vehicles";
|
const dbTableName = config.dbTableName || "vehicles";
|
||||||
const dbKeyField = config.dbKeyField || "user_id";
|
const dbKeyField = config.dbKeyField || "user_id";
|
||||||
|
|
||||||
// 기본 옵션 (포항/광양)
|
// 기본 옵션 (포항/광양) - 한글로 저장
|
||||||
const DEFAULT_OPTIONS: LocationOption[] = [
|
const DEFAULT_OPTIONS: LocationOption[] = [
|
||||||
{ value: "pohang", label: "포항" },
|
{ value: "포항", label: "포항" },
|
||||||
{ value: "gwangyang", label: "광양" },
|
{ value: "광양", label: "광양" },
|
||||||
];
|
];
|
||||||
|
|
||||||
// 상태
|
// 상태
|
||||||
|
|
|
||||||
|
|
@ -26,9 +26,9 @@ export const LocationSwapSelectorDefinition = createComponentDefinition({
|
||||||
labelField: "location_name", // 표시 필드
|
labelField: "location_name", // 표시 필드
|
||||||
codeCategory: "", // 코드 관리 카테고리 (type이 "code"일 때)
|
codeCategory: "", // 코드 관리 카테고리 (type이 "code"일 때)
|
||||||
staticOptions: [
|
staticOptions: [
|
||||||
{ value: "pohang", label: "포항" },
|
{ value: "포항", label: "포항" },
|
||||||
{ value: "gwangyang", label: "광양" },
|
{ value: "광양", label: "광양" },
|
||||||
], // 정적 옵션 (type이 "static"일 때)
|
], // 정적 옵션 (type이 "static"일 때) - 한글로 저장
|
||||||
},
|
},
|
||||||
// 필드 매핑
|
// 필드 매핑
|
||||||
departureField: "departure", // 출발지 저장 필드
|
departureField: "departure", // 출발지 저장 필드
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue