diff --git a/frontend/src/business/components/api/definition/components/list/ApiList.vue b/frontend/src/business/components/api/definition/components/list/ApiList.vue index f1dcc8c58c..0688bfe066 100644 --- a/frontend/src/business/components/api/definition/components/list/ApiList.vue +++ b/frontend/src/business/components/api/definition/components/list/ApiList.vue @@ -274,7 +274,12 @@ }, }, created: function () { - this.condition.filters = {status: ["Prepare", "Underway", "Completed"]}; + if (this.trashEnable) { + this.condition.filters = {status: ["Trash"]}; + } + else { + this.condition.filters = {status: ["Prepare", "Underway", "Completed"]}; + } this.initTable(); this.getMaintainerOptions(); }, diff --git a/frontend/src/business/components/track/plan/view/comonents/api/RelevanceScenarioList.vue b/frontend/src/business/components/track/plan/view/comonents/api/RelevanceScenarioList.vue index b50dbfa2b3..d142385aaf 100644 --- a/frontend/src/business/components/track/plan/view/comonents/api/RelevanceScenarioList.vue +++ b/frontend/src/business/components/track/plan/view/comonents/api/RelevanceScenarioList.vue @@ -19,8 +19,8 @@ @@ -101,6 +101,15 @@ }, }, methods: { + getTagString(tagsString) { + // if(tagsString.length == 2) { + if(tagsString.length >= 2 && tagsString[0] == '[' && tagsString[1] == ']') { + return null; + } + tagsString = tagsString.substring(1, tagsString.length - 1); + let tagList = tagsString.split(','); + return tagList; + }, search() { this.selectRows = new Set(); this.loading = true;