From 9738921748aa4d14f29de21f9b8f599dc613374d Mon Sep 17 00:00:00 2001 From: danshihao Date: Thu, 27 Jun 2024 17:23:07 +0800 Subject: [PATCH] =?UTF-8?q?[update=20=E6=A0=87=E5=87=86=E6=8B=86=E5=88=86]?= =?UTF-8?q?=20=E6=9F=A5=E7=9C=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/StandardResolutionSheet.vue | 90 ++++++++++++------- src/views/dashboard/search/AdvancedSearch.vue | 2 +- src/views/dashboard/search/GeneralSearch.vue | 4 +- .../tags/modules/ClauseSplittingDrawer.vue | 12 +-- .../system/tags/modules/StandardDrawer.vue | 12 +-- 5 files changed, 75 insertions(+), 45 deletions(-) diff --git a/src/components/StandardResolutionSheet.vue b/src/components/StandardResolutionSheet.vue index 81b7990..c5d231b 100644 --- a/src/components/StandardResolutionSheet.vue +++ b/src/components/StandardResolutionSheet.vue @@ -56,6 +56,25 @@ @dragging="onDragging" @dragstop="(...args) => onDragstop('sheetContainerRef', ...args)"> + +
+
{{ $t('standardRegulationLibrary.translation') }}
+
+
+
{{ clause.item_num }} {{ clause.item_title }}
+
+
+
+ +
{{ $t('standardRegulationLibrary.clauseLabel') }}
@@ -74,31 +93,31 @@ @dragstop="(...args) => onDragstop('clauseLabelRef', ...args)">
-
-
- -
- - - -
- - {{ $t('docTool.split.article') }} -
-
- - - -
- - {{ $t('docTool.split.clauseLabel') }} -
-
-
+ + + + + + + + + + + + + + + + + + + + + + + + + @@ -136,6 +155,7 @@ export default { loading: false, spiltInfo: {}, // 拆分的整体信息 clauseContentList: [], // 条文内容的数据 + translationContentList: [], // 译文内容的数据 clauseLabelInfo: {}, // 条文标签数据 clauseLabelHideField: ['item_content'], needDictField: [FieldType.USER_SINGLE.value, FieldType.ORGAN_SINGLE.value, FieldType.STANDARD_MORE.value, FieldType.ORGAN_MORE.value, FieldType.OPTION_SINGLE.value, FieldType.OPTION_MORE.value, FieldType.TREE.value], @@ -143,12 +163,13 @@ export default { isDragging: false, // 是否拖拽中 standardCatalogueRefX: 280, // 标准目录默认宽度 sheetContainerRefX: 0, // 标准内容默认宽度 - clauseLabelRefX: 400 // 条文标签默认宽度 + clauseLabelRefX: 360, // 条文标签默认宽度 + translationRefX: 280 // 译文部分默认宽度 } }, mounted () { // 容器实际剩余宽度 = 右侧内容宽度 - 内容中的间距 - const boxWidth = this.$refs.sheetBoxRef.getBoundingClientRect().width - this.$refs.clauseLabelChangeRef.getBoundingClientRect().width - (16 * 3) + const boxWidth = this.$refs.sheetBoxRef.getBoundingClientRect().width - this.$refs.translationRef.getBoundingClientRect().width - (16 * 4) this.sheetContainerRefX = boxWidth - this.standardCatalogueRefX - this.clauseLabelRefX }, methods: { @@ -260,11 +281,11 @@ export default { this.isContainerExpand = !this.isContainerExpand if (this.isContainerExpand) { // 展开主要内容前:主要内容宽 = 当前宽度 + 条文标签宽度(未隐藏时) + 标准目录宽度(未隐藏时) - this.sheetContainerRefX = this.sheetContainerRefX + (this.showClauseLabel ? this.clauseLabelRefX : 0) + (this.isCatalogueExpand ? this.standardCatalogueRefX : 0) + this.sheetContainerRefX = this.sheetContainerRefX + (this.showClauseLabel ? this.clauseLabelRefX : 0) + (this.isCatalogueExpand ? this.standardCatalogueRefX : 0) + this.translationRefX this.isCatalogueExpand = false } else { // 收起主要内容前:主要内容宽 = 当前宽度 - 条文标签宽度(隐藏时) - 标准目录宽度(隐藏时) - this.sheetContainerRefX = this.sheetContainerRefX - (this.showClauseLabel ? this.clauseLabelRefX : 0) - (!this.isCatalogueExpand ? this.standardCatalogueRefX : 0) + this.sheetContainerRefX = this.sheetContainerRefX - (this.showClauseLabel ? this.clauseLabelRefX : 0) - (!this.isCatalogueExpand ? this.standardCatalogueRefX : 0) - this.translationRefX this.isCatalogueExpand = true } }, @@ -385,10 +406,19 @@ export default { transition: width .2s linear; } +.translation-text { + position: relative; + width: 280px; + height: 100%; +} +.translation-content { + height: calc(100% - 40px); +} .clause-label { position: relative; width: 400px; height: 100%; + margin-right: 16px; //overflow: hidden; transition: width .2s linear; @@ -466,7 +496,7 @@ export default { .part-title { height: 40px; - background: rgba(213, 44, 38, 0.12); + background: rgba(0, 100, 250, 0.12); border-radius: 8px 8px 0 0; line-height: 40px; padding: 0 24px; diff --git a/src/views/dashboard/search/AdvancedSearch.vue b/src/views/dashboard/search/AdvancedSearch.vue index 43b239b..4d82a08 100644 --- a/src/views/dashboard/search/AdvancedSearch.vue +++ b/src/views/dashboard/search/AdvancedSearch.vue @@ -133,7 +133,7 @@
- + {{ $t('export') }}
diff --git a/src/views/dashboard/search/GeneralSearch.vue b/src/views/dashboard/search/GeneralSearch.vue index 5c58f7d..4673220 100644 --- a/src/views/dashboard/search/GeneralSearch.vue +++ b/src/views/dashboard/search/GeneralSearch.vue @@ -35,7 +35,7 @@
- + {{ $t('export') }}
@@ -97,7 +97,7 @@

{{ StandardStatus.ABOLISH.text }}

{{ $t('dashboard.generalSearch.implementationDate') }} {{ item.implementationDate || global.emptyLine }}

- {{ $t('dashboard.generalSearch.viewText') }} + {{ $t('dashboard.generalSearch.viewText') }}