ปรับส่งไปออกคำสั่ง วินัย
This commit is contained in:
parent
605608ff04
commit
d714562571
9 changed files with 30 additions and 9 deletions
|
|
@ -39,6 +39,16 @@ const idPath = ref<string>(route.params.id as string);
|
|||
const type = ref<string>("");
|
||||
const rows = ref<DataPerson[]>([]);
|
||||
const selected = ref<ResponseData[]>([]);
|
||||
const dataMapToSend = computed(() => {
|
||||
return selected.value.map((i: any) => ({
|
||||
id: i.id,
|
||||
profileId: i.personId,
|
||||
prefix: i.prefix,
|
||||
firstName: i.firstName,
|
||||
lastName: i.lastName,
|
||||
citizenId: i.idcard,
|
||||
}));
|
||||
});
|
||||
|
||||
const modal = defineModel<boolean>("modal", { required: true });
|
||||
const props = defineProps({
|
||||
|
|
@ -305,6 +315,6 @@ watch(
|
|||
<DialogCreateCommand
|
||||
v-model:modal="modalCommand"
|
||||
:command-type-code="commandType"
|
||||
:persons="selected"
|
||||
:persons="selected ? dataMapToSend :[]"
|
||||
/>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue