ปรับส่งไปออกคำสั่ง วินัย
This commit is contained in:
parent
605608ff04
commit
d714562571
9 changed files with 30 additions and 9 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -160,7 +160,6 @@ function openModalOrder() {
|
|||
r.organization
|
||||
);
|
||||
rows2.value = dataMap;
|
||||
console.log("🚀 ~ openModalOrder ~ rows2.value:", rows2.value);
|
||||
}
|
||||
|
||||
/** ดึงข้อมูลหน้าหลัก */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue