From 29eafe453105357612ae6943a54bb70f88af2824 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 12 May 2022 17:23:57 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):?= =?UTF-8?q?=20=E9=A6=96=E9=A1=B5=E5=85=B3=E8=81=94=E7=94=A8=E4=BE=8B?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E7=BB=9F=E8=AE=A1=E5=B0=BD=E9=87=8F=E4=B8=80?= =?UTF-8?q?=E8=A1=8C=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1013121 --user=陈建星 【测试跟踪】首页 关联用例数量统计名称 建议一行展示 https://www.tapd.cn/55049933/s/1157029 --- .../io/metersphere/track/controller/TrackController.java | 6 +++--- .../track/home/components/RelevanceCaseCard.vue | 9 +++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/backend/src/main/java/io/metersphere/track/controller/TrackController.java b/backend/src/main/java/io/metersphere/track/controller/TrackController.java index 8eac505f28..bd782b4bd4 100644 --- a/backend/src/main/java/io/metersphere/track/controller/TrackController.java +++ b/backend/src/main/java/io/metersphere/track/controller/TrackController.java @@ -75,9 +75,9 @@ public class TrackController { statistics.setCoverageRage(df.format(coverageRageNumber) + "%"); } - statistics.setApiCaseCountStr(Translator.get("api_case") + "  

" + statistics.getApiCaseCount()); - statistics.setPerformanceCaseCountStr(Translator.get("performance_case") + "  

" + statistics.getPerformanceCaseCount()); - statistics.setScenarioCaseStr(Translator.get("scenario_case") + "  

" + statistics.getScenarioCaseCount()); + statistics.setApiCaseCountStr(Translator.get("api_case") + "

" + statistics.getApiCaseCount()); + statistics.setPerformanceCaseCountStr(Translator.get("performance_case") + "

" + statistics.getPerformanceCaseCount()); + statistics.setScenarioCaseStr(Translator.get("scenario_case") + "

" + statistics.getScenarioCaseCount()); return statistics; } diff --git a/frontend/src/business/components/track/home/components/RelevanceCaseCard.vue b/frontend/src/business/components/track/home/components/RelevanceCaseCard.vue index 25041d4947..5516b2febe 100644 --- a/frontend/src/business/components/track/home/components/RelevanceCaseCard.vue +++ b/frontend/src/business/components/track/home/components/RelevanceCaseCard.vue @@ -145,9 +145,13 @@ export default { border-bottom: 0px solid #EBEEF5; } +.el-card >>> .el-card__body { + padding-right: 0; +} .count-info-div{ margin-top: 3px; margin-bottom: 3px; + text-align: center; } .count-info-div >>>p{ font-size: 10px; @@ -156,4 +160,9 @@ export default { position: absolute; top: 0; } + +.el-col { + padding-right: 0 !important; + padding-left: 0 !important; +}