เพิ่มส่งเเนวตั้ง เเนวนอน

This commit is contained in:
setthawutttty 2024-11-05 14:04:53 +07:00
parent b39dbd1ba2
commit 0c473e14c3
10 changed files with 121 additions and 18 deletions

View file

@ -30,6 +30,17 @@ const emit = defineEmits(["update:filterKeyword2", "update:selected"]);
//table
const selected = ref<officerType[]>([]);
const dataMapToSend = computed(() => {
return selected.value.map((i: any) => ({
id: i.id,
profileId: i.profileId,
prefix: i.prefix,
firstName: i.firstName,
lastName: i.lastName,
citizenId: i.citizenId,
remarkVertical: i.reason,
}));
});
const columns2 = ref<QTableProps["columns"]>([
{
name: "no",
@ -292,6 +303,6 @@ watch(
<DialogCreateCommand
v-model:modal="modalCommand"
:command-type-code="'C-PM-16'"
:persons="selected"
:persons="dataMapToSend"
/>
</template>