添加查询按钮
This commit is contained in:
parent
ca75a70a0f
commit
670e9c14db
@ -11,7 +11,6 @@
|
|||||||
v-model:pagination="pagination"
|
v-model:pagination="pagination"
|
||||||
:rows-per-page-options="[10, 20, 50, 100]"
|
:rows-per-page-options="[10, 20, 50, 100]"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:filter="filter"
|
|
||||||
binary-state-sort
|
binary-state-sort
|
||||||
@request="onRequest"
|
@request="onRequest"
|
||||||
>
|
>
|
||||||
@ -104,13 +103,14 @@
|
|||||||
with-seconds
|
with-seconds
|
||||||
>
|
>
|
||||||
<div class="row items-center justify-end">
|
<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>
|
</div>
|
||||||
</q-time>
|
</q-time>
|
||||||
</q-popup-proxy>
|
</q-popup-proxy>
|
||||||
</q-icon>
|
</q-icon>
|
||||||
</template>
|
</template>
|
||||||
</q-input>
|
</q-input>
|
||||||
|
<q-btn flat round color="primary" icon="search" @click="searchQuery" />
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:body-cell-subEventType="props">
|
<template v-slot:body-cell-subEventType="props">
|
||||||
<q-td :props="props">
|
<q-td :props="props">
|
||||||
@ -285,4 +285,8 @@ function getSubEventType(type: string) {
|
|||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function searchQuery() {
|
||||||
|
tableRef.value.requestServerInteraction();
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
v-model:pagination="pagination"
|
v-model:pagination="pagination"
|
||||||
:rows-per-page-options="[10, 20, 50, 100]"
|
:rows-per-page-options="[10, 20, 50, 100]"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:filter="filter"
|
|
||||||
binary-state-sort
|
binary-state-sort
|
||||||
@request="onRequest"
|
@request="onRequest"
|
||||||
>
|
>
|
||||||
@ -104,13 +103,15 @@
|
|||||||
with-seconds
|
with-seconds
|
||||||
>
|
>
|
||||||
<div class="row items-center justify-end">
|
<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>
|
</div>
|
||||||
</q-time>
|
</q-time>
|
||||||
</q-popup-proxy>
|
</q-popup-proxy>
|
||||||
</q-icon>
|
</q-icon>
|
||||||
</template>
|
</template>
|
||||||
</q-input>
|
</q-input>
|
||||||
|
|
||||||
|
<q-btn flat round color="primary" icon="search" @click="searchQuery" />
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:body-cell-subEventType="props">
|
<template v-slot:body-cell-subEventType="props">
|
||||||
<q-td :props="props">
|
<q-td :props="props">
|
||||||
@ -269,6 +270,10 @@ async function onRequest(props: any) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function searchQuery() {
|
||||||
|
tableRef.value.requestServerInteraction();
|
||||||
|
}
|
||||||
|
|
||||||
function getSubEventType(type: string) {
|
function getSubEventType(type: string) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'LOGIN':
|
case 'LOGIN':
|
||||||
|
Loading…
Reference in New Issue
Block a user