From c82a7b91d3b210a077a3524f409095029e54b48d Mon Sep 17 00:00:00 2001 From: jmal Date: Sat, 16 Jan 2021 23:29:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=9A=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=8E=A7=E4=BB=B6=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ShowFile/SelectFile.vue | 3 +++ src/components/ShowFile/ShowFile.vue | 3 +++ src/styles/home-index.scss | 3 ++- src/views/setting/sys/roleManager.vue | 5 ----- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/components/ShowFile/SelectFile.vue b/src/components/ShowFile/SelectFile.vue index c9da944..030f743 100644 --- a/src/components/ShowFile/SelectFile.vue +++ b/src/components/ShowFile/SelectFile.vue @@ -95,6 +95,9 @@ export default { background: linear-gradient(rgba(255,255,255,0), #fff); } } +/deep/ .share-empty { + padding-bottom: 20%; +} @media screen and (max-width: 768px) { /deep/ .el-dialog { width: 100% !important; diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index 37a137c..4aca2a8 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -1068,6 +1068,9 @@ export default { } else { this.gridColumnNum = this.queryFileType === 'image' ? Math.round(clientWidth / 100 - 3) : Math.round(clientWidth / 100 - 2) if(clientWidth < 768){ + this.gridColumnNum = 3 + } + if(clientWidth < 450){ this.gridColumnNum = 2 } } diff --git a/src/styles/home-index.scss b/src/styles/home-index.scss index 56a57f0..5151ade 100644 --- a/src/styles/home-index.scss +++ b/src/styles/home-index.scss @@ -335,7 +335,7 @@ } } /deep/ .grid-time:hover { - border: solid 1px #409eff; + border: solid 1px #c8c9cc; cursor: pointer; } .checkbox-group-header { @@ -383,6 +383,7 @@ .select-operation-button { margin-top: 5px; padding: 10px; + margin-left: 0; } } @media screen and (max-width: 768px) { diff --git a/src/views/setting/sys/roleManager.vue b/src/views/setting/sys/roleManager.vue index 81c02c4..6e0eab1 100644 --- a/src/views/setting/sys/roleManager.vue +++ b/src/views/setting/sys/roleManager.vue @@ -234,11 +234,6 @@ export default { }, // 保存分配权限 saveAuth() { - - const nodeArray = Array.from(document.querySelectorAll('.block-icon-list .icon-item .icon-code.icon-code-show')); - const names = nodeArray.map(item => item.outerText) - console.log(names) - this.form.menuIds = this.$refs.authTree.getCheckedKeys() this.updateRole(this.setFormData()) },