view workflow leave perm

This commit is contained in:
Warunee Tamkoo 2024-11-15 11:02:20 +07:00
parent d5a4541830
commit 79f829fa3d

View file

@ -235,6 +235,18 @@ function filterSelector(val: string, update: Function, refData: string) {
}
}
function updatedLists() {
console.log(formFilter.name);
if (formFilter.name == "SYS_LEAVE_LIST_EMP") {
formFilter.type = "EMP";
formFilter.level = "EMP";
} else {
formFilter.type = "";
formFilter.level = "";
}
}
onMounted(async () => {
showLoader();
await Promise.all([fetchType(), fetchWorkflowList()]).finally(() => {
@ -275,6 +287,7 @@ onMounted(async () => {
@filter="(inputValue: string,
doneFn: Function) => filterSelector(inputValue, doneFn, 'name'
)"
@update:model-value="updatedLists()"
>
<template v-slot:no-option>
<q-item>