diff --git a/test-track/frontend/src/business/case/components/TestCasePreview.vue b/test-track/frontend/src/business/case/components/TestCasePreview.vue index 628583e869..b9dafd9843 100644 --- a/test-track/frontend/src/business/case/components/TestCasePreview.vue +++ b/test-track/frontend/src/business/case/components/TestCasePreview.vue @@ -9,16 +9,41 @@ -
+ +
-
+ +

{{$t('test_track.case.prerequisite')}}

- {{data.prerequisite}} +
+ {{$t('case.none')}} + +
+ - - - + +
+

{{$t('test_track.case.step_desc')}}

+
+ {{$t('case.none')}} + +
+
+ +
+

{{$t('test_track.case.expected_results')}}

+
+ {{$t('case.none')}} + +
+
+ +
+
+ +
+
@@ -29,6 +54,7 @@ import MsFormDivider from "metersphere-frontend/src/components/MsFormDivider"; import MsCaseDescTextItem from "metersphere-frontend/src/components/new-ui/MsCaseDescTextItem"; import StepChangeItem from "@/business/case/components/StepChangeItem"; import TestCaseStepItem from "@/business/case/components/TestCaseStepItem"; +import MsMarkDownText from "metersphere-frontend/src/components/MsMarkDownText"; export default { name: "TestCasePreview", @@ -37,6 +63,7 @@ export default { MsCaseDescTextItem, StepChangeItem, TestCaseStepItem, + MsMarkDownText }, props: { width: { @@ -109,6 +136,8 @@ export default { flex: none; order: 0; flex-grow: 0; + margin-top: 24px; + margin-bottom: 20px; } .prerequisite-item-layout h3{ @@ -152,4 +181,9 @@ export default { order: 0; flex-grow: 0; } + +.case-desc-form-div { + height: 150px; + overflow-y: scroll; +}