From 0054a5d6eac6f5abd3d37be03e0aa06c07d029c4 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Thu, 29 Jul 2021 18:11:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=A1=88=E4=BE=8B=E8=AF=84=E5=AE=A1):=20?= =?UTF-8?q?=E6=A1=88=E4=BE=8B=E9=80=89=E6=8B=A9=E6=9C=AA=E9=80=9A=E8=BF=87?= =?UTF-8?q?=E6=97=B6=E9=AB=98=E4=BA=AE=E6=98=BE=E7=A4=BA=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 案例选择未通过时高亮显示编辑框 --- .../track/review/commom/ReviewComment.vue | 23 +++++++++++++++---- .../components/TestReviewTestCaseEdit.vue | 4 ++-- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/frontend/src/business/components/track/review/commom/ReviewComment.vue b/frontend/src/business/components/track/review/commom/ReviewComment.vue index 9eb169c789..7a1834efac 100644 --- a/frontend/src/business/components/track/review/commom/ReviewComment.vue +++ b/frontend/src/business/components/track/review/commom/ReviewComment.vue @@ -15,7 +15,7 @@
-
+
@@ -113,10 +113,22 @@ export default { } }); }, - /* inputLight() { - this.$refs.md.focus(); - },*/ + inputLight() { + let textAreaDom = this.$refs.md.getTextareaDom(); + let editorDivDom = document.getElementById("editorsDiv"); + if(editorDivDom){ + editorDivDom.setAttribute("style","-webkit-box-shadow: 0 0 8px rgb(205,51,43);"); + } + textAreaDom.focus(); + }, + resetInputLight(){ + let editorDivDom = document.getElementById("editorsDiv"); + if(editorDivDom){ + editorDivDom.setAttribute("style","-webkit-box-shadow: 0 0 0px rgb(-1,0,0);"); + } + }, refresh() { + this.resetInputLight(); this.$emit('getComments'); }, //富文本框 @@ -171,4 +183,7 @@ export default { overflow-y: scroll; height: calc(100vh - 450px); } +.editors-div{ + -webkit-box-shadow: 0 0 8px rgb(-1,0,0); +} diff --git a/frontend/src/business/components/track/review/view/components/TestReviewTestCaseEdit.vue b/frontend/src/business/components/track/review/view/components/TestReviewTestCaseEdit.vue index bc17696061..7609a48e4f 100644 --- a/frontend/src/business/components/track/review/view/components/TestReviewTestCaseEdit.vue +++ b/frontend/src/business/components/track/review/view/components/TestReviewTestCaseEdit.vue @@ -272,8 +272,8 @@ export default { } }); } else { - /* this.$refs.reviewComment.inputLight();*/ - this.$warning(this.$t('test_track.comment.description_is_null')); + this.$refs.reviewComment.inputLight(); + // this.$warning(this.$t('test_track.comment.description_is_null')); } } else { this.$post('/test/review/case/edit', param, () => {