fix(接口测试): 接口定义列表按状态筛选可选状态不对

--bug=1009400 --user=王孝刚 接口定义列表按状态筛选可选状态不对
https://www.tapd.cn/55049933/s/1088375
This commit is contained in:
wxg0103 2021-12-29 19:23:34 +08:00 committed by fit2-zhao
parent c9f727aa28
commit 151af4c5af
1 changed files with 6 additions and 1 deletions

View File

@ -67,7 +67,7 @@
<ms-table-column
prop="status"
sortable="custom"
:filters="statusFilters"
:filters="!trashEnable ? statusFilters : statusFiltersTrash"
:field="item"
:fields-width="fieldsWidth"
min-width="120px"
@ -80,6 +80,7 @@
</template>
</ms-table-column>
<ms-table-column
prop="method"
sortable="custom"
@ -362,8 +363,12 @@ export default {
{text: this.$t('test_track.plan.plan_status_prepare'), value: 'Prepare'},
{text: this.$t('test_track.plan.plan_status_running'), value: 'Underway'},
{text: this.$t('test_track.plan.plan_status_completed'), value: 'Completed'},
],
statusFiltersTrash: [
{text: this.$t('test_track.plan.plan_status_trash'), value: 'Trash'},
],
caseStatusFilters: [
{text: this.$t('api_test.home_page.detail_card.unexecute'), value: '未执行'},
{text: this.$t('test_track.review.pass'), value: '通过'},