fix: 测试计划-用例状态过滤失效

This commit is contained in:
chenjianxing 2021-07-09 15:10:34 +08:00 committed by jianxing
parent 4e8bff7cc4
commit 45248bf1c0
4 changed files with 8 additions and 17 deletions

View File

@ -88,6 +88,12 @@
#{value} #{value}
</foreach> </foreach>
</when> </when>
<when test="key == 'priority'">
and a.priority in
<foreach collection="values" item="value" separator="," open="(" close=")">
#{value}
</foreach>
</when>
</choose> </choose>
</if> </if>
</foreach> </foreach>
@ -230,4 +236,4 @@
SELECT `status` FROM test_plan_api_case WHERE test_plan_id = #{0} SELECT `status` FROM test_plan_api_case WHERE test_plan_id = #{0}
</select> </select>
</mapper> </mapper>

View File

@ -968,15 +968,7 @@ export default {
height: 100% !important; height: 100% !important;
} }
/*/deep/ .el-table__fixed {*/
/* height: 110px !important;*/
/*}*/
/deep/ .el-card__header { /deep/ .el-card__header {
padding: 10px; padding: 10px;
} }
/deep/ .el-table__fixed-body-wrapper {
top: 48px !important;
}
</style> </style>

View File

@ -205,6 +205,7 @@
<ms-table-column v-for="field in testCaseTemplate.customFields" :key="field.id" <ms-table-column v-for="field in testCaseTemplate.customFields" :key="field.id"
:filters="field.name === '用例等级' ? priorityFilters : null" :filters="field.name === '用例等级' ? priorityFilters : null"
:field="item" :field="item"
column-key="priority"
:fields-width="fieldsWidth" :fields-width="fieldsWidth"
:label="field.name" :label="field.name"
:min-width="90" :min-width="90"

View File

@ -537,18 +537,10 @@ export default {
</script> </script>
<style scoped> <style scoped>
/*.ms-table-header {*/
/* margin: 5px;*/
/*}*/
/deep/ .table-title { /deep/ .table-title {
height: 0px; height: 0px;
font-weight: bold; font-weight: bold;
font-size: 0px; font-size: 0px;
} }
/deep/ .el-table__fixed-body-wrapper {
top: 48px !important;
}
</style> </style>