feat: add status filter
This commit is contained in:
parent
5ac8707f38
commit
d4afc09614
2 changed files with 9 additions and 0 deletions
|
|
@ -96,6 +96,12 @@ async function fetchWorkflowList() {
|
|||
page: workflowPage.value,
|
||||
pageSize: workflowPageSize.value,
|
||||
query: pageState.inputSearch,
|
||||
status:
|
||||
statusFilter.value === 'all'
|
||||
? undefined
|
||||
: statusFilter.value === 'statusACTIVE'
|
||||
? 'ACTIVE'
|
||||
: 'INACTIVE',
|
||||
});
|
||||
if (res) {
|
||||
workflowData.value = res.result;
|
||||
|
|
@ -109,6 +115,7 @@ onMounted(async () => {
|
|||
await fetchWorkflowList();
|
||||
});
|
||||
|
||||
watch(statusFilter, fetchWorkflowList);
|
||||
watch(() => pageState.inputSearch, fetchWorkflowList);
|
||||
</script>
|
||||
<template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue