From 693c0d0f1ca8c5efe0f166c2bbccf5d88acac6fa Mon Sep 17 00:00:00 2001 From: jiangyy Date: Fri, 13 Jan 2023 14:22:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=BF=E5=B1=8B=E7=AE=A1=E7=90=86=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 9 ++-- src/assets/scss/buttonstyle.scss | 4 +- .../scss/modules/management/edit-main.scss | 7 +-- .../modules/base/community/buildTable.vue | 20 ++++++++- .../modules/base/community/community.vue | 12 +++--- .../modules/base/community/communityTable.vue | 43 +++++++++++++++---- .../modules/base/community/roomTable.vue | 22 ++++++++-- 7 files changed, 90 insertions(+), 27 deletions(-) diff --git a/src/App.vue b/src/App.vue index 4aee8dcf5..d0d398635 100644 --- a/src/App.vue +++ b/src/App.vue @@ -13,11 +13,11 @@ export default { watch: { "$i18n.locale": "i18nHandle", }, - created() { + created () { this.i18nHandle(this.$i18n.locale); }, methods: { - i18nHandle(val, oldVal) { + i18nHandle (val, oldVal) { localStorage.setItem("language", val); document.querySelector("html").setAttribute("lang", val); document.title = messages[val].brand.lg; @@ -26,7 +26,7 @@ export default { window.location.reload(); } }, - refreshView() { + refreshView () { // In order to make the cached page re-rendered this.$store.dispatch("delAllCachedViews", this.$route); @@ -41,7 +41,7 @@ export default { ...mapActions(["setClientHeight", "setSize", "setResolution", "setEnv"]), }, computed: {}, - mounted() { + mounted () { console.log("开始::::" + localStorage.getItem("userType")); if (!localStorage.getItem("userType")) { localStorage.setItem("userType", "oper"); @@ -148,6 +148,7 @@ export default { } .name-a { cursor: pointer; + color: #0056d6; } .dialog-h { .el-dialog__body { diff --git a/src/assets/scss/buttonstyle.scss b/src/assets/scss/buttonstyle.scss index 08da67be2..dbf80ad00 100644 --- a/src/assets/scss/buttonstyle.scss +++ b/src/assets/scss/buttonstyle.scss @@ -119,8 +119,8 @@ } //操作栏更多 .diy-button--other { - text-decoration: underline !important; - color: #002765 !important; + // text-decoration: underline !important; + color: #505050 !important; font-size: 14px !important; // min-width: 60px !important; // height: 32px !important; diff --git a/src/assets/scss/modules/management/edit-main.scss b/src/assets/scss/modules/management/edit-main.scss index ee269f5c1..dfaf49407 100644 --- a/src/assets/scss/modules/management/edit-main.scss +++ b/src/assets/scss/modules/management/edit-main.scss @@ -28,11 +28,12 @@ .m-edit-map{ .m-edit-map-search{ - margin-bottom: 10px; + margin-bottom: 8px; } .m-map-item{ - margin-top:10px; - height:280px; + // margin-top:10px; + height:225px; + width:400px; padding-bottom:10px; } diff --git a/src/views/modules/base/community/buildTable.vue b/src/views/modules/base/community/buildTable.vue index 4647e1930..043e340e0 100644 --- a/src/views/modules/base/community/buildTable.vue +++ b/src/views/modules/base/community/buildTable.vue @@ -305,6 +305,7 @@ let loading // 加载动画 export default { data () { return { + searchHeight: 190,//搜索栏高度 importBuildingLoading: false, importRoomLoading: false, total: 0, @@ -344,8 +345,9 @@ export default { }, computed: { tableHeight () { - - return this.$store.state.inIframe ? this.clientHeight - 465 + this.iframeHeight : this.clientHeight - 465 + console.log(this.searchHeight) + let height = this.searchHeight + 270 + return this.$store.state.inIframe ? this.clientHeight - height + this.iframeHeight : this.clientHeight - height }, @@ -912,6 +914,20 @@ export default { }, watch: { + '$store.state.sidebarFold': { + handler (newVal, oldVal) { + if (newVal) {//收起 + this.searchHeight = 155 + + } else { + + this.searchHeight = 190 + } + + + }, + deep: true + } }, props: { staffAgencyId: { diff --git a/src/views/modules/base/community/community.vue b/src/views/modules/base/community/community.vue index 32fa0400b..59a6ae2da 100644 --- a/src/views/modules/base/community/community.vue +++ b/src/views/modules/base/community/community.vue @@ -243,6 +243,7 @@ :remark="remark" :updateStartDate="updateStartDate" :updateEndDate="updateEndDate" + :searchHeight="searchHeight" @toNextLevel="toNextLevel" @refreshTree="refreshTree"> @@ -310,6 +311,7 @@ export default { } return { boxHeight: true, + searchHeight: 190, filterText: '', treeLoading: true, treeData: [], @@ -387,6 +389,8 @@ export default { CDialog }, async mounted () { + this.searchHeight = this.$refs.ref_searchform.offsetHeight + this.treeLoading = true await this.loadOrgData() @@ -818,7 +822,8 @@ export default { watch: { filterText (val) { this.$refs.ref_tree.filter(val); - } + }, + }, components: { communityTable, buildTable, roomTable @@ -826,9 +831,6 @@ export default { } - - -