fix ทดลองงาน
This commit is contained in:
parent
546003492d
commit
008c47084e
4 changed files with 26 additions and 25 deletions
|
|
@ -17,14 +17,18 @@ const mixin = useCounterMixin();
|
|||
const { dialogConfirm, onSearchDataTable } = mixin;
|
||||
|
||||
const dataMapToSend = computed(() => {
|
||||
return selected.value.map((i: any) => ({
|
||||
id: i.id,
|
||||
profileId: null,
|
||||
prefix: null,
|
||||
firstName: null,
|
||||
lastName: null,
|
||||
citizenId: null,
|
||||
}));
|
||||
const firstSelected = selected.value[0];
|
||||
return firstSelected
|
||||
? firstSelected.directors.map((i: any) => ({
|
||||
id: firstSelected.id,
|
||||
profileId: i.profileId,
|
||||
prefix: i.prefix,
|
||||
firstName: i.firstName,
|
||||
lastName: i.lastName,
|
||||
citizenId: i.citizenId,
|
||||
rootId: i.rootId,
|
||||
}))
|
||||
: [];
|
||||
});
|
||||
|
||||
const filterKeyword = defineModel<string>("filterKeyword", { required: true });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue