From e217d1e9e5a6b176d0e8415074e1875f74d254b0 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Tue, 28 Mar 2023 14:16:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=AF=B9=E6=AF=94=E9=97=AE=E9=A2=98=E6=B1=87?= =?UTF-8?q?=E6=80=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1023474 --user=宋昌昌 【测试跟踪】功能用例-编辑-版本对比-问题汇总 https://www.tapd.cn/55049933/s/1356366 --- .../src/business/app-layout/index.vue | 3 +- .../business/case/components/TestCaseEdit.vue | 18 +- .../case/diff/CaseDiffSideViewer.vue | 4 +- .../components/case/diff/CaseDiffViewer.vue | 356 +++++++++--------- .../case/components/case/diff/version_diff.js | 12 +- .../components/head/TestCaseEditNameView.vue | 2 +- 6 files changed, 204 insertions(+), 191 deletions(-) diff --git a/framework/sdk-parent/frontend/src/business/app-layout/index.vue b/framework/sdk-parent/frontend/src/business/app-layout/index.vue index dd56f2a398..7f9944ea48 100644 --- a/framework/sdk-parent/frontend/src/business/app-layout/index.vue +++ b/framework/sdk-parent/frontend/src/business/app-layout/index.vue @@ -277,8 +277,9 @@ export default { } .container { - padding: 0px !important; + padding: 0!important; height: calc(100vh); + background-color: #F5F6F7; } .ms-aside-left { diff --git a/test-track/frontend/src/business/case/components/TestCaseEdit.vue b/test-track/frontend/src/business/case/components/TestCaseEdit.vue index 00ccac0313..c3b280b96a 100644 --- a/test-track/frontend/src/business/case/components/TestCaseEdit.vue +++ b/test-track/frontend/src/business/case/components/TestCaseEdit.vue @@ -1802,7 +1802,7 @@ export default { color: #646a73; align-items: center; margin-left: px2rem(8); - padding: -1px 0.2rem; + padding: 0.1rem 0.4rem; .version-icon { width: 20.17px; @@ -1897,7 +1897,7 @@ export default { .label-row { } margin-right: px2rem(20.67); - padding: 0.2rem 0.5rem 0.2rem 0; + padding: 0.1rem 0.4rem 0.1rem 0; } .next-public-row.head-opt { @@ -1909,7 +1909,7 @@ export default { .label-row { } margin-right: px2rem(20.67); - padding: 0.2rem 0 0.2rem 0.5rem; + padding: 0.1rem 0 0.1rem 0.4rem; } .follow-row.head-opt { @@ -1921,7 +1921,7 @@ export default { .label-row { } margin-right: px2rem(10); - padding: 0.2rem 0.5rem; + padding: 0.1rem 0.4rem; } .edit-public-row.head-opt { @@ -1933,7 +1933,7 @@ export default { .label-row { } margin-right: px2rem(20.67); - padding: 0.2rem 0.5rem; + padding: 0.1rem 0.4rem; } .copy-public-row.head-opt { @@ -1945,10 +1945,10 @@ export default { .label-row { } margin-right: px2rem(20.67); - padding: 0.2rem 0.5rem; + padding: 0.1rem 0.4rem; } .close-row.head-opt { - padding: 0.2rem; + padding: 0.15rem; } .add-public-row.head-opt { .icon-row { @@ -1971,7 +1971,7 @@ export default { .label-row { } margin-right: px2rem(24); - padding: 0.2rem 0.5rem; + padding: 0.1rem 0.4rem; } } } @@ -2012,6 +2012,7 @@ export default { font-size: 14px; color: #783887; cursor: pointer; + padding: 0.3rem; } .diff-latest:hover{ background: rgba(120, 56, 135, 0.1); @@ -2027,6 +2028,7 @@ export default { font-size: 14px; color: #783887; cursor: pointer; + padding: 0.3rem; } } } diff --git a/test-track/frontend/src/business/case/components/case/diff/CaseDiffSideViewer.vue b/test-track/frontend/src/business/case/components/case/diff/CaseDiffSideViewer.vue index 1c1437c138..5b196359ac 100644 --- a/test-track/frontend/src/business/case/components/case/diff/CaseDiffSideViewer.vue +++ b/test-track/frontend/src/business/case/components/case/diff/CaseDiffSideViewer.vue @@ -42,7 +42,7 @@ export default { props: { width: { type: Number, - default: 1200, + default: 1152, }, dialogTitle: { type: String, @@ -56,7 +56,7 @@ export default { if (!isNaN(this.width)) { //计算rem let remW = (this.width / 1440) * 100; - let standW = (1200 / 1440) * 100; + let standW = (1152 / 1440) * 100; return remW > standW ? remW : standW + "%"; } return this.width; diff --git a/test-track/frontend/src/business/case/components/case/diff/CaseDiffViewer.vue b/test-track/frontend/src/business/case/components/case/diff/CaseDiffViewer.vue index 3528e75516..c0b9806ed9 100644 --- a/test-track/frontend/src/business/case/components/case/diff/CaseDiffViewer.vue +++ b/test-track/frontend/src/business/case/components/case/diff/CaseDiffViewer.vue @@ -38,218 +38,232 @@
-
-
-
-
{{ $t("case.case_name") }}
-
-
-
-
- + +
+
+
+
{{ $t("case.case_name") }}
+
+
+
+
+ +
-
- -
-
-
- {{ $t("case.preconditions") }} + +
+
+
+ {{ $t("case.preconditions") }} +
+
+
+
+ +
-
-
- -
-
-
- -
- -
-
- {{ - contentDiffData.stepModel === "TEXT" - ? $t("test_track.case.text_describe") - : $t("test_track.case.step_describe") - }} + +
+ +
+
+ {{ + contentDiffData.stepModel === "TEXT" + ? $t("test_track.case.text_describe") + : $t("test_track.case.step_describe") + }} +
+
-
-
- -
-
- + +
+
+ +
-
- -
-
-
- {{ $t("test_track.case.expected_results") }} + +
+
+
+ {{ $t("test_track.case.expected_results") }} +
+
+
+
+ +
-
-
- -
-
-
- -
-
-
{{ $t("commons.remark") }}
-
-
-
- + +
+
+
{{ $t("commons.remark") }}
+
+
+
+ +
-
- -
-
-
{{ $t("case.attachment") }}
-
-
- - -
-
- -
{{ $t("case.none") }}
+ +
+
+
{{ $t("case.attachment") }}
+
+
+ + +
+
+ +
{{ $t("case.none") }}
+
-
+ -
- -
+ +
+ +
+
-
- -
+ +
+ +
+
-
- -
+ +
+ +
+
-
- -
+ +
+ +
+
-
- -
-
-
- {{ $t("test_track.case.module") }} +
+ +
+ +
+
+
+ {{ $t("test_track.case.module") }} +
+
+
+
-
-
- -
- -
-
-
- {{ item.key }} + +
+
+
+ {{ item.key }} +
+
+
+
-
-
- -
- -
-
-
- {{ $t("test_track.related_requirements") }} + +
+
+
+ {{ $t("test_track.related_requirements") }} +
+
+
+
-
-
- -
- -
-
-
- {{ $t("test_track.case.demand_name_id") }} + +
+
+
+ {{ $t("test_track.case.demand_name_id") }} +
+
+
+
-
-
- -
- -
-
-
- {{ $t("commons.tag") }} + +
+
+
+ {{ $t("commons.tag") }} +
+
+
- -
+
@@ -914,6 +928,10 @@ export default { text-align: center; line-height: 16px; } + +.content-base-info-wrap { + height: calc(100vh - 110px); +}