|
@@ -5,7 +5,7 @@
|
|
|
</q-banner>
|
|
</q-banner>
|
|
|
<div class="content-list q-mt-lg">
|
|
<div class="content-list q-mt-lg">
|
|
|
<entity-index v-if="mounted"
|
|
<entity-index v-if="mounted"
|
|
|
- ref="entityIndexQuestions"
|
|
|
|
|
|
|
+ ref="entityIndexUsers"
|
|
|
v-model:value="inputs"
|
|
v-model:value="inputs"
|
|
|
:title="'لیست کاربران'"
|
|
:title="'لیست کاربران'"
|
|
|
:api="api"
|
|
:api="api"
|
|
@@ -17,9 +17,14 @@
|
|
|
@onPageChanged="onChangeQuestionListPage">
|
|
@onPageChanged="onChangeQuestionListPage">
|
|
|
<template #toolbar>
|
|
<template #toolbar>
|
|
|
<q-btn color="primary"
|
|
<q-btn color="primary"
|
|
|
|
|
+ class="q-mr-md"
|
|
|
|
|
+ outline
|
|
|
@click="selectAllAllowedUser">
|
|
@click="selectAllAllowedUser">
|
|
|
انتخاب تمام افراد مجاز
|
|
انتخاب تمام افراد مجاز
|
|
|
</q-btn>
|
|
</q-btn>
|
|
|
|
|
+ <q-btn color="primary"
|
|
|
|
|
+ icon="search"
|
|
|
|
|
+ @click="selectAllAllowedUser" />
|
|
|
</template>
|
|
</template>
|
|
|
<template #entity-index-table-cell="{inputData}">
|
|
<template #entity-index-table-cell="{inputData}">
|
|
|
<template v-if="inputData.col.name === 'choice'">
|
|
<template v-if="inputData.col.name === 'choice'">
|
|
@@ -94,6 +99,10 @@ export default {
|
|
|
pageKey: 'page'
|
|
pageKey: 'page'
|
|
|
},
|
|
},
|
|
|
inputs: [
|
|
inputs: [
|
|
|
|
|
+ { type: 'input', name: 'owner__national_code', value: null, label: 'کد ملی', placeholder: ' ', col: 'col-md-3 col-12' },
|
|
|
|
|
+ { type: 'input', name: 'owner__mobile_number', value: null, label: 'شماره همراه', placeholder: ' ', col: 'col-md-3 col-12' },
|
|
|
|
|
+ { type: 'input', name: 'owner__firstname', value: null, label: 'نام', placeholder: ' ', col: 'col-md-3 col-12' },
|
|
|
|
|
+ { type: 'input', name: 'owner__lastname', value: null, label: 'نام خانوادگی', placeholder: ' ', col: 'col-md-3 col-12' },
|
|
|
{ type: 'hidden', name: 'classroom', value: this.classroomId }
|
|
{ type: 'hidden', name: 'classroom', value: this.classroomId }
|
|
|
],
|
|
],
|
|
|
table: {
|
|
table: {
|
|
@@ -210,6 +219,9 @@ export default {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ searchList () {
|
|
|
|
|
+ this.$refs.entityIndexUsers.search()
|
|
|
|
|
+ },
|
|
|
emitValues () {
|
|
emitValues () {
|
|
|
this.localValue = this.selectedItems.map(item => item.id)
|
|
this.localValue = this.selectedItems.map(item => item.id)
|
|
|
},
|
|
},
|