|
@@ -72,7 +72,7 @@
|
|
|
class="classroom-item"
|
|
class="classroom-item"
|
|
|
:class="{'isRegistered' : isClassroomRegistered(classroom.id) }">
|
|
:class="{'isRegistered' : isClassroomRegistered(classroom.id) }">
|
|
|
<q-card-section class="thumbnail">
|
|
<q-card-section class="thumbnail">
|
|
|
- <router-link :to="{name: 'UserPanel.ShowClassroomInfo', params: {id: classroom.id}}">
|
|
|
|
|
|
|
+ <router-link :to="{name: 'Public.ShowClassroomInfo', params: {id: classroom.id}}">
|
|
|
<div class="RegisteredSign">
|
|
<div class="RegisteredSign">
|
|
|
<svg class="ribbon"
|
|
<svg class="ribbon"
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -123,7 +123,7 @@
|
|
|
</router-link>
|
|
</router-link>
|
|
|
</q-card-section>
|
|
</q-card-section>
|
|
|
<q-card-section class="title">
|
|
<q-card-section class="title">
|
|
|
- <router-link :to="{name: 'UserPanel.ShowClassroomInfo', params: {id: classroom.id}}">
|
|
|
|
|
|
|
+ <router-link :to="{name: 'Public.ShowClassroomInfo', params: {id: classroom.id}}">
|
|
|
{{classroom.title}}
|
|
{{classroom.title}}
|
|
|
</router-link>
|
|
</router-link>
|
|
|
</q-card-section>
|
|
</q-card-section>
|
|
@@ -191,7 +191,7 @@
|
|
|
<q-card-actions class="action-section">
|
|
<q-card-actions class="action-section">
|
|
|
<q-btn color="primary"
|
|
<q-btn color="primary"
|
|
|
class="btn-show-classroom"
|
|
class="btn-show-classroom"
|
|
|
- :to="{name: 'UserPanel.ShowClassroomInfo', params: {id: classroom.id}}">
|
|
|
|
|
|
|
+ :to="{name: 'Public.ShowClassroomInfo', params: {id: classroom.id}}">
|
|
|
مشاهده و ثبت نام
|
|
مشاهده و ثبت نام
|
|
|
<svg xmlns="http://www.w3.org/2000/svg"
|
|
<svg xmlns="http://www.w3.org/2000/svg"
|
|
|
width="18.387"
|
|
width="18.387"
|
|
@@ -403,7 +403,7 @@ export default {
|
|
|
this.userRegistrations.loading = true
|
|
this.userRegistrations.loading = true
|
|
|
APIGateway.classroomRegistration.index()
|
|
APIGateway.classroomRegistration.index()
|
|
|
.then((classroomRegistrationList) => {
|
|
.then((classroomRegistrationList) => {
|
|
|
- this.userRegistrations = new ClassroomRegistrationList(classroomRegistrationList)
|
|
|
|
|
|
|
+ this.userRegistrations = new ClassroomRegistrationList(classroomRegistrationList.list)
|
|
|
this.classroomsKey = Date.now()
|
|
this.classroomsKey = Date.now()
|
|
|
this.userRegistrations.loading = false
|
|
this.userRegistrations.loading = false
|
|
|
})
|
|
})
|
|
@@ -462,7 +462,7 @@ export default {
|
|
|
this.classrooms.loading = true
|
|
this.classrooms.loading = true
|
|
|
APIGateway.classroom.index({ per_page: 9999 })
|
|
APIGateway.classroom.index({ per_page: 9999 })
|
|
|
.then(classroomList => {
|
|
.then(classroomList => {
|
|
|
- this.classrooms = new ClassroomList(classroomList)
|
|
|
|
|
|
|
+ this.classrooms = new ClassroomList(classroomList.list)
|
|
|
this.classrooms.loading = false
|
|
this.classrooms.loading = false
|
|
|
})
|
|
})
|
|
|
.catch(() => {
|
|
.catch(() => {
|
|
@@ -474,7 +474,7 @@ export default {
|
|
|
APIGateway.unitCategory.index()
|
|
APIGateway.unitCategory.index()
|
|
|
.then(unitCategoryList => {
|
|
.then(unitCategoryList => {
|
|
|
this.categories.loading = false
|
|
this.categories.loading = false
|
|
|
- this.categories = new UnitCategoryList(unitCategoryList)
|
|
|
|
|
|
|
+ this.categories = new UnitCategoryList(unitCategoryList.list)
|
|
|
})
|
|
})
|
|
|
.catch(() => {
|
|
.catch(() => {
|
|
|
this.categories.loading = false
|
|
this.categories.loading = false
|
|
@@ -489,7 +489,7 @@ export default {
|
|
|
APIGateway.unit.index({ category: categoryId })
|
|
APIGateway.unit.index({ category: categoryId })
|
|
|
.then(unitList => {
|
|
.then(unitList => {
|
|
|
this.units.loading = false
|
|
this.units.loading = false
|
|
|
- this.units = new UnitList(unitList)
|
|
|
|
|
|
|
+ this.units = new UnitList(unitList.list)
|
|
|
})
|
|
})
|
|
|
.catch(() => {
|
|
.catch(() => {
|
|
|
this.units.loading = false
|
|
this.units.loading = false
|