diff --git a/src/views/CheckWorkflow.vue b/src/views/CheckWorkflow.vue index 69d3f890..4e158616 100644 --- a/src/views/CheckWorkflow.vue +++ b/src/views/CheckWorkflow.vue @@ -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()" >