refactor: add emit remove
This commit is contained in:
parent
796af2b704
commit
978a62be78
2 changed files with 20 additions and 2 deletions
|
|
@ -173,7 +173,16 @@ const insuranceCompanyFilter = selectFilterOptionRefMod(
|
|||
padding="xs"
|
||||
color="red"
|
||||
:class="{ dark: $q.dark.isActive }"
|
||||
@click.stop="removeData(index)"
|
||||
@click.stop="
|
||||
() => {
|
||||
if (employeeCheckup?.[index].statusSave) {
|
||||
$emit('remove', index);
|
||||
removeData(index);
|
||||
} else {
|
||||
removeData(index);
|
||||
}
|
||||
}
|
||||
"
|
||||
/>
|
||||
</div>
|
||||
</q-tab>
|
||||
|
|
|
|||
|
|
@ -136,7 +136,16 @@ const workplaceFilter = selectFilterOptionRefMod(
|
|||
padding="xs"
|
||||
color="red"
|
||||
:class="{ dark: $q.dark.isActive }"
|
||||
@click.stop="removeData(index)"
|
||||
@click.stop="
|
||||
() => {
|
||||
if (employeeWork?.[index].statusSave) {
|
||||
$emit('remove', index);
|
||||
removeData(index);
|
||||
} else {
|
||||
removeData(index);
|
||||
}
|
||||
}
|
||||
"
|
||||
/>
|
||||
</div>
|
||||
</q-tab>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue