fix(接口测试): 优化接口测试报告中的高级查询字段

--bug=1011918 --user=宋天阳 【通用功能】测试报告-高级搜索:所属测试字段优化
https://www.tapd.cn/55049933/s/1154417
This commit is contained in:
song-tianyang 2022-05-09 17:29:18 +08:00 committed by 刘瑞斌
parent 7ae9ac48b2
commit 356343ff57
3 changed files with 16 additions and 6 deletions

View File

@ -106,10 +106,8 @@
</include>
</if>
<if test="${condition}.testName != null">
and `name`
<include refid="condition">
<property name="object" value="${condition}.testName"/>
</include>
and `scenario_id` IN
(SELECT id FROM api_scenario WHERE name like CONCAT('%', #{${condition}.testName.value},'%') )
</if>
<if test="${condition}.createTime != null">
and create_time

View File

@ -3,7 +3,7 @@
<ms-main-container>
<el-card class="table-card" v-loading="result.loading">
<template v-slot:header>
<ms-table-header :condition.sync="condition" @search="search" :show-create="false">
<ms-table-header :condition.sync="condition" v-if="loadIsOver" @search="search" :show-create="false">
<template v-slot:button>
<el-button-group>
@ -145,7 +145,7 @@
<script>
import {getCurrentProjectID} from "@/common/js/utils";
import {REPORT_CONFIGS} from "../../../common/components/search/search-components";
import {REPORT_CASE_CONFIGS, REPORT_CONFIGS} from "../../../common/components/search/search-components";
import {_filter, _sort} from "@/common/js/tableUtils";
import MsRenameReportDialog from "@/business/components/common/components/report/MsRenameReportDialog";
import MsTableColumn from "@/business/components/common/components/table/MsTableColumn";
@ -184,6 +184,7 @@ export default {
multipleSelection: [],
currentPage: 1,
pageSize: 10,
loadIsOver: true,
total: 0,
loading: false,
currentProjectId: "",
@ -418,6 +419,15 @@ export default {
},
changeTab(tabType){
this.trashActiveDom = tabType;
if(tabType === 'right'){
this.condition.components = REPORT_CASE_CONFIGS;
}else {
this.condition.components = REPORT_CONFIGS;
}
this.loadIsOver = false;
this.$nextTick( () => {
this.loadIsOver = true;
});
},
},

View File

@ -576,6 +576,8 @@ export const PROJECT_CONFIGS = [NAME, UPDATE_TIME, CREATE_TIME, CREATOR];
export const REPORT_CONFIGS = [NAME, TEST_NAME, CREATE_TIME, STATUS, CREATOR, TRIGGER_MODE];
export const REPORT_CASE_CONFIGS = [NAME, CREATE_TIME, STATUS, CREATOR, TRIGGER_MODE];
export const UI_REPORT_CONFIGS = [NAME, TEST_NAME, CREATE_TIME, UI_REPORT_STATUS, CREATOR, TRIGGER_MODE];
export const TEST_CASE_CONFIGS = [NAME, API_TAGS, MODULE, PRIORITY, CREATE_TIME, UPDATE_TIME, CREATOR, CASE_REVIEW_STATUS];