เพิ่ม ฟิลเตอร์

This commit is contained in:
setthawutttty 2024-10-15 14:26:33 +07:00
parent 7fbdb7169c
commit 9f5dcc8bfd

View file

@ -153,7 +153,9 @@ watch(
if (modal.value === true) { if (modal.value === true) {
selected.value = []; selected.value = [];
commandType.value = ""; commandType.value = "";
rows.value = props.data.persons ? props.data.persons : []; rows.value = props.data.persons
? props.data.persons.filter((item: any) => item.status == "NEW")
: [];
const data = await storeCommand.getCommandTypes(); const data = await storeCommand.getCommandTypes();
listCommand.value = data.filter( listCommand.value = data.filter(
@ -315,6 +317,6 @@ watch(
<DialogCreateCommand <DialogCreateCommand
v-model:modal="modalCommand" v-model:modal="modalCommand"
:command-type-code="commandType" :command-type-code="commandType"
:persons="selected ? dataMapToSend :[]" :persons="selected ? dataMapToSend : []"
/> />
</template> </template>