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
where project_id = #{projectId}
and status = 'Trash'
and latest IS TRUE
</select>
<select id="selectNameById" resultType="java.lang.String">

View File

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

View File

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