feat(测试用例): 高级搜索中增加按照评审结果搜索

This commit is contained in:
shiziyuan9527 2021-04-15 17:36:22 +08:00 committed by 刘瑞斌
parent 18aba534ee
commit 9e67da7a1f
2 changed files with 24 additions and 1 deletions

View File

@ -64,6 +64,12 @@
<property name="object" value="${condition}.tags"/>
</include>
</if>
<if test="${condition}.reviewStatus != null">
and test_case.review_status
<include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.condition">
<property name="object" value="${condition}.reviewStatus"/>
</include>
</if>
</sql>
<select id="getTestCaseByNotInReview" resultType="io.metersphere.base.domain.TestCase">

View File

@ -446,11 +446,28 @@ export const TEST_PLAN_TRIGGER_MODE = {
}
};
export const CASE_REVIEW_STATUS = {
key: "reviewStatus",
name: 'MsTableSearchSelect',
label: "test_track.review_view.execute_result",
operator: {
options: [OPERATORS.IN, OPERATORS.NOT_IN]
},
options: [
{label: "test_track.case.status_prepare", value: "Prepare"},
{label: "test_track.case.status_pass", value: "Pass"},
{label: "test_track.case.status_un_pass", value: "UnPass"},
],
props: {
multiple: true
}
}
export const TEST_CONFIGS = [NAME, UPDATE_TIME, CREATE_TIME, STATUS, CREATOR];
export const REPORT_CONFIGS = [NAME, TEST_NAME, CREATE_TIME, STATUS, CREATOR, TRIGGER_MODE];
export const TEST_CASE_CONFIGS = [NAME, API_TAGS, MODULE, PRIORITY, CREATE_TIME, TYPE, UPDATE_TIME, METHOD, CREATOR, EXECUTOR];
export const TEST_CASE_CONFIGS = [NAME, API_TAGS, MODULE, PRIORITY, CREATE_TIME, TYPE, UPDATE_TIME, METHOD, CREATOR, EXECUTOR, CASE_REVIEW_STATUS];
export const TEST_PLAN_CONFIGS = [NAME, UPDATE_TIME, CREATE_TIME, PRINCIPAL, TEST_PLAN_STATUS, STAGE];