เพิ่ม select สถานภาพ
This commit is contained in:
parent
287ef3c598
commit
cf8bdb7ce0
6 changed files with 90 additions and 16 deletions
|
|
@ -283,6 +283,19 @@ const selectorInsignia = async () => {
|
|||
? dataCopy.filter((x: any) => x.requestInsigniaId == DataStore.insignia)
|
||||
: dataCopy;
|
||||
};
|
||||
const selectEmployeeClass = async (employeeClass: string) => {
|
||||
if (employeeClass == "officer") {
|
||||
let list = DataStore.listInsignia.filter(
|
||||
(e: any) => e.employeeType === "ข้าราชการ กทม.สามัญ"
|
||||
);
|
||||
rows.value = list;
|
||||
} else if (employeeClass === "perm") {
|
||||
let list = DataStore.listInsignia.filter(
|
||||
(e: any) => e.employeeType === "ลูกจ้างประจำ"
|
||||
);
|
||||
rows.value = list;
|
||||
} else rows.value = DataStore.listInsignia;
|
||||
};
|
||||
|
||||
const yearRound = ref<number>();
|
||||
const selectorRound = async (round: number) => {
|
||||
|
|
@ -403,6 +416,27 @@ const resetFilter = () => {
|
|||
@update:model-value="selectorInsignia"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<q-select
|
||||
v-model="DataStore.employeeClass"
|
||||
dense
|
||||
outlined
|
||||
lazy-rules
|
||||
hide-bottom-space
|
||||
:label="`${'สถานภาพ'}`"
|
||||
emit-value
|
||||
map-options
|
||||
option-label="name"
|
||||
:options="DataStore.employeeClassOps"
|
||||
option-value="id"
|
||||
:readonly="false"
|
||||
:borderless="false"
|
||||
style="min-width: 150px"
|
||||
@update:model-value="
|
||||
selectEmployeeClass(DataStore.employeeClass)
|
||||
"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<q-btn
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue