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 刘瑞斌
parent 31b88e52c7
commit c9ff22ef2a
1 changed files with 6 additions and 1 deletions

View File

@ -68,7 +68,7 @@
<ms-table-column
prop="status"
sortable="custom"
:filters="statusFilters"
:filters="!trashEnable ? statusFilters : statusFiltersTrash"
:field="item"
:fields-width="fieldsWidth"
min-width="120px"
@ -81,6 +81,7 @@
</template>
</ms-table-column>
<ms-table-column
prop="method"
sortable="custom"
@ -379,8 +380,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: '通过'},