From b9b122b4ccd432b6e28870a8a7dede8300a021d2 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Thu, 28 Mar 2024 11:14:26 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=8E=A5=E5=8F=A3=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89=E5=88=97=E8=A1=A8=E8=A1=A8?= =?UTF-8?q?=E5=A4=B4=E4=B8=8B=E6=8B=89=E5=A2=9E=E5=8A=A0=E7=AD=9B=E9=80=89?= =?UTF-8?q?=E5=92=8C=E9=87=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1037489 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001037489 --- .../components/management/api/apiTable.vue | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/frontend/src/views/api-test/management/components/management/api/apiTable.vue b/frontend/src/views/api-test/management/components/management/api/apiTable.vue index 1be7221d84..88b9e97a60 100644 --- a/frontend/src/views/api-test/management/components/management/api/apiTable.vue +++ b/frontend/src/views/api-test/management/components/management/api/apiTable.vue @@ -48,6 +48,14 @@ +
+ + {{ t('common.reset') }} + + + {{ t('system.orgTemplate.confirm') }} + +
@@ -71,6 +79,14 @@ +
+ + {{ t('common.reset') }} + + + {{ t('system.orgTemplate.confirm') }} + +
@@ -532,6 +548,8 @@ function handleFilterHidden(val: boolean) { if (!val) { loadApiList(); + methodFilterVisible.value = false; + statusFilterVisible.value = false; } } @@ -792,6 +810,18 @@ selectedModuleKeys.value = []; } + function resetMethodFilter() { + methodFilters.value = Object.keys(RequestMethods); + methodFilterVisible.value = false; + loadApiList(); + } + + function resetStatusFilter() { + statusFilters.value = Object.keys(RequestDefinitionStatus); + statusFilterVisible.value = false; + loadApiList(); + } + /** * 处理文件夹树节点选中事件 */ @@ -875,4 +905,10 @@ } } } + .filter-button { + display: flex; + justify-content: space-between; + flex-direction: row; + margin: 12px; + }