From b24825a8a4ac23ca71b7fb17e6f520175483a30f Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 14 May 2020 14:35:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B5=8B=E8=AF=95=E6=8A=A5?= =?UTF-8?q?=E5=91=8A=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TemplateComponent/RichTextComponent.vue | 23 +++++++++++++------ .../TemplateComponent/TemplateComponent.vue | 8 +++++-- .../components/TestCaseReportTemplateEdit.vue | 2 +- .../view/comonents/TestCaseReportView.vue | 2 +- 4 files changed, 24 insertions(+), 11 deletions(-) diff --git a/frontend/src/business/components/settings/workspace/components/TemplateComponent/RichTextComponent.vue b/frontend/src/business/components/settings/workspace/components/TemplateComponent/RichTextComponent.vue index 9018961bfd..39f0e05391 100644 --- a/frontend/src/business/components/settings/workspace/components/TemplateComponent/RichTextComponent.vue +++ b/frontend/src/business/components/settings/workspace/components/TemplateComponent/RichTextComponent.vue @@ -3,11 +3,13 @@ @@ -31,12 +33,19 @@ } }, props: { - preview: Object, - default() { - return { - title: '', - content: '

Content of the editor.

' + preview: { + type: Object, + default() { + return { + title: '', + content: '

Content of the editor.

' + } } + }, + isReportView: + { + type: Boolean, + default: false } } } diff --git a/frontend/src/business/components/settings/workspace/components/TemplateComponent/TemplateComponent.vue b/frontend/src/business/components/settings/workspace/components/TemplateComponent/TemplateComponent.vue index 3a12127522..dfb5d74f8f 100644 --- a/frontend/src/business/components/settings/workspace/components/TemplateComponent/TemplateComponent.vue +++ b/frontend/src/business/components/settings/workspace/components/TemplateComponent/TemplateComponent.vue @@ -14,7 +14,7 @@ - + @@ -38,7 +38,11 @@ isReport: { type: Boolean, default: true - } + }, + isReportView: { + type: Boolean, + default: true + }, } } diff --git a/frontend/src/business/components/settings/workspace/components/TestCaseReportTemplateEdit.vue b/frontend/src/business/components/settings/workspace/components/TestCaseReportTemplateEdit.vue index b3449dfcc5..de515a57cb 100644 --- a/frontend/src/business/components/settings/workspace/components/TestCaseReportTemplateEdit.vue +++ b/frontend/src/business/components/settings/workspace/components/TestCaseReportTemplateEdit.vue @@ -37,7 +37,7 @@ group="component">
- +
diff --git a/frontend/src/business/components/track/plan/view/comonents/TestCaseReportView.vue b/frontend/src/business/components/track/plan/view/comonents/TestCaseReportView.vue index bf940ba608..a64fa1fac3 100644 --- a/frontend/src/business/components/track/plan/view/comonents/TestCaseReportView.vue +++ b/frontend/src/business/components/track/plan/view/comonents/TestCaseReportView.vue @@ -28,7 +28,7 @@
- +