fix(接口测试): 修复场景报告高级搜索状态和列表页状态不一致的缺陷

--bug=1025572 --user=王孝刚 【接口测试】报告-场景-高级搜索-状态下拉字段和列表状态下拉字段不一致
https://www.tapd.cn/55049933/s/1364024
This commit is contained in:
wxg0103 2023-04-18 19:27:45 +08:00 committed by 刘瑞斌
parent bc40cee1b4
commit 0e8aea00df
2 changed files with 13 additions and 10 deletions

View File

@ -182,7 +182,7 @@
</template>
<script>
import { getCurrentProjectID } from 'metersphere-frontend/src/utils/token';
import { REPORT_CASE_CONFIGS, REPORT_CONFIGS } from 'metersphere-frontend/src/components/search/search-components';
import { REPORT_CASE_CONFIGS, REPORT_SCENARIO_CONFIGS } from 'metersphere-frontend/src/components/search/search-components';
import { _filter, _sort } from 'metersphere-frontend/src/utils/tableUtils';
import MsRenameReportDialog from 'metersphere-frontend/src/components/report/MsRenameReportDialog';
import MsTableColumn from 'metersphere-frontend/src/components/table/MsTableColumn';
@ -219,7 +219,7 @@ export default {
reportId: '',
debugVisible: false,
condition: {
components: REPORT_CONFIGS,
components: REPORT_SCENARIO_CONFIGS,
},
tableData: [],
multipleSelection: [],
@ -496,7 +496,7 @@ export default {
if (tabType === 'right') {
this.condition.components = REPORT_CASE_CONFIGS;
} else {
this.condition.components = REPORT_CONFIGS;
this.condition.components = REPORT_SCENARIO_CONFIGS;
}
this.loadIsOver = false;
this.$nextTick(() => {

View File

@ -147,13 +147,14 @@ export const STATUS = {
options: [OPERATORS.IN, OPERATORS.NOT_IN]
},
options: [
{label: 'Running', value: 'Running'},
{label: 'Success', value: 'Success'},
{label: 'Stopped', value: 'stop'},
{label: 'NotExecute', value: 'unexecute'},
{label: 'Error', value: 'Error'},
{label: "FakeError", value: 'errorReportResult'},
{label: 'Rerunning', value: 'Rerunning'},
{ label: 'Pending', value: 'PENDING' },
{ label: 'Running', value: 'RUNNING' },
{ label: 'Rerunning', value: 'RERUNNING' },
{ label: 'Success', value: 'SUCCESS' },
{ label: 'Error', value: 'ERROR' },
{ label: 'FakeError', value: 'FAKE_ERROR' },
{ label: 'Stopped', value: 'STOPPED' },
],
props: { // 尾部控件的props一般为element ui控件的props
multiple: true
@ -951,6 +952,8 @@ export const TEST_CONFIGS = [ID, NAME, UPDATE_TIME, CREATE_TIME, STATUS, CREATOR
export const PROJECT_CONFIGS = [NAME, UPDATE_TIME, CREATE_TIME, CREATOR];
export const REPORT_SCENARIO_CONFIGS = [NAME, TEST_NAME, CREATE_TIME, STATUS, CREATOR, TRIGGER_MODE];
export const REPORT_CONFIGS = [NAME, TEST_NAME, CREATE_TIME, PERFORMANCE_REPORT_STATUS, CREATOR, TRIGGER_MODE];
export const REPORT_CASE_CONFIGS = [NAME, CREATE_TIME, STATUS, CREATOR, TRIGGER_MODE];