260515_04_ENH: 조사 및 지역에 대한 노출 config 기준으로 되도록 수정
This commit is contained in:
@@ -13,6 +13,7 @@ export const CUSTOMER_SATISFACTION_GAP_SIGN_STYLE: SignStyle<TopChartTableRow> =
|
||||
paint: "text",
|
||||
};
|
||||
|
||||
//조사에 대한 조정은 여기서
|
||||
export const CATEGORY_KEY_MAP: Record<string, string> = {
|
||||
"-1": "전체 현황",
|
||||
"2601009_A": "안전점검",
|
||||
@@ -41,10 +42,15 @@ const toKeyMap = <T extends KeyLabelEntries>(entries: T) =>
|
||||
const toKeys = <T extends KeyLabelEntries>(entries: T) =>
|
||||
entries.map(([key]) => key) as Array<T[number][0]>;
|
||||
|
||||
export const CATEGORY_KEYS = Object.keys(CATEGORY_KEY_MAP) as Array<keyof typeof CATEGORY_KEY_MAP>;
|
||||
export const CATEGORY_KEYS = Object.keys(CATEGORY_KEY_MAP);
|
||||
|
||||
export const CATEGORIES = Object.values(CATEGORY_KEY_MAP) as Array<string>;
|
||||
|
||||
export const SUMMARY_CATEGORY_KEYS = CATEGORY_KEYS.filter(
|
||||
(key) => key !== "-1" && key !== "2601009_A"
|
||||
);
|
||||
|
||||
//지역에 대한 조정은 여기서
|
||||
const DIV_KEY_ENTRIES = [
|
||||
["-1", "전체"],
|
||||
["1", "서울인천지역본부"],
|
||||
|
||||
Reference in New Issue
Block a user