ปรับฟอร์มเพิ่มประธาน/กรรมการ รอ API list คนอันใหม่

This commit is contained in:
setthawutttty 2024-10-24 13:19:39 +07:00
parent bbf7a5ea1c
commit 4fd13b672b
3 changed files with 139 additions and 80 deletions

View file

@ -16,6 +16,17 @@ const selected = ref<AppointMainRows[]>([]);
const mixin = useCounterMixin();
const { dialogConfirm } = mixin;
const dataMapToSend = computed(() => {
return selected.value.map((i: any) => ({
id: i.id,
profileId: null,
prefix: null,
firstName: null,
lastName: null,
citizenId: null,
}));
});
const filterKeyword = defineModel<string>("filterKeyword", { required: true });
const rows = defineModel<AppointMainRows[]>("rows", { required: true });
/** props*/
@ -236,7 +247,7 @@ watchEffect(() => {
<DialogCreateCommand
v-model:modal="modalCommand"
:command-type-code="'C-PM-10'"
:persons="selected"
:not-person="true"
:persons="selected ? dataMapToSend:[]"
:not-person="false"
/>
</template>