fix(测试跟踪): 测试计划关联用例缺少高级搜索

--bug=1014762 --user=陈建星 【测试跟踪】github#15641 【测试计划-关联测试用例 】不能按照 标签 搜索用例 https://www.tapd.cn/55049933/s/1198706
This commit is contained in:
chenjianxing 2022-07-11 15:29:43 +08:00 committed by jianxing
parent 94e03ffe05
commit 72eaa5ebd4
2 changed files with 6 additions and 2 deletions

View File

@ -167,7 +167,10 @@
</foreach>
</if>
<if test="request.name != null">
and test_case.name like CONCAT('%', #{request.name},'%')
and (test_case.name like CONCAT('%', #{request.name},'%')
or test_case.num like CONCAT('%', #{request.name},'%')
or test_case.tags like CONCAT('%', #{request.name},'%')
or test_case.custom_num like CONCAT('%', #{request.name},'%'))
</if>
<if test="request.projectId != null">
AND test_case.project_id = #{request.projectId}

View File

@ -117,6 +117,7 @@ import StatusTableItem from "@/business/components/track/common/tableItems/planv
import ReviewStatus from "@/business/components/track/case/components/ReviewStatus";
import TestCaseReviewStatusTableItem from "@/business/components/track/common/tableItems/TestCaseReviewStatusTableItem";
import TestPlanCaseStatusTableItem from "@/business/components/track/common/tableItems/TestPlanCaseStatusTableItem";
import {TEST_CASE_CONFIGS} from "@/business/components/common/components/search/search-components";
const requireComponent = require.context('@/business/components/xpack/', true, /\.vue$/);
const VersionSelect = requireComponent.keys().length > 0 ? requireComponent("./version/VersionSelect.vue") : {};
@ -208,7 +209,7 @@ export default {
},
methods: {
open() {
this.page.condition = {};
this.page.condition = {components: TEST_CASE_CONFIGS};
this.isSaving = false;
this.$refs.baseRelevance.open();
if (this.$refs.table) {