瀏覽代碼

show codes

ali 3 年之前
父節點
當前提交
cae89020f5

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

@@ -86,7 +86,7 @@
                    outline
                    color="primary"
                    class="btn-register q-ml-md"
-                   @click="openRulesDialog">
+                   @click="openCodeLink">
               آیین نامه دوره
             </q-btn>
           </div>
@@ -376,6 +376,9 @@ export default {
       this.acceptClassType = 'rules'
       this.rulesDialog = true
     },
+    openCodeLink () {
+      window.open(this.classroom.codes)
+    },
     openRegisterDialog () {
       this.acceptClassType = 'register'
       this.rulesDialog = true

+ 1 - 0
src/models/Classroom.js

@@ -39,6 +39,7 @@ class Classroom extends Model {
       },
       { key: 'audience_role' },
       { key: 'price' },
+      { key: 'codes' },
       { key: 'capacity' },
       { key: 'used_capacity' },
       { key: 'allowed_absence_count' },

+ 1 - 0
src/pages/Admin/Classroom/create.vue

@@ -61,6 +61,7 @@ export default {
       inputs: [
         { type: 'separator', name: 'space', label: 'مشخصات دوره', className: 'custom-separator', col: 'col-12' },
         { type: 'file', name: 'thumbnail', responseKey: 'thumbnail', label: 'آپلود عکس دوره', col: 'col-md-3 col-12' },
+        { type: 'file', name: 'codes', responseKey: 'codes', label: 'آیین نامه دوره', col: 'col-md-3 col-12' },
         { type: 'separator', name: 'space', size: '0', col: 'col-md-12' },
         { type: 'select', name: 'category', responseKey: 'unit_info.category', options: [], value: null, placeholder: ' ', label: 'دسته بندی', col: 'col-md-3 col-12' },
         { type: 'select', name: 'unit', responseKey: 'unit', options: [], value: null, placeholder: ' ', label: 'درس', col: 'col-md-3 col-12' },

+ 1 - 0
src/pages/Admin/Classroom/show.vue

@@ -302,6 +302,7 @@ export default {
       inputs: [
         { type: 'separator', name: 'space', label: 'مشخصات دوره', className: 'custom-separator', col: 'col-12' },
         { type: 'file', name: 'thumbnail', responseKey: 'thumbnail', label: 'آپلود عکس دوره', col: 'col-md-3 col-12' },
+        { type: 'file', name: 'codes', responseKey: 'codes', label: 'آیین نامه دوره', col: 'col-md-3 col-12' },
         { type: 'separator', name: 'space', size: '0', col: 'col-md-12' },
         { type: 'select', name: 'category', responseKey: 'unit_info.category_info.id', options: [], value: null, placeholder: ' ', label: 'دسته بندی', col: 'col-md-3 col-12' },
         { type: 'select', name: 'unit', responseKey: 'unit', options: [], value: null, placeholder: ' ', label: 'درس', col: 'col-md-3 col-12' },

+ 1 - 0
src/pages/Admin/DiscussionCirclesClassroom/create.vue

@@ -61,6 +61,7 @@ export default {
       inputs: [
         { type: 'separator', name: 'space', label: 'مشخصات حلقه', className: 'custom-separator', col: 'col-12' },
         { type: 'file', name: 'thumbnail', responseKey: 'thumbnail', label: 'آپلود عکس حلقه', col: 'col-md-3 col-12' },
+        { type: 'file', name: 'codes', responseKey: 'codes', label: 'آیین نامه دوره', col: 'col-md-3 col-12' },
         { type: 'separator', name: 'space', size: '0', col: 'col-md-12' },
         { type: 'select', name: 'category', responseKey: 'unit_info.category', options: [], value: null, placeholder: ' ', label: 'دسته بندی', col: 'col-md-3 col-12' },
         { type: 'select', name: 'unit', responseKey: 'unit', options: [], value: null, placeholder: ' ', label: 'درس', col: 'col-md-3 col-12' },

+ 1 - 0
src/pages/Admin/DiscussionCirclesClassroom/show.vue

@@ -223,6 +223,7 @@ export default {
       inputs: [
         { type: 'separator', name: 'space', label: 'مشخصات دوره', className: 'custom-separator', col: 'col-12' },
         { type: 'file', name: 'thumbnail', responseKey: 'thumbnail', label: 'آپلود عکس دوره', col: 'col-md-3 col-12' },
+        { type: 'file', name: 'codes', responseKey: 'codes', label: 'آیین نامه دوره', col: 'col-md-3 col-12' },
         { type: 'separator', name: 'space', size: '0', col: 'col-md-12' },
         { type: 'select', name: 'category', responseKey: 'unit_info.category_info.id', options: [], value: null, placeholder: ' ', label: 'دسته بندی', col: 'col-md-3 col-12' },
         { type: 'select', name: 'unit', responseKey: 'unit', options: [], value: null, placeholder: ' ', label: 'درس', col: 'col-md-3 col-12' },