ปรับส่งไปออกคำสั่ง วินัย

This commit is contained in:
setthawutttty 2024-10-09 11:02:17 +07:00
parent 605608ff04
commit d714562571
9 changed files with 30 additions and 9 deletions

View file

@ -25,6 +25,16 @@ const modalCommand = ref<boolean>(false); // ตัวแปร popup สร้
const rows = ref<dataType[]>([]);
const selected = ref<dataType[]>([]);
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,
}));
});
const commandType = ref<string>(""); //
const commandOp = ref<ListCommand[]>([]);
@ -283,6 +293,6 @@ watch(
<DialogCreateCommand
v-model:modal="modalCommand"
:command-type-code="commandType"
:persons="selected"
:persons="selected ? dataMapToSend:[]"
/>
</template>

View file

@ -160,7 +160,6 @@ function openModalOrder() {
r.organization
);
rows2.value = dataMap;
console.log("🚀 ~ openModalOrder ~ rows2.value:", rows2.value);
}
/** ดึงข้อมูลหน้าหลัก */