|
|
@@ -57,6 +57,7 @@ import Assist from 'src/assets/js/Assist.js'
|
|
|
import { APIGateway } from 'src/api/APIGateway.js'
|
|
|
import BtnControl from 'src/components/Control/btn.vue'
|
|
|
import DeleteBtn from 'src/components/Control/DeleteBtn.vue'
|
|
|
+import Enums from 'assets/Enums/Enums'
|
|
|
|
|
|
const BtnControlComp = shallowRef(BtnControl)
|
|
|
|
|
|
@@ -71,13 +72,15 @@ export default {
|
|
|
mounted: false,
|
|
|
exportReportLoading: false,
|
|
|
inputs: [
|
|
|
- { type: 'input', name: 'id', value: null, label: 'شناسه', placeholder: ' ', col: 'col-md-4 col-12' },
|
|
|
- { type: 'input', name: 'national_code', value: null, label: 'کد ملی', placeholder: ' ', col: 'col-md-4 col-12' },
|
|
|
- { type: 'input', name: 'mobile_number', value: null, label: 'شماره همراه', placeholder: ' ', col: 'col-md-4 col-12' },
|
|
|
+ { type: 'input', name: 'id', value: null, label: 'شناسه', placeholder: ' ', col: 'col-md-3 col-12' },
|
|
|
+ { type: 'input', name: 'firstname__contains', value: null, label: 'نام', placeholder: ' ', col: 'col-md-3 col-12' },
|
|
|
+ { type: 'input', name: 'lastname__contains', value: null, label: 'نام خانوادگی', placeholder: ' ', col: 'col-md-3 col-12' },
|
|
|
+ { type: 'input', name: 'national_code', value: null, label: 'کد ملی', placeholder: ' ', col: 'col-md-3 col-12' },
|
|
|
+ { type: 'input', name: 'mobile_number', value: null, label: 'شماره همراه', placeholder: ' ', col: 'col-md-3 col-12' },
|
|
|
{ type: 'input', name: 'email', value: null, label: 'ایمیل', placeholder: ' ', col: 'col-md-3 col-12' },
|
|
|
- { type: 'input', name: 'firstname', value: null, label: 'نام', placeholder: ' ', col: 'col-md-3 col-12' },
|
|
|
- { type: 'input', name: 'lastname', value: null, label: 'نام خانوادگی', placeholder: ' ', col: 'col-md-3 col-12' },
|
|
|
- { type: BtnControlComp, name: 'btn', responseKey: 'btn', label: 'جستجو', placeholder: ' ', atClick: () => {}, col: 'col-md-3 col-12' }
|
|
|
+ { type: 'input', name: 'search', label: 'جست جو', placeholder: ' ', col: 'col-md-3 col-12' },
|
|
|
+ { type: 'select', name: 'role', value: null, label: 'نقش', placeholder: ' ', options: Enums.groups, col: 'col-md-3 col-12' },
|
|
|
+ { type: BtnControlComp, name: 'btn', responseKey: 'btn', label: 'جستجو', placeholder: ' ', atClick: () => {}, col: 'col-md-2 col-12' }
|
|
|
],
|
|
|
api: APIGateway.user.APIAdresses.base,
|
|
|
table: {
|