From ffe1f8805227a954a85e5585af08c64b7466db7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Mon, 23 Oct 2023 18:23:31 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=96=87=E6=A1=A3=E5=AF=B9=E6=AF=94-?= =?UTF-8?q?=E5=AF=B9=E6=AF=94=E7=BB=93=E6=9E=9C=E6=A0=B7=E5=BC=8F=E9=87=8D?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../documentComparison/ComparisonResults.vue | 548 +++++++----------- 1 file changed, 198 insertions(+), 350 deletions(-) diff --git a/src/views/documentTool/documentComparison/ComparisonResults.vue b/src/views/documentTool/documentComparison/ComparisonResults.vue index eafab913..b26b5e41 100644 --- a/src/views/documentTool/documentComparison/ComparisonResults.vue +++ b/src/views/documentTool/documentComparison/ComparisonResults.vue @@ -41,100 +41,85 @@
-
-
+
+ :class="{'result-content-header-content-item-no-operation': isDisplay}"> {{ $t('docTool.comparison.selectedStandard') }}:{{ resultData.serialNumberLeft }} + {{ resultData.fileNameLeft }}
-
+ :class="{'result-content-header-content-item-no-operation':isDisplay}"> {{ $t('docTool.comparison.selectedStandard') }}:{{ resultData.serialNumberRight }} {{ resultData.fileNameRight }}
-
{{ $t('docTool.comparison.comparisonDifferenceComment') }}
-
+
{{ $t('operation') }}
+
-
- -
-
-
-
- {{ item.itemsNumLeft }} - {{ item.itemsNameLeft }} -
-
+
+ +
+ + +
+
+ {{ item.itemsNumLeft }} + {{ item.itemsNameLeft }}
-
-
- {{ item.itemsNumRight }} - {{ item.itemsNameRight }} -
-
-
-
-
- {{ item.comment }} -
-
- - - - - - - - - - - - - +
-
- - - {{ $t('edit') }} - - {{ $t('delete') }} - + +
+
+ {{ item.itemsNumRight }} + {{ item.itemsNameRight }} +
+
+
+ +
+
+ {{ item.comment }} +
+
+ +
-
- - -
-
-
- {{ $t('docTool.comparison.fullTextComments') }}: {{ resultData.comments }} -
+ +
+ +
+
+ + + {{ $t('docTool.comparison.fullTextComments') }}:{{ resultData.comments }} +
-
@@ -368,11 +353,59 @@ export default { height: 56px; line-height: 56px; margin-bottom: 20px; + display: flex; + align-items: center; } &-header > .ant-checkbox-wrapper { margin-left: 20px; - float: left; + } +} + +.result-content-header-content { + width: calc(100% - 56px); + margin-left: 20px; + display: inline-block; + height: 56px; + font-size: 14px; + font-family: Blue Sky Noto, sans-serif; + font-weight: bold; + color: #040B29; + background: rgba(4, 11, 41, 0.0300); + border-radius: 4px; + + &-item { + height: 56px; + display: inline-block; + border-right: 1px #EFF1F3 solid; + padding: 0 24px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + + &-item:last-child { + border-right: none; + } + + &-item-standard { + width: calc((100% - 128px - 260px) / 2); + + span { + cursor: pointer; + } + } + + &-item-no-operation { + width: calc((100% - 260px) / 2); + } + + &-item-comment { + width: 260px; + } + + &-item-operation { + width: 128px; } } @@ -381,315 +414,130 @@ export default { overflow: auto; } -.detail-content-header-content { - width: calc(100% - 56px); - margin-left: 20px; - display: inline-block; - height: 56px; - font-size: 14px; - font-family: Blue Sky Noto; - font-weight: bold; - color: #040B29; - - .detail-content-header-content-left { - width: calc(50% - 194px); - height: 56px; - display: inline-block; - background: rgba(4, 11, 41, 0.0300); - border-radius: 4px 0px 0px 4px; - border-right: 1px #EFF1F3 solid; - padding-left: 24px; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - } - - .detail-content-header-content-content { - width: calc(50% - 194px); - display: inline-block; - height: 56px; - background: rgba(4, 11, 41, 0.0300); - border-radius: 4px 0px 0px 4px; - border-right: 1px #EFF1F3 solid; - padding-left: 24px; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - } - - .detail-content-header-content-rightOne { - width: 260px; - display: inline-block; - height: 56px; - background: rgba(4, 11, 41, 0.0300); - border-radius: 4px 0px 0px 4px; - padding-left: 24px; - border-right: 1px #EFF1F3 solid; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - } - - .detail-content-header-content-rightOne-active { - border-right: none; - } - - .detail-content-header-content-right { - width: 128px; - display: inline-block; - height: 56px; - background: rgba(4, 11, 41, 0.0300); - border-radius: 4px 0px 0px 4px; - padding-left: 24px; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - } -} - -.detail-content-header-content-left { - width: calc(50% - 194px); - height: 56px; - display: inline-block; - background: rgba(4, 11, 41, 0.0300); - border-radius: 4px 0px 0px 4px; - border-right: 1px #EFF1F3 solid; - padding-left: 24px; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -.detail-content-header-content-content { - width: calc(50% - 194px); - display: inline-block; - height: 56px; - background: rgba(4, 11, 41, 0.0300); - border-radius: 4px 0px 0px 4px; - border-right: 1px #EFF1F3 solid; - padding-left: 24px; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -.detail-content-header-content-rightOne { - width: 260px; - display: inline-block; - height: 56px; - background: rgba(4, 11, 41, 0.0300); - border-radius: 4px 0px 0px 4px; - padding-left: 24px; - border-right: 1px #EFF1F3 solid; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -.detail-content-header-content-rightOne-active { - border-right: none; -} - -.detail-content-header-content-right { - width: 128px; - display: inline-block; - height: 56px; - background: rgba(4, 11, 41, 0.0300); - border-radius: 4px 0px 0px 4px; - padding-left: 24px; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -.detail-content-content { +.clause-item { width: 100%; height: auto; - position: relative; - margin-bottom: 24px; + display: flex; + align-items: center; + + &-checkbox { + margin-left: 20px; + } } -.detail-checkbox { - margin-left: 28px; - float: left; - position: absolute; - top: 50%; - transform: translate(-50%, -50%); -} - -.detail-content-content-text { +.clause-item-content { width: calc(100% - 56px); - margin-left: 56px; + margin-left: 20px; border: 1px solid #EFF1F3; border-radius: 4px; overflow: hidden; + display: flex; + align-items: stretch; - .detail-content-content-text-left { - width: calc(100% - 128px); - float: left; - border-right: 1px solid #EFF1F3; - padding: 24px; - box-sizing: border-box; - overflow: hidden; + &-selected { + border: 1px solid #00B3BE; + background: rgba(0, 179, 190, 0.0300); } - .detail-content-content-text-right { - width: 128px; - float: left; - height: auto; - text-align: center; + &-standard { + width: calc((100% - 128px - 260px) / 2); + padding: 24px; + border-right: 1px #EFF1F3 solid; - .text-button-one { - display: inline-block; - width: 128px; - position: absolute; - top: 50%; - transform: translate(-50%, -50%); + &-title { + font-size: 16px; + font-family: Blue Sky Noto, sans-serif; + font-weight: 400; + color: #040B29; } + } + + &-standard-no-operation { + width: calc((100% - 260px) / 2); + } + + &-text { + font-size: 14px; + font-weight: 400; + color: #040B29; + margin-top: 10px; + + /deep/ table { + width: 100%; + } + } + + &-comment { + width: 260px; + padding: 24px; + border-right: 1px #EFF1F3 solid; + } + + &-operation { + width: 128px; + display: flex; + align-items: center; + justify-content: center; .text-button { - margin-right: 8px; + margin-left: 10px; + } + .text-button:first-child { + margin-left: 0; } } } -.detail-content-content-text-color { - border: 1px solid #00B3BE; - background: rgba(0, 179, 190, 0.0300); -} +.full-text-review { + height: 109px; + margin: 10px 0; -.detail-content-left { - width: calc(50% - 130px); - display: inline-block; - float: left; - padding-right: 24px; - border-right: 1px #EFF1F3 solid; -} + &-content { + margin-left: 20px; + height: 100%; + display: flex; + align-items: stretch; + border: 1px #EFF1F3 solid; + border-radius: 4px; + } -.detail-content-right { - width: calc(50% - 104px); - display: inline-block; - float: left; - padding-left: 24px; - padding-right: 24px; - border-right: 1px #EFF1F3 solid; -} + &-text { + width: calc(100% - 128px); + padding: 24px; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + text-overflow: ellipsis; + /*! autoprefixer: off */ + -webkit-box-orient: vertical; + -webkit-line-clamp: 3; + /*! autoprefixer: on;*/ + word-break: break-word; -.detail-content-right-one { - width: 234px; - display: inline-block; - float: left; - padding-left: 24px; - /*border-right: 1px #EFF1F3 solid;*/ -} + span { + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + text-overflow: ellipsis; + /*! autoprefixer: off */ + -webkit-box-orient: vertical; + -webkit-line-clamp: 3; + /*! autoprefixer: on;*/ + word-break: break-word; + } + } -.detail-content-left-top { - font-size: 16px; - font-family: Blue Sky Noto; - font-weight: 400; - color: #040B29; -} - -.detail-content-left-button { - font-size: 14px; - font-weight: 400; - color: #040B29; - margin-top: 10px; - - /deep/ table { + &-text-no-operation { width: 100%; } -} -.detail-content-bottom { - width: 100%; - margin-top: 14px; - padding: 24px; - box-sizing: border-box; - background: rgba(4, 11, 41, 0.0300); - border-radius: 4px; - float: left; -} - -.detail-content-bottom-color { - background: rgba(0, 179, 190, 0.0300); -} - -.detail-content-bottom-left { - width: 115px; - font-size: 14px; - font-weight: 400; - color: #040B29; - float: left; - text-overflow: ellipsis; - white-space: nowrap; - overflow: hidden; -} - -.detail-content-bottom-right { - width: calc(50% - 115px); - float: left; - font-size: 14px; - font-weight: 400; - color: #040B29; - word-break: break-word; -} - -.detail-content-content-text-left-text { - width: 100%; - font-size: 14px; - font-weight: 400; - color: #040B29; - overflow: hidden; - display: -webkit-box; - text-overflow: ellipsis; - /*! autoprefixer: off */ - -webkit-box-orient: vertical; - -webkit-line-clamp: 3; - /*! autoprefixer: on;*/ - word-break: break-word; -} - -.detail-content-content-text-dis { - width: 100% !important; -} - -.detail-content-header-content-left-active { - width: calc(50% - 130px) !important; -} - -.detail-content-bottom-left-text { - width: 256px; -} - -.detail-content-bottom-right-text { - width: calc(50% - 256px); -} - -.box-title-text-remarks { - line-height: 1.4; - display: flex; - /*align-items: center;*/ - margin-bottom: 10px; -} - -.title-text-remarks { - width: 68px; - color: #000F16; - display: inline-block; - font-weight: 500; - font-size: 14px; - margin-right: 16px; - margin-top: 6px; - text-align: right; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -.operator-text-text-text { - color: #00B3BE !important; + &-operation { + width: 128px; + display: flex; + justify-content: center; + align-items: center; + } } .header-btn {