refactor: header Can only see 1 thing

This commit is contained in:
Net 2024-08-19 13:56:15 +07:00
parent d881e5b9e4
commit 9424ea2350
2 changed files with 14 additions and 0 deletions

View file

@ -494,6 +494,13 @@ watch([customerId, inputSearch, currentStatus], async () => {
if (res) {
listEmployee = res.data.result;
currentBtnOpen.map((v, i) => {
if (i !== props.rowIndex) {
currentBtnOpen[i] = false;
}
});
currentBtnOpen[props.rowIndex] =
!currentBtnOpen[props.rowIndex];
}

View file

@ -1082,6 +1082,13 @@ const emptyCreateDialog = ref(false);
if (res) {
listEmployee = res.result;
currentBtnOpen.map((v, i) => {
if (i !== props.rowIndex) {
currentBtnOpen[i] = false;
}
});
currentBtnOpen[props.rowIndex] =
!currentBtnOpen[props.rowIndex];
}