From f156b08ec29a6aac0f671ce53a2433a66b0e8113 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Thu, 7 Sep 2023 11:35:43 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=8A=BD=E5=B1=89=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/less/common.less | 40 ++- .../selection/StandardSelectionModal.vue | 11 +- .../tags/modules/ClauseSplittingDrawer.vue | 24 +- .../system/tags/modules/StandardDrawer.vue | 338 +++++++++--------- 4 files changed, 210 insertions(+), 203 deletions(-) diff --git a/src/assets/less/common.less b/src/assets/less/common.less index 58c7d88d..36dfc7a8 100644 --- a/src/assets/less/common.less +++ b/src/assets/less/common.less @@ -474,31 +474,39 @@ width: 100%; } +.ant-tree li .ant-tree-node-content-wrapper.ant-tree-node-selected { + background-color: #ffd9d1 !important; +} + /*抽屉样式修改*/ -.ant-drawer-body { - height: calc(100vh - 55px); - padding: 24px 0; +.custom-drawer-style { + height: 100%; + overflow: auto; - .ant-spin-container { - height: 100%; + .ant-drawer-body { + height: calc(100% - 55px); + padding: 0; } - .drawer-container { - height: calc(100% - 52px); + &-scroll { + height: calc(100% - 61px); overflow: auto; - padding: 0 24px; + padding: 24px; } - .drawer-footer { - margin-top: 20px; - height: 32px; - display: flex; - justify-content: center; + &-bottom-btn { + height: 60px; + padding: 12px 24px; + opacity: 1; + border-top: 1px solid #E5E6EB; + text-align: right; .ant-btn { - margin-left: 30px; - margin-bottom: 30px; - float: right; + margin-left: 12px; + } + + .ant-btn:first-child { + margin-left: 0; } } } diff --git a/src/components/selection/StandardSelectionModal.vue b/src/components/selection/StandardSelectionModal.vue index 50aab14b..bca8a2e8 100644 --- a/src/components/selection/StandardSelectionModal.vue +++ b/src/components/selection/StandardSelectionModal.vue @@ -7,8 +7,8 @@ :closable="true" @close="handleCancel" :visible="visible" - style="height: 100%;overflow: auto;padding-bottom: 53px;"> -
+ class="custom-drawer-style"> +
@@ -44,8 +44,8 @@
-
- {{$t('cancel')}} +
+ {{$t('cancel')}} {{$t('submit')}}
@@ -128,7 +128,6 @@ export default { this.selectedRowKeys = [] this.loading = true getStandardList(query).then((res) => { - this.loading = false if (res.success) { this.dataList = res.result.records this.ipagination.total = res.result.total @@ -136,6 +135,8 @@ export default { } else { this.dataList = [] } + }).finally(() => { + this.loading = false }) }, searchQuery () { diff --git a/src/views/system/tags/modules/ClauseSplittingDrawer.vue b/src/views/system/tags/modules/ClauseSplittingDrawer.vue index cb2046fb..ca332642 100644 --- a/src/views/system/tags/modules/ClauseSplittingDrawer.vue +++ b/src/views/system/tags/modules/ClauseSplittingDrawer.vue @@ -8,10 +8,10 @@ @close="onClose" :visible="visible" :maskClosable="false" - style="height: 100%;overflow: auto;" - > - -
+ class="custom-drawer-style"> + +
+ - -
- + +
+
+ {{ $t('close') }} + + {{ $t('preservation') }} + +
diff --git a/src/views/system/tags/modules/StandardDrawer.vue b/src/views/system/tags/modules/StandardDrawer.vue index 57e9bd59..1cbe0cfc 100644 --- a/src/views/system/tags/modules/StandardDrawer.vue +++ b/src/views/system/tags/modules/StandardDrawer.vue @@ -1,188 +1,186 @@