From 84d859e9a89f809d4e6fb1591878d40895f2b16b Mon Sep 17 00:00:00 2001 From: liuyusheng Date: Wed, 18 Sep 2024 15:45:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=B1=8F=E9=A1=B5=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E5=8F=8A=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- imt-ui/src/layout/components/Navbar.vue | 24 ++++++++++++--------- imt-ui/src/router/index.js | 5 +++++ imt-ui/src/views/system/bigscreen/index.vue | 8 +++---- 3 files changed, 23 insertions(+), 14 deletions(-) diff --git a/imt-ui/src/layout/components/Navbar.vue b/imt-ui/src/layout/components/Navbar.vue index 83d957a..246c8ae 100644 --- a/imt-ui/src/layout/components/Navbar.vue +++ b/imt-ui/src/layout/components/Navbar.vue @@ -7,25 +7,22 @@
@@ -58,8 +55,8 @@ import Hamburger from '@/components/Hamburger' import Screenfull from '@/components/Screenfull' import SizeSelect from '@/components/SizeSelect' import Search from '@/components/HeaderSearch' -import RuoYiGit from '@/components/RuoYi/Git' -import RuoYiDoc from '@/components/RuoYi/Doc' +/*import RuoYiGit from '@/components/RuoYi/Git' +import RuoYiDoc from '@/components/RuoYi/Doc'*/ import NotifyMessage from '@/layout/components/Message' import {getPath} from "@/utils/ruoyi"; @@ -71,8 +68,8 @@ export default { Screenfull, SizeSelect, Search, - RuoYiGit, - RuoYiDoc, + /*RuoYiGit, + RuoYiDoc,*/ NotifyMessage }, computed: { @@ -103,6 +100,9 @@ export default { toggleSideBar() { this.$store.dispatch('app/toggleSideBar') }, + goLargeScreen() { + this.$router.push({ path: "/largeScreen" }); + }, async logout() { this.$modal.confirm('确定注销并退出系统吗?', '提示').then(() => { this.$store.dispatch('LogOut').then(() => { @@ -158,6 +158,10 @@ export default { outline: none; } + .largeScreen{ + width: 38px; + } + .right-menu-item { display: inline-block; padding: 0 8px; diff --git a/imt-ui/src/router/index.js b/imt-ui/src/router/index.js index d092701..a37a92d 100644 --- a/imt-ui/src/router/index.js +++ b/imt-ui/src/router/index.js @@ -259,6 +259,11 @@ export const constantRoutes = [ }, component: (resolve) => require(['@/views/pay/cashier'], resolve) }] + },{ + path: '/largeScreen', + meta: { title: '大屏展示',affix: false}, + component: (resolve) => require(['@/views/system/bigscreen/index'], resolve), + hidden: true } ] diff --git a/imt-ui/src/views/system/bigscreen/index.vue b/imt-ui/src/views/system/bigscreen/index.vue index 46e69d8..f28b510 100644 --- a/imt-ui/src/views/system/bigscreen/index.vue +++ b/imt-ui/src/views/system/bigscreen/index.vue @@ -819,6 +819,7 @@ export default { src: url(../../../assets/biaoti.ttf); } .app { + overflow: hidden; width: 100%; min-height: 100vh; /* 视口高度 */ color: white; @@ -845,21 +846,20 @@ export default { display: grid; grid-template-columns: 24% 50% 24%; grid-gap: 1%; - min-height: calc(100vh - 50px); .company-column { display: grid; grid-template-rows: repeat(3, 32%); grid-gap: 1%; &.left-column { - grid-template-rows: 35% 30% 35%; + grid-template-rows: 33% 29% 33%; grid-gap: 1%; } &.right-column { - grid-template-rows: 35% 30% 35%; + grid-template-rows: 33% 29% 33%; grid-gap: 1%; } &:nth-child(2) { - grid-template-rows: 65% 30%; + grid-template-rows: 61% 29%; grid-gap: 2%; > div { padding: 0;