fix(接口测试): 优化回收站表格,回收站数据的状态不支持排序和筛选

--bug=1015933 --user=宋天阳 【接口测试】接口自动化-回收站中有状态只有一种“废弃”,建议把排序删掉。
https://www.tapd.cn/55049933/s/1226621
This commit is contained in:
song-tianyang 2022-08-18 15:02:15 +08:00 committed by 建国
parent 2793c40aa1
commit 08305ab73a
3 changed files with 7 additions and 6 deletions

View File

@ -557,6 +557,7 @@
from api_scenario from api_scenario
where project_id = #{projectId} where project_id = #{projectId}
and status = 'Trash' and status = 'Trash'
and latest IS TRUE
</select> </select>
<select id="selectNameById" resultType="java.lang.String"> <select id="selectNameById" resultType="java.lang.String">

View File

@ -98,10 +98,10 @@
<ms-table-column prop="status" <ms-table-column prop="status"
:label="$t('test_track.plan.plan_status')" :label="$t('test_track.plan.plan_status')"
sortable :sortable="trashEnable ? false : true"
:field="item" :field="item"
:fields-width="fieldsWidth" :fields-width="fieldsWidth"
:filters="!trashEnable ? apiscenariofilters.STATUS_FILTERS : apiscenariofilters.TRASH_FILTERS" :filters="!trashEnable ? apiscenariofilters.STATUS_FILTERS : null"
min-width="120px"> min-width="120px">
<template v-slot:default="scope"> <template v-slot:default="scope">
<plan-status-table-item :value="scope.row.status"/> <plan-status-table-item :value="scope.row.status"/>
@ -317,12 +317,12 @@
import { import {
downloadFile, downloadFile,
getCurrentProjectID, getCurrentProjectID,
getCurrentUserId,
getUUID, getUUID,
hasLicense, hasLicense,
hasPermission, hasPermission,
objToStrMap, objToStrMap,
strMapToObj, strMapToObj
getCurrentUserId
} from "@/common/js/utils"; } from "@/common/js/utils";
import { import {
API_SCENARIO_CONFIGS, API_SCENARIO_CONFIGS,

View File

@ -68,8 +68,8 @@
<ms-table-column <ms-table-column
prop="status" prop="status"
sortable="custom" :sortable="trashEnable ? false:'custom'"
:filters="!trashEnable ? statusFilters : statusFiltersTrash" :filters="!trashEnable ? statusFilters : null"
:field="item" :field="item"
:fields-width="fieldsWidth" :fields-width="fieldsWidth"
min-width="120px" min-width="120px"