feat: Add menu icon support in menu management
- Enhanced the menu management functionality by adding a new `menu_icon` field in the database schema, allowing for the storage of menu icons. - Updated the `saveMenu` and `updateMenu` functions in the admin controller to handle the new `menu_icon` field during menu creation and updates. - Modified the `AdminService` to include `MENU_ICON` in various queries, ensuring that the icon data is retrieved and processed correctly. - Integrated the `MenuIconPicker` component in the frontend to allow users to select and display menu icons in the `MenuFormModal`. - Updated the sidebar and layout components to utilize the new icon data, enhancing the visual representation of menus across the application.
This commit is contained in:
@@ -23,6 +23,9 @@ export interface MenuItem {
|
||||
// 계층적 메뉴 구조를 위한 필드들
|
||||
children?: MenuItem[];
|
||||
|
||||
// 아이콘 필드
|
||||
menu_icon?: string;
|
||||
|
||||
// 번역 관련 필드들
|
||||
translated_name?: string;
|
||||
translated_desc?: string;
|
||||
@@ -47,6 +50,9 @@ export interface MenuItem {
|
||||
COMPANY_CODE?: string;
|
||||
COMPANY_NAME?: string;
|
||||
|
||||
// 아이콘 대문자 키
|
||||
MENU_ICON?: string;
|
||||
|
||||
// 번역 관련 대문자 키들
|
||||
TRANSLATED_NAME?: string;
|
||||
TRANSLATED_DESC?: string;
|
||||
|
||||
Reference in New Issue
Block a user