浏览代码

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

hgh 1 年之前
父节点
当前提交
5e344a36e2

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

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

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

@@ -1,5 +1,15 @@
 <template>
   <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"
                 ref="entityIndex"
                 v-model:value="inputs"
@@ -68,12 +78,14 @@ import { mixinAuth, mixinWidget } from 'src/mixin/Mixins.js'
 import EntityIndexGridItem from 'src/components/EntityIndexGridItem.vue'
 import Breadcrumbs from 'src/components/Widgets/Breadcrumbs/Breadcrumbs.vue'
 import { TranscriptSheet } from 'src/models/TranscriptSheet'
+import FormBuilderBarCode from 'src/components/FormBuilderCustumComponents/FormBuilderBarCode.vue'
 
 const BtnControlComp = shallowRef(BtnControl)
 
 export default {
   name: 'UserPanel.Profile.AllClassrooms',
   components: {
+    FormBuilderBarCode,
     EntityIndex,
     Breadcrumbs,
     EntityIndexGridItem
@@ -82,6 +94,7 @@ export default {
   data () {
     return {
       mounted: false,
+      national_code: null,
       inputs: [
         {
           type: 'select',
@@ -261,6 +274,7 @@ export default {
     },
     setOwner () {
       const user = this.$store.getters['Auth/user']
+      this.national_code = user.national_code
       FormBuilderAssist.setAttributeByName(this.inputs, 'owner', 'value', user.id)
     },
     setActionBtn () {
@@ -358,6 +372,9 @@ export default {
 </script>
 
 <style scoped lang="scss">
+.barcode-section{
+  margin-bottom: 8px;
+}
 .CLEAN_PASSED {
   //font-size: 1.1em;
   color: green;

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

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