From c9180bba81b105f1932d45223de440f8dd5e3cd0 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期一, 08 七月 2024 17:50:36 +0800 Subject: [PATCH] 阅卷、成绩显示富文本内容 --- src/views/answer/components/QuestionAnswerShow.vue | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/answer/components/QuestionAnswerShow.vue b/src/views/answer/components/QuestionAnswerShow.vue index 613bdf1..57c92db 100644 --- a/src/views/answer/components/QuestionAnswerShow.vue +++ b/src/views/answer/components/QuestionAnswerShow.vue @@ -51,8 +51,8 @@ <!-- 绠�绛斻�佽绠椼�佸垎鏋� --> <div v-else-if="qType == 5 || qType == 7 || qType == 8"> <div class="q-title" v-html="question.title"/> - <div> - <el-input v-model="question.answer" type="textarea" rows="5" ></el-input> + <div class="rich-text-box"> + <div v-html="question.answer"></div> </div> </div> <div class="question-answer-show-item" style="margin-top: 15px"> @@ -185,4 +185,9 @@ color: #606266 } +.rich-text-box { + border: 1px solid #ccc; /* 娣诲姞杈规 */ + padding: 10px ; /* 娣诲姞鍐呰竟璺濅互鎻愪緵绌洪棿 */ + box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); +} </style> -- Gitblit v1.8.0