From 552ee6446688d6c768f4d6df2b4058dea4a59f40 Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Sun, 28 Apr 2024 16:51:06 +0800 Subject: [PATCH] home --- src/views/Home.vue | 274 ++++++++++++++++++--------------------------- 1 file changed, 111 insertions(+), 163 deletions(-) diff --git a/src/views/Home.vue b/src/views/Home.vue index 5c6b1e1..06317c2 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -26,111 +26,70 @@ --> - -
- - - - - -
- -
- - - - - +
+ + + + + +
+ +
+ + + + + - - + + - + - + - + @@ -266,7 +195,7 @@ export default { isDevTool: false, // 壳端是否显示打开调试工具的按钮 } }, - LocalConfigInit:{}, + LocalConfigInit: {}, }; }, computed: { @@ -303,7 +232,7 @@ export default { // console.log(key, keyPath); // tree: any, childNodeName: any, idName: any, idVal: any let node = getTreeNode(this.menuPriv, "treeChildren", "id", key); - if (node&&this.$route.path!=='/'+node.routeUrl) this.$router.push({ path: node.routeUrl }); + if (node && this.$route.path !== '/' + node.routeUrl) this.$router.push({ path: node.routeUrl }); }, //获取用户所有权限 getUserAllPriv() { @@ -344,7 +273,7 @@ export default { } else { e.menuType = "1"; } - } else { + } else { e.menuType = "1"; } return e; @@ -356,7 +285,7 @@ export default { this.className = val.flag; if (this.router.path != val.command) { this.router.path = val.command; - this.$router.push({ path: val.command }).catch(() => {}); + this.$router.push({ path: val.command }).catch(() => { }); } // let menuId = arguments[1].$parent.$el.id // let menuList = document.getElementById(menuId) @@ -471,6 +400,7 @@ export default { font-size: 14px; font-family: "NotoSansSC-Bold"; } + .titleimg :hover { width: 30px; background-color: rgb(34, 149, 98); @@ -696,7 +626,7 @@ export default { color: #FF0000; } -::v-deep .el-menu--horizontal > .el-submenu .el-submenu__title { +::v-deep .el-menu--horizontal>.el-submenu .el-submenu__title { font-size: 14px; height: 47px; line-height: 47px; @@ -705,6 +635,7 @@ export default { color: #52555f; border-bottom: 3px solid #396ffa; } + /* ::v-deep .submenutitle.is-active .el-submenu__title{ border-bottom:none } */ @@ -712,20 +643,25 @@ export default { height: 36px !important; line-height: 36px !important; } -::v-deep .el-menu--horizontal > .el-menu-item { + +::v-deep .el-menu--horizontal>.el-menu-item { height: 40px; line-height: 40px; } + ::v-deep .el-submenu__title { padding: 0 5px 0 5px !important; } + ::v-deep .el-menu--popup { min-width: auto !important; /* padding: 5px 10px !important; */ } + ::v-deep .el-submenu .el-menu-item { min-width: auto !important; } + ::v-deep .el-menu--horizontal .el-menu .el-menu-item, .el-menu--horizontal .el-menu .el-submenu__title { font-size: 14px; @@ -733,9 +669,11 @@ export default { font-family: "NotoSansSC-Regular"; color: #52555f; } + :v-deep .el-menu-item .is-active { background-color: #247bb4 !important; } + ::v-deep .el-menu--horizontal .el-menu-item:not(.is-disabled):focus, .el-menu--horizontal .el-menu-item:not(.is-disabled):hover { background-color: rgba(20, 96, 243, 0.1); @@ -744,23 +682,26 @@ export default { font-family: "NotoSansSC-Bold"; color: #396ffa; } + /* ::v-deep .el-menu--horizontal > .el-submenu .el-submenu__icon-arrow { display: none; } */ -::v-deep .el-menu--horizontal>.el-submenu .el-submenu__icon-arrow{ +::v-deep .el-menu--horizontal>.el-submenu .el-submenu__icon-arrow { vertical-align: middle; - margin-left: 8px; - margin-top: -3px; - position: absolute; - top: 14px; - right: 4px; + margin-left: 8px; + margin-top: -3px; + position: absolute; + top: 14px; + right: 4px; } + ::v-deep .submenutitle .el-submenu__title { font-size: 14px !important; font-weight: 400 !important; font-family: "NotoSansSC-Regular" !important; color: #52555f !important; } + ::v-deep .submenutitle .el-submenu__title:hover { background-color: rgba(20, 96, 243, 0.1) !important; font-size: 14px !important; @@ -768,20 +709,24 @@ export default { font-family: "NotoSansSC-Bold" !important; color: #396ffa !important; } + ::v-deep .submenutitle .el-submenu__title { height: 36px !important; line-height: 36px !important; } + ::v-deep .submenutitle .el-submenu__title .el-submenu__icon-arrow { - font-size:14px !important; + font-size: 14px !important; } -::v-deep .el-menu--horizontal .el-menu .el-menu-item.is-active{ + +::v-deep .el-menu--horizontal .el-menu .el-menu-item.is-active { background-color: rgba(20, 96, 243, 0.1) !important; font-size: 14px !important; font-weight: 700 !important; font-family: "NotoSansSC-Bold" !important; color: #396ffa !important; } + /* ::v-deep .el-menu--horizontal .el-menu .el-submenu.is-active .el-submenu__title{ background-color: rgba(20, 96, 243, 0.1) !important; font-size: 14px !important; @@ -789,12 +734,15 @@ export default { font-family: "NotoSansSC-Bold" !important; color: #396ffa !important; } */ -::v-deep .el-menu--horizontal .el-menu .el-menu-item, .el-menu--horizontal .el-menu .el-submenu__title{ +::v-deep .el-menu--horizontal .el-menu .el-menu-item, +.el-menu--horizontal .el-menu .el-submenu__title { padding: 0 15px !important; } -::v-deep .el-menu.el-menu--horizontal{ - border-bottom:none; + +::v-deep .el-menu.el-menu--horizontal { + border-bottom: none; } + /* ::v-deep .el-menu--popup-right-start{ margin-left: 15px !important; } */