feat: 권한별 메뉴 반영
parent
5454e36dda
commit
6414cd31af
@ -1,11 +1,13 @@
|
||||
import other from './other';
|
||||
import opst from './opst';
|
||||
import admin from './admin';
|
||||
import dashboard from './dashboard';
|
||||
|
||||
// ==============================|| MENU ITEMS ||============================== //
|
||||
|
||||
const menuItems = {
|
||||
items: [dashboard, opst, other]
|
||||
export const adminMenuItems = {
|
||||
items: [dashboard, admin, other]
|
||||
};
|
||||
|
||||
export default menuItems;
|
||||
export const judgeMenuItems = {
|
||||
items: [dashboard, admin, other]
|
||||
};
|
||||
|
@ -0,0 +1,108 @@
|
||||
// third-party
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
// assets
|
||||
import {
|
||||
IconKey,
|
||||
IconReceipt2,
|
||||
IconBug,
|
||||
IconBellRinging,
|
||||
IconPhoneCall,
|
||||
IconQuestionMark,
|
||||
IconShieldLock,
|
||||
IconUserCheck,
|
||||
IconMessage,
|
||||
IconClipboardList,
|
||||
IconClipboardCheck,
|
||||
IconDisabled,
|
||||
IconUser,
|
||||
IconParking,
|
||||
IconDatabase,
|
||||
IconDatabaseImport,
|
||||
IconList,
|
||||
IconFileCertificate
|
||||
} from '@tabler/icons';
|
||||
|
||||
// constant
|
||||
const icons = {
|
||||
IconKey,
|
||||
IconReceipt2,
|
||||
IconBug,
|
||||
IconBellRinging,
|
||||
IconPhoneCall,
|
||||
IconQuestionMark,
|
||||
IconShieldLock,
|
||||
IconUserCheck,
|
||||
IconMessage,
|
||||
IconClipboardList,
|
||||
IconClipboardCheck,
|
||||
IconUser,
|
||||
IconDisabled,
|
||||
IconParking,
|
||||
IconDatabase,
|
||||
IconDatabaseImport,
|
||||
IconList,
|
||||
IconFileCertificate
|
||||
};
|
||||
|
||||
// ==============================|| OPST MENU ITEMS ||============================== //
|
||||
|
||||
const judge = {
|
||||
id: 'judge',
|
||||
// title: <FormattedMessage id="admin" />,
|
||||
type: 'group',
|
||||
children: [
|
||||
{
|
||||
/* 공지 사항 */
|
||||
id: 'judge-1',
|
||||
title: <FormattedMessage id="judge-1" />,
|
||||
type: 'item',
|
||||
icon: icons.IconClipboardCheck,
|
||||
url: '/publicBoard',
|
||||
breadcrumbs: true
|
||||
},
|
||||
{
|
||||
/* 심의대상 목록 */
|
||||
id: 'judge-2',
|
||||
title: <FormattedMessage id="judge-2" />,
|
||||
type: 'collapse',
|
||||
icon: icons.IconParking,
|
||||
children: [
|
||||
{
|
||||
/* 주정차 심의대상 목록 */
|
||||
id: 'judge-2-1',
|
||||
title: <FormattedMessage id="judge-2-1" />,
|
||||
type: 'item',
|
||||
url: '/parking/review',
|
||||
icon: icons.IconList
|
||||
},
|
||||
{
|
||||
/* 거주자 심의대상 목록 */
|
||||
id: 'judge-2-2',
|
||||
title: <FormattedMessage id="judge-2-2" />,
|
||||
type: 'item',
|
||||
url: '/resident/review',
|
||||
icon: icons.IconList
|
||||
},
|
||||
{
|
||||
/* 장애인 심의대상 목록 */
|
||||
id: 'judge-2-3',
|
||||
title: <FormattedMessage id="judge-2-3" />,
|
||||
type: 'item',
|
||||
url: '/disabled/review',
|
||||
icon: icons.IconList
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
/* 게시판 관리 */
|
||||
id: 'judge-3',
|
||||
title: <FormattedMessage id="judge-3" />,
|
||||
type: 'item',
|
||||
url: '/board',
|
||||
icon: icons.IconClipboardList
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default judge;
|
Loading…
Reference in New Issue