From 9f6367d4fe0c875161abce25ee0153d5dfc80e45 Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Thu, 11 Aug 2022 16:22:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A6=85=E9=81=93=E5=B7=B2?= =?UTF-8?q?=E7=9F=A5bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/commentList.vue | 11 +++++++++ .../components/comparisonResults.vue | 18 ++++++++------- .../components/documentDataComparison.vue | 23 ++++++++++--------- .../components/initiateComparison.vue | 18 ++++++++------- .../documentComparison/index.vue | 2 +- 5 files changed, 44 insertions(+), 28 deletions(-) diff --git a/jero-web/src/views/documentTools/documentComparison/components/commentList.vue b/jero-web/src/views/documentTools/documentComparison/components/commentList.vue index 00e59eb5d..8ca470ca2 100644 --- a/jero-web/src/views/documentTools/documentComparison/components/commentList.vue +++ b/jero-web/src/views/documentTools/documentComparison/components/commentList.vue @@ -122,6 +122,11 @@ required: true, message: this.$t('publishComment') + this.$t('cannotEmpty'), trigger: 'blur' + }, + { + max: 500, + message: this.$t('publishComment') + this.$t('cannotExceed') + 500 + this.$t('Characters'), + trigger: 'blur' } ], replyContent: [ @@ -129,6 +134,11 @@ required: true, message: this.$t('replyToComments') + this.$t('cannotEmpty'), trigger: 'blur' + }, + { + max: 500, + message: this.$t('replyToComments') + this.$t('cannotExceed') + 500 + this.$t('Characters'), + trigger: 'blur' } ] } @@ -286,6 +296,7 @@ display: inline-block; margin-top: 22px; margin-left: 40px; + word-break: break-word; } .title-text { diff --git a/jero-web/src/views/documentTools/documentComparison/components/comparisonResults.vue b/jero-web/src/views/documentTools/documentComparison/components/comparisonResults.vue index cc41ad401..fdcb3c505 100644 --- a/jero-web/src/views/documentTools/documentComparison/components/comparisonResults.vue +++ b/jero-web/src/views/documentTools/documentComparison/components/comparisonResults.vue @@ -28,10 +28,12 @@ style="margin-left: 20px;float: left">
{{$t('selectedStandard')}}:{{resultData.serialNumberLeft}} {{resultData.fileNameLeft}}
{{$t('selectedStandard')}}:{{resultData.serialNumberRight}} {{resultData.fileNameRight}}
@@ -87,8 +89,8 @@
-
- {{$t('fullTextComments')}}: {{resultData.comments}} +
+ {{$t('fullTextComments')}}: {{resultData.comments}}
@@ -307,8 +309,8 @@ this.rulesText = { comment: [ { - max: 300, - message: this.$t('fullTextComments') + this.$t('cannotExceed') + 300 + this.$t('Characters'), + max: 500, + message: this.$t('fullTextComments') + this.$t('cannotExceed') + 500 + this.$t('Characters'), trigger: 'blur' } ] @@ -326,8 +328,8 @@ this.rulesText = { comment: [ { - max: 300, - message: this.$t('comparativeComments') + this.$t('cannotExceed') + 300 + this.$t('Characters'), + max: 500, + message: this.$t('comparativeComments') + this.$t('cannotExceed') + 500 + this.$t('Characters'), trigger: 'blur' } ] @@ -572,6 +574,7 @@ font-size: 14px; font-weight: 400; color: #040B29; + word-break: break-word; } .detail-content-content-text-left-text { @@ -586,8 +589,7 @@ -webkit-box-orient: vertical; -webkit-line-clamp: 3; /*! autoprefixer: on;*/ - text-justify: inter-ideograph; - word-break: break-all + word-break: break-word; } .box-title-text-Remarks { diff --git a/jero-web/src/views/documentTools/documentComparison/components/documentDataComparison.vue b/jero-web/src/views/documentTools/documentComparison/components/documentDataComparison.vue index 971c3c12e..dfe2eeb53 100644 --- a/jero-web/src/views/documentTools/documentComparison/components/documentDataComparison.vue +++ b/jero-web/src/views/documentTools/documentComparison/components/documentDataComparison.vue @@ -30,7 +30,7 @@
-
+
{{this.resultData.serialNumberLeft}}  {{this.resultData.fileNameLeft}}
@@ -56,14 +56,15 @@
- + {{this.resultData.serialNumberRight}}  {{this.resultData.fileNameRight}} - - - - + + + +
{{$t('standard')}}
- +
@@ -29,8 +29,8 @@
{{$t('title')}}
- +
@@ -84,8 +84,8 @@
{{$t('standard')}}
- +
@@ -93,8 +93,8 @@
{{$t('title')}}
- +
@@ -348,6 +348,7 @@ let query = { pageNo: this.pageNoLeft, pageSize: this.pageSizeLeft, + fileId:'1', ...queryParam } this.loadingLeft = true @@ -371,6 +372,7 @@ let query = { pageNo: this.pageNoRight, pageSize: this.pageSizeRight, + fileId:'1', ...queryParam } this.loadingRight = true diff --git a/jero-web/src/views/documentTools/documentComparison/index.vue b/jero-web/src/views/documentTools/documentComparison/index.vue index d147eefe1..974e48a5b 100644 --- a/jero-web/src/views/documentTools/documentComparison/index.vue +++ b/jero-web/src/views/documentTools/documentComparison/index.vue @@ -57,7 +57,7 @@ size="middle" :loading="loading" :pagination="false" - :scroll="{x: '100%'}" + :scroll="{x: '100%',y:'calc(100vh - 280px)'}" rowKey="id" :data-source="dataSource" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"