From 294ce2ce5976f80efe44535b5b50982a93f9c929 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Tue, 26 Apr 2022 14:16:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BF=9D=E5=AD=98=E8=BF=87=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E6=8A=A5=E5=91=8A=E9=85=8D=E7=BD=AE=E7=9A=84=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E9=87=8D=E6=96=B0=E9=85=8D=E7=BD=AE=E6=97=B6?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E9=85=8D=E7=BD=AE=E8=AF=AF=E6=8A=A5=E5=92=8C?= =?UTF-8?q?=E6=9C=AA=E6=89=A7=E8=A1=8Ctab=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1012724 --user=宋天阳 【测试跟踪】测试计划 - 报告统计,新增的误报和未执行tab没有配置统计开关 https://www.tapd.cn/55049933/s/1147640 --- .../report/detail/TestPlanReportContent.vue | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanReportContent.vue b/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanReportContent.vue index bb53ff2944..e0d1f4c7dc 100644 --- a/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanReportContent.vue +++ b/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanReportContent.vue @@ -152,10 +152,27 @@ export default { } }, getDefaultConfig(report) { - if (report && report.config) { + if (report && report.config && report.config!== "") { let configStr = report.config; if (configStr) { - return JSON.parse(configStr); + let configObj = JSON.parse(configStr); + if(configObj.api && configObj.api.children){ + if(!configObj.api.children.errorReport){ + let obj = { + enable: true, + name: this.$t('error_report_library.option.name'), + }; + configObj.api.children.errorReport = obj; + } + if(!configObj.api.children.unExecute){ + let obj = { + enable: true, + name: this.$t('api_test.home_page.detail_card.unexecute'), + }; + configObj.api.children.unExecute = obj; + } + } + return configObj; } } return {