filter ทะเบียนประวัติ
This commit is contained in:
parent
bd64e91628
commit
8db24538e0
4 changed files with 25 additions and 24 deletions
|
|
@ -237,6 +237,7 @@ function selectType() {
|
|||
if (store.formFilter.type != empType.value) {
|
||||
store.labelOption.posType = "ทั้งหมด";
|
||||
store.labelOption.posLevel = "ทั้งหมด";
|
||||
store.labelOption.sortName = "ลำดับการแสดงผล";
|
||||
store.formFilter.type = empType.value;
|
||||
store.formFilter.dateAppoint = "";
|
||||
store.labelOption.node =
|
||||
|
|
@ -299,6 +300,7 @@ function selectRetireType(item: DataOption) {
|
|||
}
|
||||
|
||||
function selectDisplayOrderType(item: DataOption) {
|
||||
store.labelOption.sortName = item.name;
|
||||
store.formFilter.page = 1;
|
||||
store.formFilter.dateAppoint = item.id;
|
||||
fetchDataPerson();
|
||||
|
|
@ -755,15 +757,7 @@ onMounted(async () => {
|
|||
class="q-px-sm"
|
||||
>
|
||||
<template v-slot:label>
|
||||
{{
|
||||
`ลำดับการแสดผล ${
|
||||
store.formFilter.dateAppoint
|
||||
? store.formFilter.dateAppoint === "ASC"
|
||||
? "เก่า-ล่าสุด"
|
||||
: "ล่าสุด-เก่า"
|
||||
: ""
|
||||
}`
|
||||
}}
|
||||
{{ store.labelOption.sortName }}
|
||||
</template>
|
||||
<q-list>
|
||||
<q-item
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue