From 0c9f45bb0009dcdb9ec46ce9d58315ed53bbcb12 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Fri, 24 Jun 2022 14:51:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E9=80=9A=E7=94=A8=E5=8A=9F=E8=83=BD):=20?= =?UTF-8?q?=E9=AB=98=E7=BA=A7=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/mapper/ext/ExtApiScenarioMapper.xml | 21 +++++- .../mapper/ext/ExtTestCaseReviewMapper.xml | 43 ++++++++++++ .../base/mapper/ext/ExtTestPlanMapper.xml | 38 +++++++++++ .../components/search/MsTableAdvSearchBar.vue | 8 +-- .../search/MsTableSearchComponet.vue | 4 +- .../search/MsTableSearchInputNumber.vue | 4 +- .../components/search/search-components.js | 68 +++++++++++++++++-- .../track/review/TestCaseReview.vue | 11 ++- .../review/components/TestCaseReviewList.vue | 5 +- frontend/src/i18n/en-US.js | 2 + frontend/src/i18n/zh-CN.js | 2 + frontend/src/i18n/zh-TW.js | 2 + 12 files changed, 188 insertions(+), 20 deletions(-) diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiScenarioMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiScenarioMapper.xml index 0ffcdd12b6..9647018c57 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiScenarioMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiScenarioMapper.xml @@ -133,13 +133,30 @@ - + and api_scenario.last_result + + + + + + and api_scenario.status - + + and api_scenario.module_path + + + + + + and api_scenario.step_total + + + + + + and test_case_review.name + + + + + + and test_case_review.create_time + + + + + + and test_case_review.update_time + + + + + + and test_case_review.end_time + + + + + + and test_case_review.status + + + + + + and (test_case_review.tags is null or test_case_review.tags + + + + ) + + + and test_case_review.tags + + + + and test_case_review.id in ( select review_id from test_case_review_follow where follow_id diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanMapper.xml index 584a92f534..3558b99693 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanMapper.xml @@ -78,6 +78,30 @@ + + and test_plan.actual_start_time + + + + + + and test_plan.actual_end_time + + + + + + and test_plan.planned_start_time + + + + + + and test_plan.planned_end_time + + + + and test_plan.status @@ -102,6 +126,19 @@ + + and (test_plan.tags is null or test_plan.tags + + + + ) + + + and test_plan.tags + + + + and test_plan.id in (SELECT test_plan_id FROM test_plan_principal WHERE principal_id @@ -128,6 +165,7 @@ + diff --git a/frontend/src/business/components/common/components/search/MsTableAdvSearchBar.vue b/frontend/src/business/components/common/components/search/MsTableAdvSearchBar.vue index d1063f147f..fe7f5ea3fd 100644 --- a/frontend/src/business/components/common/components/search/MsTableAdvSearchBar.vue +++ b/frontend/src/business/components/common/components/search/MsTableAdvSearchBar.vue @@ -16,7 +16,7 @@ 添加筛选条件 + class="add-filter-link" @click="addFilter">{{ $t('commons.adv_search.add_filter_link') }}