|
|
@@ -11,22 +11,26 @@
|
|
|
</div>
|
|
|
<q-list class="side-menu-list"
|
|
|
padding>
|
|
|
- <menu-item :menu="adminMenuItems" />
|
|
|
+ <menu-item :menu="adminMenuItems"
|
|
|
+ :user="user" />
|
|
|
</q-list>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { mixinAuthData } from 'src/mixin/Mixins.js'
|
|
|
import menuItem from 'src/components/Menu/SideMenu/MenuItem.vue'
|
|
|
|
|
|
export default {
|
|
|
name: 'AdminPanelSideBar',
|
|
|
components: { menuItem },
|
|
|
+ mixins: [mixinAuthData],
|
|
|
data () {
|
|
|
return {
|
|
|
adminMenuItems: [
|
|
|
{
|
|
|
title: 'کاربران',
|
|
|
+ roles: ['superuser'],
|
|
|
routeName: 'Admin.User.Index',
|
|
|
icon: 'groups',
|
|
|
show: true,
|
|
|
@@ -34,6 +38,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
title: 'دوره های آموزشی',
|
|
|
+ roles: ['superuser', 'educational_department_head'],
|
|
|
icon: 'import_contacts',
|
|
|
routeName: null,
|
|
|
show: true,
|
|
|
@@ -42,12 +47,14 @@ export default {
|
|
|
children: [
|
|
|
{
|
|
|
title: 'درس ها و چارت آموزشی',
|
|
|
+ roles: ['superuser', 'educational_department_head'],
|
|
|
routeName: 'Admin.Category.Index',
|
|
|
show: true,
|
|
|
active: false
|
|
|
},
|
|
|
{
|
|
|
title: 'دوره های آموزشی',
|
|
|
+ roles: ['superuser', 'educational_department_head'],
|
|
|
routeName: 'Admin.Classroom.Index',
|
|
|
show: true,
|
|
|
active: false
|
|
|
@@ -56,6 +63,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
title: 'حلقه های مباحثاتی',
|
|
|
+ roles: ['superuser', 'educational_department_head'],
|
|
|
icon: 'diversity_2',
|
|
|
routeName: null,
|
|
|
show: true,
|
|
|
@@ -64,12 +72,14 @@ export default {
|
|
|
children: [
|
|
|
{
|
|
|
title: 'درس ها و چارت آموزشی',
|
|
|
+ roles: ['superuser', 'educational_department_head'],
|
|
|
routeName: 'Admin.Category.DiscussionCircles.Index',
|
|
|
show: true,
|
|
|
active: false
|
|
|
},
|
|
|
{
|
|
|
title: 'حلقه های مباحثاتی',
|
|
|
+ roles: ['superuser', 'educational_department_head'],
|
|
|
routeName: 'Admin.Classroom.DiscussionCircles.Index',
|
|
|
show: true,
|
|
|
active: false
|
|
|
@@ -78,13 +88,23 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
title: 'درخواست های آموزش',
|
|
|
+ roles: ['superuser', 'educational_department_head'],
|
|
|
routeName: 'Admin.Ticket.List.Educational',
|
|
|
icon: 'local_activity',
|
|
|
show: true,
|
|
|
active: false
|
|
|
},
|
|
|
+ {
|
|
|
+ title: 'دوره های من',
|
|
|
+ roles: ['superuser', 'team_leader'],
|
|
|
+ routeName: 'Admin.Leader.MyClassrooms.Index',
|
|
|
+ icon: 'diversity_3',
|
|
|
+ show: true,
|
|
|
+ active: false
|
|
|
+ },
|
|
|
{
|
|
|
title: 'محتوا',
|
|
|
+ roles: ['superuser'],
|
|
|
icon: 'live_tv',
|
|
|
routeName: null,
|
|
|
show: true,
|
|
|
@@ -93,18 +113,21 @@ export default {
|
|
|
children: [
|
|
|
{
|
|
|
title: 'دسته بندی ها',
|
|
|
+ roles: ['superuser'],
|
|
|
routeName: 'Admin.ContentCategory.List',
|
|
|
show: true,
|
|
|
active: false
|
|
|
},
|
|
|
{
|
|
|
title: 'لیست محتوا ها',
|
|
|
+ roles: ['superuser'],
|
|
|
routeName: 'Admin.Content.List',
|
|
|
show: true,
|
|
|
active: false
|
|
|
},
|
|
|
{
|
|
|
title: 'درخواست ها',
|
|
|
+ roles: ['superuser'],
|
|
|
routeName: 'Admin.Content.Ticket',
|
|
|
show: true,
|
|
|
active: false
|
|
|
@@ -113,6 +136,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
title: 'بلاگ',
|
|
|
+ roles: ['superuser'],
|
|
|
icon: 'rss_feed',
|
|
|
routeName: null,
|
|
|
show: true,
|
|
|
@@ -121,12 +145,14 @@ export default {
|
|
|
children: [
|
|
|
{
|
|
|
title: 'دسته بندی ها',
|
|
|
+ roles: ['superuser'],
|
|
|
routeName: 'Admin.PostCategory.List',
|
|
|
show: true,
|
|
|
active: false
|
|
|
},
|
|
|
{
|
|
|
title: 'لیست پست ها',
|
|
|
+ roles: ['superuser'],
|
|
|
routeName: 'Admin.Post.List',
|
|
|
show: true,
|
|
|
active: false
|
|
|
@@ -135,6 +161,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
title: 'مدیریت مالی',
|
|
|
+ roles: ['superuser', 'financial_department_head'],
|
|
|
icon: 'payments',
|
|
|
routeName: null,
|
|
|
show: true,
|
|
|
@@ -143,18 +170,21 @@ export default {
|
|
|
children: [
|
|
|
{
|
|
|
title: 'صورتحساب ها',
|
|
|
+ roles: ['superuser', 'financial_department_head'],
|
|
|
routeName: 'Admin.Invoice.List',
|
|
|
show: true,
|
|
|
active: false
|
|
|
},
|
|
|
{
|
|
|
title: 'پرداخت ها',
|
|
|
+ roles: ['superuser', 'financial_department_head'],
|
|
|
routeName: 'Admin.Payment.List',
|
|
|
show: true,
|
|
|
active: false
|
|
|
},
|
|
|
{
|
|
|
title: 'درخواست ها',
|
|
|
+ roles: ['superuser', 'financial_department_head'],
|
|
|
routeName: 'Admin.Invoice.Ticket.List',
|
|
|
show: true,
|
|
|
active: false
|
|
|
@@ -163,6 +193,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
title: 'تمام درخواست ها',
|
|
|
+ roles: ['superuser'],
|
|
|
routeName: 'Admin.Ticket.List',
|
|
|
icon: 'confirmation_number',
|
|
|
show: true,
|