|
@@ -1,11 +1,11 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="AdminSessionTemplateQuestionList"
|
|
<div class="AdminSessionTemplateQuestionList"
|
|
|
:style="localOptions.style">
|
|
:style="localOptions.style">
|
|
|
- <q-skeleton v-if="mounted"
|
|
|
|
|
- type="text"
|
|
|
|
|
- width="200px" />
|
|
|
|
|
- <breadcrumbs v-else
|
|
|
|
|
- style="margin-top: 29px; margin-bottom: 19px;" />
|
|
|
|
|
|
|
+ <!-- <q-skeleton v-if="mounted"-->
|
|
|
|
|
+ <!-- type="text"-->
|
|
|
|
|
+ <!-- width="200px" />-->
|
|
|
|
|
+ <!-- <breadcrumbs v-else-->
|
|
|
|
|
+ <!-- style="margin-top: 29px; margin-bottom: 19px;" />-->
|
|
|
<div class="flex justify-end q-mb-md">
|
|
<div class="flex justify-end q-mb-md">
|
|
|
<q-btn label="ایجاد سوال جدید"
|
|
<q-btn label="ایجاد سوال جدید"
|
|
|
color="primary"
|
|
color="primary"
|
|
@@ -38,7 +38,7 @@
|
|
|
outline
|
|
outline
|
|
|
round
|
|
round
|
|
|
icon="drive_file_rename_outline"
|
|
icon="drive_file_rename_outline"
|
|
|
- :to="{name: 'Admin.Category.Show', params: {id: inputData.props.row.id}}"
|
|
|
|
|
|
|
+ :to="{ name: 'Admin.Unit.Questions.Show', params: { session_template_id: this.$route.params.session_template_id, id: inputData.props.row.id } }"
|
|
|
class="q-mr-md" />
|
|
class="q-mr-md" />
|
|
|
<delete-btn @click="showConfirmRemoveDialog(inputData.props.row, 'id', getRemoveMessage(inputData.props.row))" />
|
|
<delete-btn @click="showConfirmRemoveDialog(inputData.props.row, 'id', getRemoveMessage(inputData.props.row))" />
|
|
|
</div>
|
|
</div>
|
|
@@ -57,11 +57,15 @@ import { Question } from 'src/models/Question.js'
|
|
|
import { mixinWidget } from 'src/mixin/Mixins.js'
|
|
import { mixinWidget } from 'src/mixin/Mixins.js'
|
|
|
import { APIGateway } from 'src/api/APIGateway.js'
|
|
import { APIGateway } from 'src/api/APIGateway.js'
|
|
|
import DeleteBtn from 'src/components/Control/DeleteBtn.vue'
|
|
import DeleteBtn from 'src/components/Control/DeleteBtn.vue'
|
|
|
-import Breadcrumbs from 'src/components/Widgets/Breadcrumbs/Breadcrumbs.vue'
|
|
|
|
|
|
|
+// import Breadcrumbs from 'src/components/Widgets/Breadcrumbs/Breadcrumbs.vue'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: 'AdminSessionTemplateQuestionList',
|
|
name: 'AdminSessionTemplateQuestionList',
|
|
|
- components: { EntityIndex, Breadcrumbs, DeleteBtn },
|
|
|
|
|
|
|
+ components: {
|
|
|
|
|
+ EntityIndex,
|
|
|
|
|
+ // Breadcrumbs,
|
|
|
|
|
+ DeleteBtn
|
|
|
|
|
+ },
|
|
|
mixins: [mixinWidget],
|
|
mixins: [mixinWidget],
|
|
|
data () {
|
|
data () {
|
|
|
return {
|
|
return {
|
|
@@ -74,8 +78,8 @@ export default {
|
|
|
pageKey: 'page'
|
|
pageKey: 'page'
|
|
|
},
|
|
},
|
|
|
inputs: [
|
|
inputs: [
|
|
|
- // { type: 'hidden', name: 'type', value: 'QUESTION_BANK' },
|
|
|
|
|
- // { type: 'hidden', name: 'session_template_questions__session_template', value: this.$route.params.session_template_id }
|
|
|
|
|
|
|
+ { type: 'hidden', name: 'type', value: 'QUESTION_BANK' },
|
|
|
|
|
+ { type: 'hidden', name: 'session_template_questions__session_template', value: this.$route.params.session_template_id }
|
|
|
],
|
|
],
|
|
|
table: {
|
|
table: {
|
|
|
columns: [
|
|
columns: [
|