添加查询按钮

This commit is contained in:
joylink_fanyuhong 2024-10-25 14:48:46 +08:00
parent ca75a70a0f
commit 670e9c14db
2 changed files with 13 additions and 4 deletions

View File

@ -11,7 +11,6 @@
v-model:pagination="pagination"
:rows-per-page-options="[10, 20, 50, 100]"
:loading="loading"
:filter="filter"
binary-state-sort
@request="onRequest"
>
@ -104,13 +103,14 @@
with-seconds
>
<div class="row items-center justify-end">
<q-btn v-close-popup label="Close" color="primary" flat />
<q-btn v-close-popup label="关闭" color="primary" flat />
</div>
</q-time>
</q-popup-proxy>
</q-icon>
</template>
</q-input>
<q-btn flat round color="primary" icon="search" @click="searchQuery" />
</template>
<template v-slot:body-cell-subEventType="props">
<q-td :props="props">
@ -285,4 +285,8 @@ function getSubEventType(type: string) {
return '';
}
}
function searchQuery() {
tableRef.value.requestServerInteraction();
}
</script>

View File

@ -11,7 +11,6 @@
v-model:pagination="pagination"
:rows-per-page-options="[10, 20, 50, 100]"
:loading="loading"
:filter="filter"
binary-state-sort
@request="onRequest"
>
@ -104,13 +103,15 @@
with-seconds
>
<div class="row items-center justify-end">
<q-btn v-close-popup label="Close" color="primary" flat />
<q-btn v-close-popup label="关闭" color="primary" flat />
</div>
</q-time>
</q-popup-proxy>
</q-icon>
</template>
</q-input>
<q-btn flat round color="primary" icon="search" @click="searchQuery" />
</template>
<template v-slot:body-cell-subEventType="props">
<q-td :props="props">
@ -269,6 +270,10 @@ async function onRequest(props: any) {
}
}
function searchQuery() {
tableRef.value.requestServerInteraction();
}
function getSubEventType(type: string) {
switch (type) {
case 'LOGIN':