fix: table value missing

This commit is contained in:
Thanaphon Frappet 2024-11-13 10:33:37 +07:00
parent 90c8b1732a
commit 55aacaac1e
4 changed files with 17 additions and 1 deletions

View file

@ -216,8 +216,12 @@ function openEmployerBranchForm(formType: 'create' | 'edit' | 'info') {
async function fetchEmployee(opts: { branchId: string; pageSize?: number }) {
const res = await fetchBranchEmployee(opts.branchId, {
pageSize: opts.pageSize,
passport: true,
visa: true,
});
console.log(res);
if (res) {
listEmployee.value = res.data.result;
}
@ -520,6 +524,8 @@ watch(
await fetchEmployee({
branchId: currentBranchEmployee,
pageSize: 999,
passport: true,
visa: true,
});
currentBtnOpen.map((v, i) => {

View file

@ -1349,6 +1349,8 @@ const emptyCreateDialog = ref(false);
const res = await employeeStore.fetchList({
customerId: props.row.id,
pageSize: 999,
passport: true,
visa: true,
});
if (res) {