diff --git a/frontend/src/business/components/api/automation/scenario/api/RelevanceApiList.vue b/frontend/src/business/components/api/automation/scenario/api/RelevanceApiList.vue index 80f4f8c750..1bbf85857f 100644 --- a/frontend/src/business/components/api/automation/scenario/api/RelevanceApiList.vue +++ b/frontend/src/business/components/api/automation/scenario/api/RelevanceApiList.vue @@ -198,7 +198,7 @@ result: {}, moduleId: "", deletePath: "/test/case/delete", - screenHeight: document.documentElement.clientHeight - 500,//屏幕高度, + screenHeight: document.documentElement.clientHeight - 400,//屏幕高度, typeArr: [ {id: 'priority', name: this.$t('test_track.case.priority')}, ], @@ -315,6 +315,11 @@ this.result = this.$post(url + this.currentPage + "/" + this.pageSize, this.condition, response => { this.total = response.data.itemCount; this.tableData = response.data.listObject; + this.tableData.forEach(item => { + if (item.tags && item.tags.length > 0) { + item.tags = JSON.parse(item.tags); + } + }); this.genProtocalFilter(this.condition.protocol); this.$nextTick(function () { if (this.$refs.apitable) { diff --git a/frontend/src/business/components/api/automation/scenario/api/RelevanceCaseList.vue b/frontend/src/business/components/api/automation/scenario/api/RelevanceCaseList.vue index 1e86952132..c4b47913ef 100644 --- a/frontend/src/business/components/api/automation/scenario/api/RelevanceCaseList.vue +++ b/frontend/src/business/components/api/automation/scenario/api/RelevanceCaseList.vue @@ -211,7 +211,7 @@ export default { priority: CASE_PRIORITY, }, methodColorMap: new Map(API_METHOD_COLOUR), - screenHeight: document.documentElement.clientHeight - 330,//屏幕高度 + screenHeight: document.documentElement.clientHeight - 400,//屏幕高度 tableData: [], currentPage: 1, pageSize: 10,