diff --git a/src/pages/03_customer-management/MainPage.vue b/src/pages/03_customer-management/MainPage.vue index b466aaa9..b623a45b 100644 --- a/src/pages/03_customer-management/MainPage.vue +++ b/src/pages/03_customer-management/MainPage.vue @@ -687,6 +687,7 @@ async function onDelete(id: string) { await employeeStore.deleteById(id); const resultList = await employeeStore.fetchList(); if (resultList) listEmployee.value = resultList.result; + clearFormEmployee(); }, cancel: () => {}, }); @@ -2256,6 +2257,11 @@ watch(fieldSelectedCustomer, async () => { :editData="() => (infoDrawerEmployeeEdit = true)" :undo="() => (infoDrawerEmployeeEdit = false)" :close="() => clearFormEmployee()" + :deleteData=" + () => { + currentEmployee && onDelete(currentEmployee.id); + } + " :submit=" () => { currentEmployee && onSubmitEdit(currentEmployee.id);