fix: can still check when disabled

fixes #165
This commit is contained in:
Methapon2001 2024-12-25 15:19:37 +07:00
parent b988181631
commit c9da7ed59f

View file

@ -136,9 +136,12 @@ function handleCheck(
row.taskStatus === TaskStatus.Failed ||
row.taskStatus === TaskStatus.Success ||
row.taskStatus === TaskStatus.Complete ||
row.taskStatus === TaskStatus.Redo
)
row.taskStatus === TaskStatus.Redo ||
(selectedEmployee.value.length > 0 &&
selectedEmployee.value.some((v) => v._template?.id !== row._template?.id))
) {
return;
}
const index = selectedEmployee.value.findIndex((data) => data.id === row.id);
if (index !== -1) {