70 lines
1.8 KiB
TypeScript
70 lines
1.8 KiB
TypeScript
import type { RouteRecordRaw } from 'vue-router'
|
|||
|
|
|
||
|
|
const Setting: RouteRecordRaw = {
|
||
|
|
name: 'settings',
|
||
|
|
path: '/settings',
|
||
|
|
component: () => import('@core/layouts/BasicLayout.vue'),
|
||
|
|
redirect: { name: 'settingMain' },
|
||
|
|
meta: {
|
||
|
|
icon: 'vuesax-linear:setting',
|
||
|
|
permissionsKey: 'config',
|
||
|
|
title: 'پیکربندی',
|
||
|
|
disabled: false,
|
||
|
|
hideMenu: false,
|
||
|
|
hideChildren: true,
|
||
|
|
order: 10
|
||
|
|
},
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
name: 'settingMain',
|
||
|
|
path: '',
|
||
|
|
component: () => import('@/pages/menuPages/setting/index.vue'),
|
||
|
|
meta: {
|
||
|
|
permissionsKey: 'config',
|
||
|
|
icon: 'vuesax-linear:setting',
|
||
|
|
order: 5,
|
||
|
|
title: 'پیکربندی',
|
||
|
|
disabled: false,
|
||
|
|
hideMenu: true
|
||
|
|
//hideChildren: false
|
||
|
|
},
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
name: 'settingMain_limitedOrder',
|
||
|
|
path: 'limitedOrder',
|
||
|
|
component: () => import('@/pages/menuPages/setting/limitedOrder/index.vue'),
|
||
|
|
meta: {
|
||
|
|
permissionsKey: 'config.limitedOrder',
|
||
|
|
icon: 'vuesax-linear:document-text',
|
||
|
|
title: '' +
|
||
|
|
'' +
|
||
|
|
'محدودیت سفارش'
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
name: 'usersMain',
|
||
|
|
path: 'admins',
|
||
|
|
component: () => import('@/pages/menuPages/users/index.vue'),
|
||
|
|
meta: {
|
||
|
|
permissionsKey: 'user',
|
||
|
|
icon: 'vuesax-linear:profile',
|
||
|
|
title: 'لیست مدیران'
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
name: 'priceTriggers',
|
||
|
|
path: 'priceTriggers',
|
||
|
|
component: () => import('@/pages/menuPages/priceTriggers/index.vue'),
|
||
|
|
meta: {
|
||
|
|
permissionsKey: 'priceTriggers',
|
||
|
|
icon: 'vuesax-linear:notification-bing',
|
||
|
|
title: 'هشدار قیمت'
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
|
||
|
|
export default Setting
|