Merge branch 'feat/report-registry' into develop
This commit is contained in:
commit
c7242810f2
1 changed files with 61 additions and 0 deletions
|
|
@ -82,6 +82,14 @@ const positionExecutive = ref<string>(""); //ตำแหน่งทางก
|
||||||
const executiveOps = ref<DataOption[]>([]); //ตัวเลือกรายการตำแหน่งทางการบริหาร
|
const executiveOps = ref<DataOption[]>([]); //ตัวเลือกรายการตำแหน่งทางการบริหาร
|
||||||
const executiveOpsMain = ref<DataOption[]>([]); //ตัวเลือกรายการตำแหน่งทางการบริหาร
|
const executiveOpsMain = ref<DataOption[]>([]); //ตัวเลือกรายการตำแหน่งทางการบริหาร
|
||||||
|
|
||||||
|
const holdPosition = ref<string>(""); //ตำแหน่งทางการบริหาร
|
||||||
|
const holdPositionOps = ref<DataOption[]>([]); //ตัวเลือกการครองตำแหน่ง
|
||||||
|
const holdPositionOpsMain = ref<DataOption[]>([
|
||||||
|
{ id: "", name: "ทั้งหมด" },
|
||||||
|
{ id: "hold", name: "ครอง" },
|
||||||
|
{ id: "not-hold", name: "ไม่ครอง" },
|
||||||
|
]); //ตัวเลือกการครองตำแหน่ง
|
||||||
|
|
||||||
/** สภานภาพ */
|
/** สภานภาพ */
|
||||||
const gender = ref<string>(""); //เพศ
|
const gender = ref<string>(""); //เพศ
|
||||||
const genderOpsMain = ref<DataOption[]>([]); //ตัวเลือกหลัก เพศ
|
const genderOpsMain = ref<DataOption[]>([]); //ตัวเลือกหลัก เพศ
|
||||||
|
|
@ -442,6 +450,10 @@ function filterOption(val: string, update: any, typeOp: string) {
|
||||||
: retireTypeOpsMainEMP.value.filter(
|
: retireTypeOpsMainEMP.value.filter(
|
||||||
(v: DataOption) => v.name.indexOf(val) > -1
|
(v: DataOption) => v.name.indexOf(val) > -1
|
||||||
);
|
);
|
||||||
|
} else if (typeOp == "holdPosition") {
|
||||||
|
holdPositionOps.value = holdPositionOpsMain.value.filter(
|
||||||
|
(v: DataOption) => v.name.indexOf(val) > -1
|
||||||
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -557,6 +569,12 @@ async function onSearch() {
|
||||||
posLevel: posLevel.value,
|
posLevel: posLevel.value,
|
||||||
position: position.value,
|
position: position.value,
|
||||||
positionExecutive: positionExecutive.value,
|
positionExecutive: positionExecutive.value,
|
||||||
|
isCurrent:
|
||||||
|
holdPosition.value === "ครอง"
|
||||||
|
? true
|
||||||
|
: holdPosition.value === "ไม่ครอง"
|
||||||
|
? false
|
||||||
|
: undefined,
|
||||||
gender: gender.value,
|
gender: gender.value,
|
||||||
status: status.value,
|
status: status.value,
|
||||||
education: education.value.trim(),
|
education: education.value.trim(),
|
||||||
|
|
@ -754,6 +772,7 @@ function clearFilter() {
|
||||||
posLevel.value = ""; //ระดับตำแหน่ง, ชั้นงาน
|
posLevel.value = ""; //ระดับตำแหน่ง, ชั้นงาน
|
||||||
position.value = ""; //ตำแหน่งในสายงาน
|
position.value = ""; //ตำแหน่งในสายงาน
|
||||||
positionExecutive.value = ""; //ตำแหน่งทางการบริหาร
|
positionExecutive.value = ""; //ตำแหน่งทางการบริหาร
|
||||||
|
holdPosition.value = ""; //การครองตำแหน่ง
|
||||||
gender.value = ""; //เพศ
|
gender.value = ""; //เพศ
|
||||||
status.value = ""; //สถานภาพ
|
status.value = ""; //สถานภาพ
|
||||||
education.value = ""; //วุฒิการศึกษา
|
education.value = ""; //วุฒิการศึกษา
|
||||||
|
|
@ -1244,6 +1263,48 @@ watch(
|
||||||
</template>
|
</template>
|
||||||
</q-select>
|
</q-select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="col-12">
|
||||||
|
<q-separator />
|
||||||
|
</div>
|
||||||
|
<div class="col-12 q-px-sm">
|
||||||
|
<q-select
|
||||||
|
label="การครองตำแหน่ง"
|
||||||
|
:model-value="
|
||||||
|
holdPosition == '' ? 'ทั้งหมด' : holdPosition
|
||||||
|
"
|
||||||
|
:options="holdPositionOps"
|
||||||
|
emit-value
|
||||||
|
dense
|
||||||
|
borderless
|
||||||
|
map-options
|
||||||
|
option-label="name"
|
||||||
|
option-value="name"
|
||||||
|
fill-input
|
||||||
|
use-input
|
||||||
|
hide-selected
|
||||||
|
bg-color="white"
|
||||||
|
@filter="(inputValue:any,doneFn:Function) => filterOption(inputValue, doneFn,'holdPosition') "
|
||||||
|
@update:model-value="(value:string)=>(holdPosition = value)"
|
||||||
|
>
|
||||||
|
<template v-slot:no-option>
|
||||||
|
<q-item>
|
||||||
|
<q-item-section class="text-grey">
|
||||||
|
ไม่มีข้อมูล
|
||||||
|
</q-item-section>
|
||||||
|
</q-item>
|
||||||
|
</template>
|
||||||
|
<template v-if="holdPosition" v-slot:append>
|
||||||
|
<q-icon
|
||||||
|
name="cancel"
|
||||||
|
@click.stop.prevent="holdPosition = ''"
|
||||||
|
class="cursor-pointer"
|
||||||
|
style="opacity: 0.6"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
</q-select>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="col-12"><q-separator /></div>
|
<div class="col-12"><q-separator /></div>
|
||||||
<div
|
<div
|
||||||
class="col-12 q-px-sm"
|
class="col-12 q-px-sm"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue