Przeglądaj źródła

event test bug fix

ali 2 lat temu
rodzic
commit
fe0f0d6dbb

+ 1 - 1
src/components/Widgets/Classroom/ClassroomShow/ClassroomShow.vue

@@ -209,7 +209,7 @@ import { SessionAttendanceSheets } from 'src/models/SessionAttendanceSheets.js'
 import ShowClassroomInfo from 'src/components/Widgets/Other/ShowClassroomInfo/ShowClassroomInfo.vue'
 
 export default {
-  name: 'UserPanel.Profile.ClassroomInfo',
+  name: 'ClassroomShow',
   components: {
     EntityIndex,
     Breadcrumbs,

+ 1 - 1
src/components/Widgets/Other/ShowClassroomInfo/ShowClassroomInfo.vue

@@ -356,7 +356,7 @@ export default {
     },
     acceptAndContinue () {
       this.$store.commit('Shop/updateOnRegisterClassroom', this.classroom)
-      this.$router.push({ name: 'UserPanel.ShopCompleteInfo', query: { type: this.acceptClassType } })
+      this.$router.push({ name: 'UserPanel.ShopCompleteInfo', query: { type: this.acceptClassType, source: this.classroomType === 'EVENT' ? 'event' : 'classroom' } })
     },
     onEnrolment () {
       this.acceptClassType = 'enrollment'

+ 2 - 2
src/components/Widgets/TestSet/AdminEventTestSetIndex/AdminEventTestSetIndex.vue

@@ -106,11 +106,11 @@ export default {
             field: row => row.title
           },
           {
-            name: 'test_questions.length',
+            name: 'test_set_questions.length',
             required: true,
             label: 'تعداد سوالات',
             align: 'left',
-            field: row => row.test_questions.length
+            field: row => row.test_set_questions.length
           },
           {
             name: 'beginning_time',

+ 2 - 2
src/components/Widgets/TestSet/AdminTestSetIndex/AdminTestSetIndex.vue

@@ -96,11 +96,11 @@ export default {
             field: row => row.title
           },
           {
-            name: 'test_questions.length',
+            name: 'test_set_questions.length',
             required: true,
             label: 'تعداد سوالات',
             align: 'left',
-            field: row => row.test_questions.length
+            field: row => row.test_set_questions.length
           },
           {
             name: 'level',

+ 1 - 1
src/pages/User/Profile/EventInfo.vue

@@ -13,7 +13,7 @@ export default {
   mixins: [mixinPageOptions],
   data: () => {
     return {
-      sections: [{ data: { rows: [{ cols: [{ widgets: [{ name: 'ClassroomShow', options: { style: {}, classroomType: 'EVENT' } }], options: { style: { paddingTop: '' } } }], options: { className: '', height: 'auto', boxed: true, boxedWidth: 1200, gutterXSize: 'md', gutterYSize: 'md', absolute: 'none', paddingOfBoxedInFullWidth: '10px', alignment: { justifyContent: { global: null, xl: null, lg: null, md: null, sm: null, xs: null }, alignItems: { global: null, xl: null, lg: null, md: null, sm: null, xs: null }, alignContent: { global: null, xl: null, lg: null, md: null, sm: null, xs: null } }, style: { maxWidth: '1200px', width: '1200px' } } }] } }]
+      sections: [{ data: { rows: [{ cols: [{ widgets: [{ name: 'ClassroomShow', options: { classroomType: 'EVENT' } }] }], options: { height: 'auto', boxed: true, boxedWidth: 1200, gutterXSize: 'md', gutterYSize: 'md', absolute: 'none', paddingOfBoxedInFullWidth: '10px', style: { maxWidth: '1200px', width: '1200px' } } }] } }]
     }
   },
   created() {