fix: workflow search display condition
This commit is contained in:
parent
3cace45c5e
commit
43b9219e16
1 changed files with 5 additions and 3 deletions
|
|
@ -250,6 +250,7 @@ async function fetchWorkflowList() {
|
|||
if (res) {
|
||||
workflowData.value = res.result;
|
||||
workflowPageMax.value = Math.ceil(res.total / workflowPageSize.value);
|
||||
if (pageState.inputSearch || statusFilter.value !== 'all') return;
|
||||
pageState.total = res.total;
|
||||
}
|
||||
}
|
||||
|
|
@ -371,21 +372,22 @@ watch(() => pageState.inputSearch, fetchWorkflowList);
|
|||
|
||||
<!-- SEC: body content -->
|
||||
<article
|
||||
v-if="workflowData.length === 0 && !pageState.inputSearch"
|
||||
v-if="workflowData.length === 0"
|
||||
class="col surface-2 flex items-center justify-center"
|
||||
>
|
||||
<NoData
|
||||
v-if="pageState.inputSearch"
|
||||
v-if="pageState.total !== 0"
|
||||
:not-found="!!pageState.inputSearch"
|
||||
/>
|
||||
|
||||
<CreateButton
|
||||
v-if="!pageState.inputSearch"
|
||||
v-if="pageState.total === 0"
|
||||
@click="triggerDialog('add')"
|
||||
label="general.add"
|
||||
:i18n-args="{ text: $t('flow.title') }"
|
||||
/>
|
||||
</article>
|
||||
|
||||
<article v-else class="col q-pa-md surface-2 scroll">
|
||||
<q-table
|
||||
flat
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue