fix(测试计划): 修复关联性能测试列表 根据状态筛选问题

This commit is contained in:
fit2-zhao 2021-07-01 17:06:00 +08:00 committed by fit2-zhao
parent 78efbfc879
commit 27d0ba097b
2 changed files with 21 additions and 1 deletions

View File

@ -20,6 +20,20 @@
<if test="request.name != null and request.name != ''">
and load_test.name like CONCAT('%', #{request.name},'%')
</if>
<if test="request.filters != null and request.filters.size() > 0">
<foreach collection="request.filters.entrySet()" index="key" item="values">
<if test="values != null and values.size() > 0">
<choose>
<when test="key=='status'">
and load_test.status in
<foreach collection="values" item="value" separator="," open="(" close=")">
#{value}
</foreach>
</when>
</choose>
</if>
</foreach>
</if>
and load_test.id not in (
select tplc.load_case_id from test_plan_load_case tplc where tplc.test_plan_id = #{request.testPlanId}
)

View File

@ -29,6 +29,7 @@
row-key="id"
@select-all="handleSelectAll"
@select="handleSelectionChange"
@filter-change="filter"
height="50vh"
ref="table">
<el-table-column
@ -82,6 +83,7 @@ import MsTableAdvSearchBar from "@/business/components/common/components/search/
import MsTableHeader from "@/business/components/common/components/MsTableHeader";
import MsPerformanceTestStatus from "@/business/components/performance/test/PerformanceTestStatus";
import MsTablePagination from "@/business/components/common/pagination/TablePagination";
import {_filter} from "@/common/js/tableUtils";
export default {
name: "TestCaseLoadRelevance",
@ -143,9 +145,13 @@ export default {
},
reviewId() {
this.condition.reviewId = this.reviewId;
}
},
},
methods: {
filter(filters) {
_filter(filters, this.condition);
this.search();
},
open() {
this.$refs.baseRelevance.open();
},