refactor: streamline employee search components by directly using the value prop for filtering and updating dropdown visibility, enhancing synchronization and user experience
This commit is contained in:
@@ -512,6 +512,20 @@
|
||||
});
|
||||
let gerandoRelatorio = $state(false);
|
||||
|
||||
// Efeito para marcar todos os campos quando "Princes Alves rocha wanderley" for selecionado
|
||||
$effect(() => {
|
||||
const nomeFuncionario = relatorioFuncionarioNome.toLowerCase().trim();
|
||||
if (nomeFuncionario === 'princes alves rocha wanderley') {
|
||||
relatorioCampos = {
|
||||
atestados: true,
|
||||
licencaPaternidade: true,
|
||||
licencaMaternidade: true,
|
||||
declaracao: true,
|
||||
todos: true
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
// Função para obter dados filtrados para relatório
|
||||
async function obterDadosRelatorio() {
|
||||
const dados = dadosQuery?.data;
|
||||
|
||||
Reference in New Issue
Block a user