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:
@@ -40,6 +40,8 @@ export interface MenuItem {
|
||||
TRANSLATED_NAME?: string;
|
||||
translated_desc?: string;
|
||||
TRANSLATED_DESC?: string;
|
||||
menu_icon?: string;
|
||||
MENU_ICON?: string;
|
||||
}
|
||||
|
||||
export interface MenuFormData {
|
||||
@@ -52,8 +54,9 @@ export interface MenuFormData {
|
||||
menuType: string;
|
||||
status: string;
|
||||
companyCode: string;
|
||||
langKey?: string; // 다국어 키 추가
|
||||
screenCode?: string; // 화면 코드 추가
|
||||
langKey?: string;
|
||||
screenCode?: string;
|
||||
menuIcon?: string;
|
||||
}
|
||||
|
||||
export interface LangKey {
|
||||
|
||||
Reference in New Issue
Block a user