เพิ่ม ฟิลเตอร์
This commit is contained in:
parent
7fbdb7169c
commit
9f5dcc8bfd
1 changed files with 4 additions and 2 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue