fix(接口管理): 修复导入请求表格没有筛选和重置问题
--bug=1038942 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001038942
This commit is contained in:
parent
60355f031f
commit
e2c701b073
|
@ -43,6 +43,14 @@
|
|||
</a-checkbox>
|
||||
</a-checkbox-group>
|
||||
</div>
|
||||
<div class="filter-button">
|
||||
<a-button size="mini" class="mr-[8px]" @click="resetMethodFilter">
|
||||
{{ t('common.reset') }}
|
||||
</a-button>
|
||||
<a-button type="primary" size="mini" @click="handleFilterHidden(false)">
|
||||
{{ t('system.orgTemplate.confirm') }}
|
||||
</a-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</a-trigger>
|
||||
|
@ -66,6 +74,14 @@
|
|||
</a-checkbox>
|
||||
</a-checkbox-group>
|
||||
</div>
|
||||
<div class="filter-button">
|
||||
<a-button size="mini" class="mr-[8px]" @click="resetStatusFilter">
|
||||
{{ t('common.reset') }}
|
||||
</a-button>
|
||||
<a-button type="primary" size="mini" @click="handleFilterHidden(false)">
|
||||
{{ t('system.orgTemplate.confirm') }}
|
||||
</a-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</a-trigger>
|
||||
|
@ -454,9 +470,23 @@
|
|||
function handleFilterHidden(val: boolean) {
|
||||
if (!val) {
|
||||
loadPage();
|
||||
methodFilterVisible.value = false;
|
||||
statusFilterVisible.value = false;
|
||||
}
|
||||
}
|
||||
|
||||
function resetMethodFilter() {
|
||||
methodFilters.value = [];
|
||||
methodFilterVisible.value = false;
|
||||
loadPage();
|
||||
}
|
||||
|
||||
function resetStatusFilter() {
|
||||
statusFilters.value = [];
|
||||
statusFilterVisible.value = false;
|
||||
loadPage();
|
||||
}
|
||||
|
||||
function resetTable() {
|
||||
currentTable.value.resetSelector();
|
||||
keyword.value = '';
|
||||
|
|
Loading…
Reference in New Issue