feat(接口测试): 场景列表的定时任务列增加筛选
--story=1011684 --user=宋天阳 接口场景列表、UI场景列表 展示定时任务列 https://www.tapd.cn/55049933/s/1362055
This commit is contained in:
parent
997559105b
commit
1d9919895b
|
@ -208,6 +208,10 @@
|
|||
left join user u2 on api_scenario.principal = u2.id
|
||||
left join project_version on api_scenario.project_id = project_version.project_id AND project_version.id =
|
||||
api_scenario.version_id
|
||||
<if test="request.filters != null and request.filters.schedule != null">
|
||||
LEFT JOIN schedule ON schedule.resource_id = api_scenario.id
|
||||
</if>
|
||||
|
||||
<include refid="queryWhereCondition"/>
|
||||
<include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.orders"/>
|
||||
</select>
|
||||
|
@ -359,6 +363,20 @@
|
|||
#{value}
|
||||
</foreach>
|
||||
</when>
|
||||
<when test="key=='schedule'">
|
||||
and
|
||||
<foreach collection="values" item="value" separator="or" open="(" close=")">
|
||||
<if test="value == 'open'">
|
||||
schedule.`enable` = 1
|
||||
</if>
|
||||
<if test="value == 'close'">
|
||||
schedule.`enable` = 0
|
||||
</if>
|
||||
<if test="value == 'unset' ">
|
||||
schedule.id is null
|
||||
</if>
|
||||
</foreach>
|
||||
</when>
|
||||
<when test="key=='level'">
|
||||
and api_scenario.level in
|
||||
<foreach collection="values" item="value" separator="," open="(" close=")">
|
||||
|
|
|
@ -198,6 +198,7 @@
|
|||
:field="item"
|
||||
:fields-width="fieldsWidth"
|
||||
min-width="100px"
|
||||
:filters="!trashEnable ? scheduleFilters : null"
|
||||
prop="schedule">
|
||||
<template v-slot:default="scope">
|
||||
<schedule-info-in-table
|
||||
|
@ -552,6 +553,11 @@ export default {
|
|||
condition: {
|
||||
components: this.trashEnable ? API_SCENARIO_CONFIGS_TRASH : API_SCENARIO_CONFIGS,
|
||||
},
|
||||
scheduleFilters: [
|
||||
{ text: this.$t('filters.schedule.open'), value: 'open' },
|
||||
{ text: this.$t('filters.schedule.close'), value: 'close' },
|
||||
{ text: this.$t('filters.schedule.unset'), value: 'unset' },
|
||||
],
|
||||
projectId: '',
|
||||
scenarioId: '',
|
||||
isMoveBatch: true,
|
||||
|
|
|
@ -39,6 +39,13 @@ const message = {
|
|||
},
|
||||
document_tooltip: 'Only valid for displayed parameters',
|
||||
},
|
||||
filters: {
|
||||
schedule: {
|
||||
open: 'Open',
|
||||
close: 'Closed',
|
||||
unset: 'Unset',
|
||||
},
|
||||
},
|
||||
home: {
|
||||
dashboard: {
|
||||
public: {
|
||||
|
|
|
@ -37,6 +37,13 @@ const message = {
|
|||
},
|
||||
document_tooltip: '仅对已展示的参数生效',
|
||||
},
|
||||
filters: {
|
||||
schedule: {
|
||||
open: '已开启',
|
||||
close: '已关闭',
|
||||
unset: '未设置',
|
||||
},
|
||||
},
|
||||
home: {
|
||||
dashboard: {
|
||||
public: {
|
||||
|
|
|
@ -37,6 +37,13 @@ const message = {
|
|||
},
|
||||
document_tooltip: '僅對已顯示的參與數據生成效率',
|
||||
},
|
||||
filters: {
|
||||
schedule: {
|
||||
open: '已開啟',
|
||||
close: '已關閉',
|
||||
unset: '未設置',
|
||||
},
|
||||
},
|
||||
home: {
|
||||
dashboard: {
|
||||
public: {
|
||||
|
|
Loading…
Reference in New Issue