fix(测试跟踪): 用例列表高级搜索责任人,搜索结果错误
--bug=1024596 --user=陈建星 [测试跟踪]功能用例-筛选-筛选责任人结果错误 https://www.tapd.cn/55049933/s/1352425
This commit is contained in:
parent
96779c7d44
commit
0bbfbf2e76
|
@ -716,6 +716,19 @@ export const TEST_CASE_STATUS = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const TEST_CASE_MAINTAINER = {
|
||||||
|
key: "maintainer",
|
||||||
|
name: 'MsTableSearchSelect',
|
||||||
|
label: "custom_field.case_maintainer",
|
||||||
|
operator: {
|
||||||
|
options: [OPERATORS.IN, OPERATORS.NOT_IN]
|
||||||
|
},
|
||||||
|
options: MS_PROJECT_USER_OPTIONS,
|
||||||
|
props: {
|
||||||
|
multiple: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export const TEST_CASE_PRIORITY = {
|
export const TEST_CASE_PRIORITY = {
|
||||||
key: "priority",
|
key: "priority",
|
||||||
name: 'MsTableSearchSelect',
|
name: 'MsTableSearchSelect',
|
||||||
|
@ -937,7 +950,7 @@ export const UI_CUSTOM_COMMAND_CONFIGS = [NAME, CREATE_TIME, PROJECT_CREATOR, UI
|
||||||
export const UI_CUSTOM_COMMAND_CONFIGS_TRASH = [NAME, CREATE_TIME, PROJECT_CREATOR, UI_CUSTOM_COMMAND_TRASH_MODULE_TREE];
|
export const UI_CUSTOM_COMMAND_CONFIGS_TRASH = [NAME, CREATE_TIME, PROJECT_CREATOR, UI_CUSTOM_COMMAND_TRASH_MODULE_TREE];
|
||||||
|
|
||||||
// 测试跟踪-测试用例 列表
|
// 测试跟踪-测试用例 列表
|
||||||
export const TEST_CASE_CONFIGS = [ID, NAME, TAGS, TEST_CASE_MODULE_TREE, CREATE_TIME, UPDATE_TIME, CREATOR, CASE_REVIEW_STATUS, FOLLOW_PEOPLE, CASE_DEMAND, TEST_CASE_STATUS, TEST_CASE_PRIORITY];
|
export const TEST_CASE_CONFIGS = [ID, NAME, TAGS, TEST_CASE_MODULE_TREE, CREATE_TIME, UPDATE_TIME, CREATOR, CASE_REVIEW_STATUS, FOLLOW_PEOPLE, CASE_DEMAND, TEST_CASE_STATUS, TEST_CASE_PRIORITY, TEST_CASE_MAINTAINER];
|
||||||
|
|
||||||
export const TEST_PLAN_CONFIGS = [NAME, UPDATE_TIME, CREATE_TIME, PRINCIPAL, TEST_PLAN_STATUS, STAGE, TAGS, FOLLOW_PEOPLE, ACTUAL_START_TIME, ACTUAL_END_TIME, PLAN_START_TIME, PLAN_END_TIME];
|
export const TEST_PLAN_CONFIGS = [NAME, UPDATE_TIME, CREATE_TIME, PRINCIPAL, TEST_PLAN_STATUS, STAGE, TAGS, FOLLOW_PEOPLE, ACTUAL_START_TIME, ACTUAL_END_TIME, PLAN_START_TIME, PLAN_END_TIME];
|
||||||
|
|
||||||
|
|
|
@ -52,6 +52,12 @@
|
||||||
<property name="object" value="${condition}.status"/>
|
<property name="object" value="${condition}.status"/>
|
||||||
</include>
|
</include>
|
||||||
</if>
|
</if>
|
||||||
|
<if test="${condition}.maintainer != null">
|
||||||
|
and test_case.maintainer
|
||||||
|
<include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.condition">
|
||||||
|
<property name="object" value="${condition}.maintainer"/>
|
||||||
|
</include>
|
||||||
|
</if>
|
||||||
<if test="${condition}.createTime != null">
|
<if test="${condition}.createTime != null">
|
||||||
and test_case.create_time
|
and test_case.create_time
|
||||||
<include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.condition">
|
<include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.condition">
|
||||||
|
|
|
@ -258,7 +258,7 @@ import HomePagination from '@/business/home/components/pagination/HomePagination
|
||||||
import MsTableCountBar from 'metersphere-frontend/src/components/table/MsTableCountBar';
|
import MsTableCountBar from 'metersphere-frontend/src/components/table/MsTableCountBar';
|
||||||
import PriorityTableItem from "../../common/tableItems/planview/PriorityTableItem";
|
import PriorityTableItem from "../../common/tableItems/planview/PriorityTableItem";
|
||||||
import TypeTableItem from "../../common/tableItems/planview/TypeTableItem";
|
import TypeTableItem from "../../common/tableItems/planview/TypeTableItem";
|
||||||
import {OPERATORS, TEST_CASE_CONFIGS} from "metersphere-frontend/src/components/search/search-components";
|
import {TEST_CASE_CONFIGS} from "metersphere-frontend/src/components/search/search-components";
|
||||||
import BatchEdit from "./BatchEdit";
|
import BatchEdit from "./BatchEdit";
|
||||||
import {TEST_CASE_LIST} from "metersphere-frontend/src/utils/constants";
|
import {TEST_CASE_LIST} from "metersphere-frontend/src/utils/constants";
|
||||||
import MsSingleTag from "metersphere-frontend/src/components/new-ui/MsSingleTag";
|
import MsSingleTag from "metersphere-frontend/src/components/new-ui/MsSingleTag";
|
||||||
|
|
|
@ -11,6 +11,7 @@ export function initTestCaseConditionComponents(condition, customFields, trashEn
|
||||||
comp = comp.filter(element => {
|
comp = comp.filter(element => {
|
||||||
if (element.label === '责任人') {
|
if (element.label === '责任人') {
|
||||||
element.label = i18n.t('custom_field.case_maintainer');
|
element.label = i18n.t('custom_field.case_maintainer');
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
if (element.label === '用例等级') {
|
if (element.label === '用例等级') {
|
||||||
element.label = i18n.t('custom_field.case_priority');
|
element.label = i18n.t('custom_field.case_priority');
|
||||||
|
|
|
@ -46,6 +46,12 @@
|
||||||
<property name="object" value="${condition}.priority"/>
|
<property name="object" value="${condition}.priority"/>
|
||||||
</include>
|
</include>
|
||||||
</if>
|
</if>
|
||||||
|
<if test="${condition}.maintainer != null">
|
||||||
|
and test_case.maintainer
|
||||||
|
<include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.condition">
|
||||||
|
<property name="object" value="${condition}.maintainer"/>
|
||||||
|
</include>
|
||||||
|
</if>
|
||||||
<if test="${condition}.createTime != null">
|
<if test="${condition}.createTime != null">
|
||||||
and test_case.create_time
|
and test_case.create_time
|
||||||
<include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.condition">
|
<include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.condition">
|
||||||
|
|
Loading…
Reference in New Issue