Explorar o código

با ورود به صفحه حساب کاربری، جدول دوره‌های من نمایش داده شود. (ممکن است با این تغییر محل دیگری برای بارکد در نظر گرفته شود. میشه بالای لیست دوره‌ها باشه؟)

hgh hai 1 ano
pai
achega
5e344a36e2

+ 2 - 2
src/components/Template/Header/MainHeader.vue

@@ -174,7 +174,7 @@
             <q-list>
             <q-list>
               <q-item v-close-popup
               <q-item v-close-popup
                       clickable
                       clickable
-                      :to="{ name: 'UserPanel.Profile.UserInfo' }">
+                      :to="{ name: 'UserPanel.Profile.AllClassrooms' }">
                 <q-item-section>
                 <q-item-section>
                   پنل کاربری
                   پنل کاربری
                 </q-item-section>
                 </q-item-section>
@@ -293,7 +293,7 @@ export default {
       if (this.canSeeAdminPanel) {
       if (this.canSeeAdminPanel) {
         // this.$router.push({ name: 'Admin.User.Index' })
         // this.$router.push({ name: 'Admin.User.Index' })
       } else {
       } else {
-        this.$router.push({ name: 'UserPanel.Profile.UserInfo' })
+        this.$router.push({ name: 'UserPanel.Profile.AllClassrooms' })
       }
       }
     },
     },
     goToHome () {
     goToHome () {

+ 17 - 0
src/components/Widgets/Classroom/ClassroomList/ClassroomList.vue

@@ -1,5 +1,15 @@
 <template>
 <template>
   <breadcrumbs style="margin-top: 29px; margin-bottom: 19px;" />
   <breadcrumbs style="margin-top: 29px; margin-bottom: 19px;" />
+  <template v-if="mounted">
+    <q-card class="barcode-section">
+      <q-card-section>
+        شناسه ورود به جلسه
+      </q-card-section>
+      <q-separator />
+      <form-builder-bar-code lable=""
+                             :value="this.national_code" />
+    </q-card>
+  </template>
   <entity-index v-if="mounted"
   <entity-index v-if="mounted"
                 ref="entityIndex"
                 ref="entityIndex"
                 v-model:value="inputs"
                 v-model:value="inputs"
@@ -68,12 +78,14 @@ import { mixinAuth, mixinWidget } from 'src/mixin/Mixins.js'
 import EntityIndexGridItem from 'src/components/EntityIndexGridItem.vue'
 import EntityIndexGridItem from 'src/components/EntityIndexGridItem.vue'
 import Breadcrumbs from 'src/components/Widgets/Breadcrumbs/Breadcrumbs.vue'
 import Breadcrumbs from 'src/components/Widgets/Breadcrumbs/Breadcrumbs.vue'
 import { TranscriptSheet } from 'src/models/TranscriptSheet'
 import { TranscriptSheet } from 'src/models/TranscriptSheet'
+import FormBuilderBarCode from 'src/components/FormBuilderCustumComponents/FormBuilderBarCode.vue'
 
 
 const BtnControlComp = shallowRef(BtnControl)
 const BtnControlComp = shallowRef(BtnControl)
 
 
 export default {
 export default {
   name: 'UserPanel.Profile.AllClassrooms',
   name: 'UserPanel.Profile.AllClassrooms',
   components: {
   components: {
+    FormBuilderBarCode,
     EntityIndex,
     EntityIndex,
     Breadcrumbs,
     Breadcrumbs,
     EntityIndexGridItem
     EntityIndexGridItem
@@ -82,6 +94,7 @@ export default {
   data () {
   data () {
     return {
     return {
       mounted: false,
       mounted: false,
+      national_code: null,
       inputs: [
       inputs: [
         {
         {
           type: 'select',
           type: 'select',
@@ -261,6 +274,7 @@ export default {
     },
     },
     setOwner () {
     setOwner () {
       const user = this.$store.getters['Auth/user']
       const user = this.$store.getters['Auth/user']
+      this.national_code = user.national_code
       FormBuilderAssist.setAttributeByName(this.inputs, 'owner', 'value', user.id)
       FormBuilderAssist.setAttributeByName(this.inputs, 'owner', 'value', user.id)
     },
     },
     setActionBtn () {
     setActionBtn () {
@@ -358,6 +372,9 @@ export default {
 </script>
 </script>
 
 
 <style scoped lang="scss">
 <style scoped lang="scss">
+.barcode-section{
+  margin-bottom: 8px;
+}
 .CLEAN_PASSED {
 .CLEAN_PASSED {
   //font-size: 1.1em;
   //font-size: 1.1em;
   color: green;
   color: green;

+ 2 - 2
src/router/routes/UserPanel.js

@@ -86,7 +86,7 @@ export default {
           component: () => import('src/pages/User/Profile/classrooms.vue'),
           component: () => import('src/pages/User/Profile/classrooms.vue'),
           meta: {
           meta: {
             breadcrumbs: {
             breadcrumbs: {
-              visible: true,
+              visible: false,
               loading: false,
               loading: false,
               path: [
               path: [
                 {
                 {
@@ -120,7 +120,7 @@ export default {
           component: () => import('src/pages/User/Profile/Events.vue'),
           component: () => import('src/pages/User/Profile/Events.vue'),
           meta: {
           meta: {
             breadcrumbs: {
             breadcrumbs: {
-              visible: true,
+              visible: false,
               loading: false,
               loading: false,
               path: [
               path: [
                 {
                 {