select insigia
This commit is contained in:
parent
168b17da44
commit
c102d3bb66
4 changed files with 8 additions and 8 deletions
|
|
@ -581,9 +581,9 @@ const closeModalEdit = () => {
|
||||||
:options="organizationOptions" option-value="id" option-label="name" lazy-rules hide-bottom-space
|
:options="organizationOptions" option-value="id" option-label="name" lazy-rules hide-bottom-space
|
||||||
:readonly="false" :borderless="false" :outlined="true" :hide-dropdown-icon="false" style="min-width: 150px"
|
:readonly="false" :borderless="false" :outlined="true" :hide-dropdown-icon="false" style="min-width: 150px"
|
||||||
@update:model-value="changtypeOc" />
|
@update:model-value="changtypeOc" />
|
||||||
<q-select v-model="DataStore.typeinsignia" label="ปรเภทเครื่องราชฯ" dense emit-value map-options
|
<q-select v-model="DataStore.typeinsignia" label="ปรเภทเครื่องราชฯ ที่ยืนขอ" dense emit-value map-options
|
||||||
:options="DataStore.typeinsigniaOptions" option-value="id" option-label="name" lazy-rules hide-bottom-space
|
:options="DataStore.typeinsigniaOptions" option-value="id" option-label="name" lazy-rules hide-bottom-space
|
||||||
:readonly="false" :borderless="false" :outlined="true" :hide-dropdown-icon="false" style="min-width: 150px"
|
:readonly="false" :borderless="false" :outlined="true" :hide-dropdown-icon="false" style="min-width: 180px"
|
||||||
@update:model-value="
|
@update:model-value="
|
||||||
DataStore.searchDataTable(
|
DataStore.searchDataTable(
|
||||||
DataStore.typeinsignia,
|
DataStore.typeinsignia,
|
||||||
|
|
|
||||||
|
|
@ -233,7 +233,7 @@ const closeReson = () => {
|
||||||
/>
|
/>
|
||||||
<q-select
|
<q-select
|
||||||
v-model="DataStore.typeinsignia"
|
v-model="DataStore.typeinsignia"
|
||||||
label="ปรเภทเครื่องราชฯ"
|
label="ปรเภทเครื่องราชฯ ที่ยืนขอ"
|
||||||
dense
|
dense
|
||||||
emit-value
|
emit-value
|
||||||
map-options
|
map-options
|
||||||
|
|
@ -246,7 +246,7 @@ const closeReson = () => {
|
||||||
:borderless="false"
|
:borderless="false"
|
||||||
:outlined="true"
|
:outlined="true"
|
||||||
:hide-dropdown-icon="false"
|
:hide-dropdown-icon="false"
|
||||||
style="min-width: 150px"
|
style="min-width: 180px"
|
||||||
@update:model-value="
|
@update:model-value="
|
||||||
DataStore.searchDataTable(
|
DataStore.searchDataTable(
|
||||||
DataStore.typeinsignia,
|
DataStore.typeinsignia,
|
||||||
|
|
|
||||||
|
|
@ -231,7 +231,7 @@ const closeReson = () => {
|
||||||
/>
|
/>
|
||||||
<q-select
|
<q-select
|
||||||
v-model="DataStore.typeinsignia"
|
v-model="DataStore.typeinsignia"
|
||||||
label="ปรเภทเครื่องราชฯ"
|
label="ปรเภทเครื่องราชฯ ที่ยืนขอ"
|
||||||
dense
|
dense
|
||||||
emit-value
|
emit-value
|
||||||
map-options
|
map-options
|
||||||
|
|
@ -244,7 +244,7 @@ const closeReson = () => {
|
||||||
:borderless="false"
|
:borderless="false"
|
||||||
:outlined="true"
|
:outlined="true"
|
||||||
:hide-dropdown-icon="false"
|
:hide-dropdown-icon="false"
|
||||||
style="min-width: 150px"
|
style="min-width: 180px"
|
||||||
@update:model-value="
|
@update:model-value="
|
||||||
DataStore.searchDataTable(
|
DataStore.searchDataTable(
|
||||||
DataStore.typeinsignia,
|
DataStore.typeinsignia,
|
||||||
|
|
|
||||||
|
|
@ -85,9 +85,9 @@ export const useInsigniaDataStore = defineStore("insignia", () => {
|
||||||
};
|
};
|
||||||
const searchDataTable = async (type: string, employeeClass: string) => {
|
const searchDataTable = async (type: string, employeeClass: string) => {
|
||||||
if (type !== 'all' && employeeClass !== 'all') {
|
if (type !== 'all' && employeeClass !== 'all') {
|
||||||
rows.value = listinsignia.value.filter((e: any) => e.insigniaType === type && e.employeeType === profileType(employeeClass))
|
rows.value = listinsignia.value.filter((e: any) => e.insigniaSend === type && e.employeeType === profileType(employeeClass))
|
||||||
} else if (type !== 'all' && employeeClass === 'all') {
|
} else if (type !== 'all' && employeeClass === 'all') {
|
||||||
rows.value = listinsignia.value.filter((e: any) => e.insigniaType === type)
|
rows.value = listinsignia.value.filter((e: any) => e.insigniaSend === type)
|
||||||
} else if (type === 'all' && employeeClass !== 'all') {
|
} else if (type === 'all' && employeeClass !== 'all') {
|
||||||
rows.value = listinsignia.value.filter((e: any) => e.employeeType === profileType(employeeClass))
|
rows.value = listinsignia.value.filter((e: any) => e.employeeType === profileType(employeeClass))
|
||||||
} else if (type === 'all' && employeeClass === 'all') {
|
} else if (type === 'all' && employeeClass === 'all') {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue