浏览代码

see also #27

ali 3 年之前
父节点
当前提交
6f9688498a

+ 1 - 1
src/components/Template/SideBard/AdminPanelSideBar.vue

@@ -81,7 +81,7 @@ export default {
             },
             {
               title: 'درخواست ها',
-              routeName: 'Classroom.DiscussionCircles.Ticket',
+              routeName: 'Admin.Classroom.DiscussionCircles.Ticket',
               show: true,
               active: false
             }

+ 1 - 1
src/components/Widgets/Ticket/AdminTicketList/OptionPanel.vue

@@ -5,7 +5,7 @@
         defaultSourceType
       </div>
       <q-select v-model="localOptions.defaultSourceType"
-                :options="[{ label: 'مالی', value: 'INVOICE' }, { label: 'آموزش', value: 'CLASSROOM' }]"
+                :options="[{ label: 'مالی', value: 'INVOICE' }, { label: 'آموزش', value: 'CLASSROOM' }, { label: 'محتوا', value: 'CONTENT' }, { label: 'حلقه های مباحثاتی', value: 'DISCUSSION_CIRCLE' }]"
                 emit-value
                 map-options />
     </template>

+ 1 - 1
src/pages/Admin/DiscussionCirclesClassroom/Ticket.vue

@@ -13,7 +13,7 @@ export default {
   mixins: [mixinPageOptions],
   data: () => {
     return {
-      sections: [{ data: { rows: [{ cols: [{ widgets: [{ name: 'AdminTicketList' }, { name: 'AdminTicketCreate', options: { style: { marginTop: '32px' } } }], options: { style: { paddingTop: '' } } }], options: { className: '', height: 'auto', boxed: true, boxedWidth: 1200, gutterXSize: 'md', gutterYSize: 'md', absolute: 'none', paddingOfBoxedInFullWidth: '30px', style: { maxWidth: '1200px', width: '1200px' } } }] }, options: { fullHeight: false, backgrounds: { xs: { size: null, color: null, image: null, repeat: null, position: null, attachment: null }, sm: { size: null, color: null, image: null, repeat: null, position: null, attachment: null }, md: { size: null, color: null, image: null, repeat: null, position: null, attachment: null }, lg: { size: null, color: null, image: null, repeat: null, position: null, attachment: null }, xl: { size: null, color: null, image: null, repeat: null, position: null, attachment: null } }, verticalAlign: null, style: { minHeight: 'auto' } } }]
+      sections: [{ data: { rows: [{ cols: [{ widgets: [{ name: 'AdminTicketList', options: { style: {}, defaultSourceType: 'DISCUSSION_CIRCLE' } }], options: { style: { paddingTop: '' } } }], options: { className: '', height: 'auto', boxed: true, boxedWidth: 1200, gutterXSize: 'md', gutterYSize: 'md', absolute: 'none', paddingOfBoxedInFullWidth: '30px', style: { maxWidth: '1200px', width: '1200px' } } }] }, options: { fullHeight: false, backgrounds: { xs: { size: null, color: null, image: null, repeat: null, position: null, attachment: null }, sm: { size: null, color: null, image: null, repeat: null, position: null, attachment: null }, md: { size: null, color: null, image: null, repeat: null, position: null, attachment: null }, lg: { size: null, color: null, image: null, repeat: null, position: null, attachment: null }, xl: { size: null, color: null, image: null, repeat: null, position: null, attachment: null } }, verticalAlign: null, style: { minHeight: 'auto' } } }]
     }
   },
   created() {

+ 1 - 9
src/router/routes.js

@@ -379,15 +379,7 @@ const routes = [
               { path: '', name: 'Admin.Content.List', component: () => import('src/pages/Admin/Content/List.vue') },
               { path: 'create', name: 'Admin.Content.Create', component: () => import('src/pages/Admin/Content/Create.vue') },
               { path: ':id', name: 'Admin.Content.Show', component: () => import('src/pages/Admin/Content/Show.vue') },
-              {
-                name: 'Admin.Content.Ticket',
-                meta: {
-                  hasDynamicSetting: true
-                },
-                path: 'ticket',
-                component: () => import('src/pages/Admin/Classroom/Ticket.vue'),
-                breadcrumbs: { title: 'درخواست ها دوره های آموزشی' }
-              }
+              { name: 'Admin.Content.Ticket', path: 'ticket', component: () => import('src/pages/Admin/Classroom/Ticket.vue'), breadcrumbs: { title: 'درخواست ها دوره های آموزشی' } }
             ]
           },
           {