diff --git a/public/favicon.ico b/public/favicon.ico index e263760..9021506 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/src/assets/images/otherbg.png b/src/assets/images/otherbg.png new file mode 100644 index 0000000..f6a9ae8 Binary files /dev/null and b/src/assets/images/otherbg.png differ diff --git a/src/assets/images/search_bg.png b/src/assets/images/search_bg.png new file mode 100644 index 0000000..d008558 Binary files /dev/null and b/src/assets/images/search_bg.png differ diff --git a/src/assets/styles/element-ui.scss b/src/assets/styles/element-ui.scss index 0f175f2..1064d85 100644 --- a/src/assets/styles/element-ui.scss +++ b/src/assets/styles/element-ui.scss @@ -18,6 +18,7 @@ .cell { .el-tag { margin-right: 0px; + font-size: 16px !important; } } diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index 87898e6..0ff47c4 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -122,7 +122,9 @@ aside { //main-container全局样式 .app-container { - padding: 20px; + width: 1840px; + margin: 0 auto; + padding: 0 !important; } .components-container { @@ -176,4 +178,4 @@ aside { vertical-align: middle; margin-bottom: 10px; } -} +} \ No newline at end of file diff --git a/src/assets/styles/ruoyi.scss b/src/assets/styles/ruoyi.scss index b3240c3..92ec3a6 100644 --- a/src/assets/styles/ruoyi.scss +++ b/src/assets/styles/ruoyi.scss @@ -7,53 +7,79 @@ .pt5 { padding-top: 5px; } + .pr5 { padding-right: 5px; } + .pb5 { padding-bottom: 5px; } + .mt5 { margin-top: 5px; } + .mr5 { margin-right: 5px; } + .mb5 { margin-bottom: 5px; } + .mb8 { margin-bottom: 8px; } + .ml5 { margin-left: 5px; } + .mt10 { margin-top: 10px; } + .mr10 { margin-right: 10px; } + .mb10 { margin-bottom: 10px; } + .ml10 { margin-left: 10px; } + .mt20 { margin-top: 20px; } + .mr20 { margin-right: 20px; } + .mb20 { margin-bottom: 20px; } + .ml20 { margin-left: 20px; } -.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 { +.h1, +.h2, +.h3, +.h4, +.h5, +.h6, +h1, +h2, +h3, +h4, +h5, +h6 { font-family: inherit; font-weight: 500; line-height: 1.1; @@ -63,6 +89,7 @@ .el-form .el-form-item__label { font-weight: 700; } + .el-dialog:not(.is-fullscreen) { margin-top: 6vh !important; } @@ -75,29 +102,44 @@ } .el-table { - .el-table__header-wrapper, .el-table__fixed-header-wrapper { + + .el-table__header-wrapper, + .el-table__fixed-header-wrapper { th { + font-family: Microsoft YaHei !important; word-break: break-word; - background-color: #f8f8f9 !important; - color: #515a6e; - height: 40px !important; - font-size: 13px; + background-color: #f4f4f3 !important; + color: #3B3B3B; + height: 50px !important; + font-size: 16px; } } + .el-table__body-wrapper { - .el-button [class*="el-icon-"] + span { + .el-button [class*="el-icon-"]+span { margin-left: 1px; } } + + // 设置行单元格样式 + .el-table__cell { + font-family: Microsoft YaHei !important; + // font-weight: 400 !important; + font-size: 16px !important; + color: #1E1E1E !important; + padding: 4px 0px !important; + height: 54px !important; + } + } /** 表单布局 **/ .form-header { - font-size:15px; - color:#6379bb; - border-bottom:1px solid #ddd; - margin:8px 10px 25px 10px; - padding-bottom:5px + font-size: 15px; + color: #6379bb; + border-bottom: 1px solid #ddd; + margin: 8px 10px 25px 10px; + padding-bottom: 5px } /** 表格布局 **/ @@ -113,7 +155,7 @@ position: static !important; margin: 10px 0 0 0; padding: 0 !important; - + .el-pagination { position: static; } @@ -123,10 +165,11 @@ @media (max-width: 768px) { .pagination-container { .el-pagination { - > .el-pagination__jump { + >.el-pagination__jump { display: none !important; } - > .el-pagination__sizes { + + >.el-pagination__sizes { display: none !important; } } @@ -138,7 +181,7 @@ margin-top: 5px; border: 1px solid var(--el-border-color-light, #e5e6e7); background: var(--el-bg-color, #FFFFFF) none; - border-radius:4px; + border-radius: 4px; width: 100%; } @@ -155,15 +198,16 @@ margin-left: 10px; } -.el-table .el-dropdown, .el-icon-arrow-down { +.el-table .el-dropdown, +.el-icon-arrow-down { font-size: 12px; } -.el-tree-node__content > .el-checkbox { +.el-tree-node__content>.el-checkbox { margin-right: 8px; } -.list-group-striped > .list-group-item { +.list-group-striped>.list-group-item { border-left: 0; border-right: 0; border-radius: 0; @@ -201,6 +245,10 @@ margin-bottom: 10px; } +.el-button { + font-size: 16px !important; +} + /* button color */ .el-button--cyan.is-active, .el-button--cyan:active { @@ -273,10 +321,10 @@ } /* 拖拽列样式 */ -.sortable-ghost{ +.sortable-ghost { opacity: .8; - color: #fff!important; - background: #42b983!important; + color: #fff !important; + background: #42b983 !important; } /* 表格右侧工具栏样式 */ @@ -288,3 +336,432 @@ .splitpanes.default-theme .splitpanes__pane { background-color: var(--splitpanes-default-bg) !important; } + +// 自定义行样式 +.my_row { + padding: 0px; + margin: 17px 0px; + text-align: right; +} + +// 按钮样式 +.primaryBtn { + height: 30px; + border-radius: 15px 15px 15px 15px; + background: #1a75e6; + font-family: Microsoft YaHei; + font-weight: 600; + font-size: 16px; + text-align: center; + color: #FFFFFF; + padding: 7px 25px 8px 24px; +} + +.primaryBtn:hover { + background: #1a75e6; +} + +.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label-wrap>.el-form-item__label:before, +.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label:before { + color: #FF2A00; +} + +// 确认消息框 +.el-message-box__header { + font-family: Microsoft YaHei; + font-weight: 700; + font-size: 18px; + color: #000000; +} + +.el-message-box__content { + font-family: Microsoft YaHei; + font-weight: 400; + font-size: 16px; + color: #525252; +} + +// 查询条件表单样式覆盖 +.searchPanel { + width: 1840px; + height: 45px; + line-height: 45px; + background: rgba(255, 255, 255, 0.06); + border-top: 1px solid rgba(255, 255, 255, 0.3); + border-bottom: 1px solid rgba(255, 255, 255, 0.3); + margin-bottom: 20px; + padding: 0 20px; +} + +.searchPanelForm .el-form-item--default { + margin-bottom: 6px; +} + +.searchPanelForm .el-form--inline .el-form-item { + display: inline-flex; + margin-right: 26px; + vertical-align: middle; +} + +.searchPanelForm .el-form-item__label { + font-family: Microsoft YaHei; + font-weight: 400; + font-size: 16px; + color: #FFFFFF; + min-width: 34px; +} + +// 文本输入框样式 +.searchPanelForm .el-input__inner { + font-family: Microsoft YaHei; + font-weight: 400; + font-size: 16px; + color: #FFFFFF; +} + +.searchPanelForm .el-input__clear { + color: #FFFFFF; +} + +.searchPanelForm .el-input__clear:hover { + color: #FFFFFF; +} + +.searchPanelForm .el-input__inner::placeholder { + font-family: Microsoft YaHei; + font-weight: 400; + font-size: 16px; + color: #FFFFFF; +} + +.searchPanelForm .el-input__wrapper { + background-color: transparent; + border-radius: 0; + box-shadow: none; + padding: 0; +} + +// 选择框样式 +.searchPanelForm .el-select__wrapper { + background-color: transparent; + border-radius: 0; + box-shadow: none; + padding: 0; +} + +.searchPanelForm .el-select__wrapper.is-hovering:not(.is-focused) { + box-shadow: none; +} + +.searchPanelForm .el-select__placeholder { + font-family: Microsoft YaHei; + font-weight: 400; + font-size: 16px; + color: #FFFFFF; +} + +.searchPanelForm .el-select__caret { + color: #FFFFFF; +} + +// 查询日期框样式 +.searchPanelForm .el-date-editor .el-range__icon { + color: #FFFFFF; +} + +.searchPanelForm .el-date-editor .el-range-separator { + color: #FFFFFF; +} + +.searchPanelForm .el-date-editor .el-range-input { + font-family: Microsoft YaHei; + font-weight: 400; + font-size: 16px; + color: #FFFFFF; +} + +.searchPanelForm .el-date-editor .el-range-input::placeholder { + font-family: Microsoft YaHei; + font-weight: 400; + font-size: 16px; + color: #FFFFFF; +} + +.searchPanelForm .el-date-editor .el-range__close-icon { + color: #FFFFFF; +} + +.searchPanelForm .el-date-editor.el-input__wrapper:hover { + background-color: transparent; + border-radius: 0; + box-shadow: none !important; + padding: 0; +} + +// 分页器 +.pagination-container { + display: flex; + justify-content: center; + margin-top: 20px; + background-color: transparent !important; +} + +.my-pagination .el-pagination__sizes, +.el-pagination__total { + font-family: Microsoft YaHei; + font-weight: 400; + font-size: 14px; + text-align: center; + color: #000001; +} + +.my-pagination .el-pagination__jump { + font-family: Microsoft YaHei; + font-weight: 400; + font-size: 14px; + text-align: center; + color: #000001; +} + +.my-pagination .el-select__placeholder { + font-family: Microsoft YaHei; + font-weight: 400; + font-size: 14px; + text-align: center; + color: #000001; +} + +.my-pagination .el-pagination__editor.el-input { + width: 48px; +} + +.my-pagination .el-input__wrapper { + height: 28px; + border-radius: 4px 4px 4px 4px; + background: #ffffff; +} + +.my-pagination .el-select { + width: 100px; +} + +.my-pagination .el-select__wrapper { + height: 28px; + border-radius: 4px 4px 4px 4px; + background: #ffffff; +} + +.my-pagination.is-background .btn-prev, +.my-pagination.is-background .el-pager li, +.my-pagination.is-background .btn-next { + width: 30px; + height: 28px; + border-radius: 4px 4px 4px 4px; + background: #f4f4f5; + font-family: Arial; + font-weight: 400; + font-size: 14px; + text-align: center; + color: #000000; +} + +.my-pagination.is-background .btn-next.is-active, +.my-pagination.is-background .btn-prev.is-active, +.my-pagination.is-background .el-pager li.is-active { + background-color: #467CF6; + color: #FFFFFF; +} + +.my-pagination .btn-next .el-icon, +.my-pagination .btn-prev .el-icon { + fill: #C2CAD6; +} + +// 主内容显示面板 +.el-card { + border: none; + margin-bottom: 20px; +} + +.el-card__body { + padding: 0px 20px 20px 20px !important; +} + +.el-card.is-always-shadow { + box-shadow: none; +} + +.el-card__header { + height: 60px; + font-family: Microsoft YaHei; + font-weight: 700; + font-size: 18px; + color: #000000; + border-bottom: 1px solid #DCDCDC; + box-sizing: border-box; + padding: 20px 30px !important; +} + +.subHeaderTitle { + font-family: Microsoft YaHei; + font-weight: 400; + font-size: 16px; + color: #000000; +} + +// 弹窗样式覆盖 +.my_dialog { + padding: 0 !important; +} + +.my_dialog .el-dialog__header { + border-bottom: 1px solid #D4DAE1 !important; + padding: 16px; + font-family: Microsoft YaHei; + font-weight: 700; + font-size: 18px; + color: #000000; +} + +.my_dialog .el-dialog__headerbtn { + top: 6px; +} + +.my_dialog .el-dialog__headerbtn .el-dialog__close { + color: #000000; +} + +.my_dialog .el-dialog__body { + // font-family: Microsoft YaHei; + // font-weight: 400; + // font-size: 16px; + // color: #3B3B3B; + padding: 20px; +} + +.my_dialog .el-dialog__footer { + box-sizing: border-box; + padding: 16px; + text-align: right; + border-top: 1px solid #D4DAE1 !important; +} + +// 表单录入样式 +.myInsertForm .el-form-item--default { + margin-bottom: 20px; +} + +.myInsertForm .el-form--inline .el-form-item { + display: inline-flex; + margin-right: 26px; + vertical-align: middle; +} + +.myInsertForm .el-form-item__label { + font-family: Microsoft YaHei; + font-weight: 400; + font-size: 16px; + color: #3B3B3B; + // min-width: 34px; +} + +// 文本输入框样式 +.myInsertForm .el-input__inner { + font-family: Microsoft YaHei; + font-weight: 400; + font-size: 16px; + color: #525252; +} + +.myInsertForm .el-input__clear { + color: #B8B8B8; +} + +.myInsertForm .el-input__clear:hover { + color: #B8B8B8; +} + +.myInsertForm .el-input__inner::placeholder { + font-family: Microsoft YaHei; + font-weight: 400; + font-size: 16px; + color: #B8B8B8; +} + +.myInsertForm .el-input__wrapper { + // background-color: transparent; + // border-radius: 0; + // box-shadow: none; + // padding: 0; +} + +// 选择框样式 +.myInsertForm .el-select__wrapper { + // background-color: transparent; + // border-radius: 0; + // box-shadow: none; + // padding: 0; +} + +.myInsertForm .el-select__wrapper.is-hovering:not(.is-focused) { + // box-shadow: none; +} + +.myInsertForm .el-select__placeholder { + font-family: Microsoft YaHei; + font-weight: 400; + font-size: 16px; +} + +.myInsertForm .el-select__caret { + color: #B8B8B8; +} + +// 单选框 +.myInsertForm .el-radio__inner { + width: 16px; + height: 16px; +} + +.myInsertForm .el-radio__label { + font-family: Microsoft YaHei; + font-weight: 400; + font-size: 16px; + color: #525252; +} + +// 复选框 +.myInsertForm .el-checkbox__inner { + width: 16px; + height: 16px; +} + +.myInsertForm .el-checkbox__label { + font-family: Microsoft YaHei; + font-weight: 400; + font-size: 16px; + color: #525252; +} + +// 树选择 +.myInsertForm .el-text--default { + font-family: Microsoft YaHei; + font-weight: 400; + font-size: 16px; + color: #525252; +} + +// 多文本输入框 +.myInsertForm .el-textarea__inner { + font-family: Microsoft YaHei; + font-weight: 400; + font-size: 16px; + color: #525252; +} + +.myInsertForm .el-textarea__inner::placeholder { + font-family: Microsoft YaHei; + font-weight: 400; + font-size: 16px; + color: #B8B8B8; +} \ No newline at end of file diff --git a/src/assets/styles/sidebar.scss b/src/assets/styles/sidebar.scss index 54d7441..809f7c2 100644 --- a/src/assets/styles/sidebar.scss +++ b/src/assets/styles/sidebar.scss @@ -5,7 +5,7 @@ .main-container { min-height: 100%; transition: margin-left .28s; - margin-left: vars.$base-sidebar-width; + // margin-left: vars.$base-sidebar-width; position: relative; } diff --git a/src/assets/styles/variables.module.scss b/src/assets/styles/variables.module.scss index 8764e13..a7daa59 100644 --- a/src/assets/styles/variables.module.scss +++ b/src/assets/styles/variables.module.scss @@ -71,10 +71,10 @@ $--color-info: #909399; --sidebar-bg: #{$menuBg}; --sidebar-text: #{$menuText}; --menu-hover: #{$menuHover}; - + --navbar-bg: #ffffff; --navbar-text: #303133; - + /* splitpanes default-theme 变量 */ --splitpanes-default-bg: #ffffff; @@ -119,7 +119,7 @@ html.dark { --blockquote-bg: #1d1e1f; --blockquote-border: #303030; --blockquote-text: #d0d0d0; - + /* Cron 时间表达式 模式变量 */ --cron-border: #303030; @@ -127,10 +127,13 @@ html.dark { --splitpanes-default-bg: #141414; /* 侧边栏菜单覆盖 */ - .sidebar-container { - .el-menu-item, .menu-title { + .sidebar-container { + + .el-menu-item, + .menu-title { color: var(--el-text-color-regular); } + & .theme-dark .nest-menu .el-sub-menu>.el-sub-menu__title, & .theme-dark .el-sub-menu .el-menu-item { background-color: var(--el-bg-color) !important; @@ -141,6 +144,7 @@ html.dark { .el-menu--horizontal { .el-menu-item { &:not(.is-disabled) { + &:hover, &:focus { background-color: var(--navbar-hover) !important; @@ -180,17 +184,23 @@ html.dark { --el-table-border-color: var(--el-border-color-light) !important; --el-table-row-hover-bg-color: var(--el-bg-color-overlay) !important; - .el-table__header-wrapper, .el-table__fixed-header-wrapper { + .el-table__header-wrapper, + .el-table__fixed-header-wrapper { th { background-color: var(--el-bg-color-overlay, #f8f8f9) !important; color: var(--el-text-color-regular, #515a6e); + + font-weight: 600 !important; } } + } + + /* 树组件高亮样式覆盖 */ .el-tree { - .el-tree-node.is-current > .el-tree-node__content { + .el-tree-node.is-current>.el-tree-node__content { background-color: var(--el-bg-color-overlay) !important; color: var(--el-color-primary); } @@ -199,9 +209,10 @@ html.dark { background-color: var(--el-bg-color-overlay); } } - + /* 下拉菜单样式覆盖 */ - .el-dropdown-menu__item:not(.is-disabled):focus, .el-dropdown-menu__item:not(.is-disabled):hover{ + .el-dropdown-menu__item:not(.is-disabled):focus, + .el-dropdown-menu__item:not(.is-disabled):hover { background-color: var(--navbar-hover) !important; } @@ -211,11 +222,10 @@ html.dark { border-left-color: var(--blockquote-border) !important; color: var(--blockquote-text) !important; } - + /* 时间表达式标题样式覆盖 */ .popup-result .title { background: var(--cron-border); } -} - +} \ No newline at end of file diff --git a/src/components/Pagination/index.vue b/src/components/Pagination/index.vue index 56569f7..16839a9 100644 --- a/src/components/Pagination/index.vue +++ b/src/components/Pagination/index.vue @@ -1,6 +1,7 @@ @@ -43,212 +48,7 @@ const router = useRouter() // 主题颜色 const theme = computed(() => settingsStore.theme) // 所有的路由信息 -// const routers = computed(() => permissionStore.topbarRouters) -const routers = ref([ - { - path: "/", - hidden: false, - component: "Layout", - children: [ - { - name: "工作台", - path: "index", - hidden: false, - component: "index", - meta: { - title: "工作台", - noCache: false, - link: null - } - } - ] - }, - { - path: "/", - hidden: false, - component: "Layout", - children: [ - { - name: "媒体库管理", - path: "mediaLibrary", - hidden: false, - component: "index", - meta: { - title: "媒体库管理", - noCache: false, - link: null - } - } - ] - }, - { - path: "/", - hidden: false, - component: "Layout", - children: [ - { - name: "户外媒介数据", - path: "outdoorMedia", - hidden: false, - component: "index", - meta: { - title: "户外媒介数据", - noCache: false, - link: null - } - } - ] - }, - { - path: "/", - hidden: false, - component: "Layout", - children: [ - { - name: "供应商", - path: "supplier", - hidden: false, - component: "index", - meta: { - title: "供应商", - noCache: false, - link: null - } - } - ] - }, - { - path: "/", - hidden: false, - component: "Layout", - children: [ - { - name: "问题反馈", - path: "problemFeedback", - hidden: false, - component: "index", - meta: { - title: "问题反馈", - noCache: false, - link: null - } - } - ] - }, - { - "name": "System", - "path": "/system", - "hidden": false, - "redirect": "noRedirect", - "component": "Layout", - "alwaysShow": true, - "meta": { - "title": "系统管理", - "noCache": false, - "link": null - }, - "children": [ - { - "name": "Menu", - "path": "menu", - "hidden": false, - "component": "system/menu/index", - "meta": { - "title": "菜单管理", - "icon": "#", - "noCache": false, - "link": null - } - }, - { - "name": "Dept", - "path": "dept", - "hidden": false, - "component": "system/dept/index", - "meta": { - "title": "部门管理", - "icon": "#", - "noCache": false, - "link": null - } - }, - { - "name": "Role", - "path": "role", - "hidden": false, - "component": "system/role/index", - "meta": { - "title": "角色管理", - "icon": "#", - "noCache": false, - "link": null - } - }, - { - "name": "User", - "path": "user", - "hidden": false, - "component": "system/user/index", - "meta": { - "title": "用户管理", - "icon": "#", - "noCache": false, - "link": null - } - }, - { - "name": "Locality", - "path": "locality", - "hidden": false, - "component": "system/locality/index", - "meta": { - "title": "属地管理", - "icon": "#", - "noCache": false, - "link": null - } - }, - { - "name": "Section", - "path": "section", - "hidden": false, - "component": "system/section/index", - "meta": { - "title": "科室管理", - "icon": "#", - "noCache": false, - "link": null - } - }, - { - "name": "UserApproval", - "path": "userApproval", - "hidden": false, - "component": "system/userApproval/index", - "meta": { - "title": "新用户审批", - "icon": "#", - "noCache": false, - "link": null - } - }, - { - "name": "Dict", - "path": "dict", - "hidden": false, - "component": "system/dict/index", - "meta": { - "title": "字典管理", - "icon": "#", - "noCache": false, - "link": null - } - } - ] - } -]) - -console.log('routers', routers.value) +const routers = computed(() => permissionStore.topbarRouters) // 顶部显示菜单 const topMenus = computed(() => { @@ -266,8 +66,6 @@ const topMenus = computed(() => { return topMenus }) - - // 设置子路由 const childrenMenus = computed(() => { let childrenMenus = [] @@ -297,20 +95,18 @@ const activeMenu = computed(() => { const tmpPath = path.substring(1, path.length) if (!route.meta.link) { activePath = "/" + tmpPath.substring(0, tmpPath.indexOf("/")) - appStore.toggleSideBarHide(false) + // appStore.toggleSideBarHide(false) } } else if (!route.children) { activePath = path - appStore.toggleSideBarHide(true) + // appStore.toggleSideBarHide(true) } activeRoutes(activePath) return activePath }) function setVisibleNumber() { - console.log('sdfsda') const width = document.body.getBoundingClientRect().width / 3 - console.log('sdfsda', width) visibleNumber.value = parseInt(width / 85) } @@ -329,11 +125,11 @@ function handleSelect(key, keyPath) { } else { router.push({ path: key }) } - appStore.toggleSideBarHide(true) + // appStore.toggleSideBarHide(true) } else { // 显示左侧联动菜单 activeRoutes(key) - appStore.toggleSideBarHide(false) + // appStore.toggleSideBarHide(false) } } @@ -349,7 +145,7 @@ function activeRoutes(key) { if (routes.length > 0) { permissionStore.setSidebarRouters(routes) } else { - appStore.toggleSideBarHide(true) + // appStore.toggleSideBarHide(true) } return routes } @@ -386,7 +182,7 @@ onMounted(() => { margin: 0 36px !important; } -// 一级菜单选中 +// 一级菜单选中 .el-menu--horizontal>.el-menu-item.is-active, .el-menu--horizontal>.el-sub-menu.is-active .el-sub-menu__title { border-bottom: 2px solid #FFFFFF; @@ -405,57 +201,70 @@ onMounted(() => { font-weight: 700; } +/* 带有二级菜单的 item */ +.el-menu--horizontal>.el-sub-menu .el-sub-menu__title { + font-family: Microsoft YaHei; + font-weight: 600; + font-size: 18px; + color: #FFFFFF; + padding: 0px !important; + margin: 0 36px !important; +} + +.el-menu--horizontal>.el-sub-menu .el-sub-menu__title:hover { + border-bottom: 2px solid #FFFFFF; + color: #FFFFFF !important; + background-color: transparent !important; + font-weight: 700; +} + + +/* 背景色隐藏 */ +.el-menu--horizontal>.el-menu-item:not(.is-disabled):focus, +.el-menu--horizontal>.el-menu-item:not(.is-disabled):hover, +.el-menu--horizontal>.el-submenu .el-submenu__title:hover { + color: #FFFFFF !important; + background-color: transparent !important; +} + + +// 悬浮子菜单样式 +.el-menu--horizontal.el-menu--popup-container { + border-radius: 4px 4px 4px 4px !important; + border: 0px solid #3672eb; +} + +.el-menu--popup { + border-radius: 4px 4px 4px 4px; + background: #ffffff; + box-shadow: 0 0 8px 0 #00328214; + min-width: auto !important; +} + +.el-popper.is-light, +.el-popper.is-light>.el-popper__arrow:before { + border: 0px solid #3672eb !important; +} + +// 二级菜单未选中样式 +.el-menu--horizontal .el-menu .el-menu-item, +.el-menu--horizontal .el-menu .el-sub-menu__title { + font-family: Microsoft YaHei; + font-weight: 400; + font-size: 16px; + color: #1E1E1E; +} + +// 二级菜单悬浮和选中样式 .el-menu--horizontal .el-menu .el-menu-item:hover { - color: #ffffff !important; - background: #545454 !important; + font-weight: 600 !important; + font-size: 16px !important; + color: #1A75E6 !important; } .el-menu--horizontal .el-menu .el-menu-item.is-active { - color: #ffffff !important; - background: #545454 !important; + font-weight: 600 !important; + font-size: 16px !important; + color: #1A75E6 !important; } - -// .topmenu-container.el-menu--horizontal>.el-menu-item { -// float: left; -// height: 50px !important; -// line-height: 50px !important; -// color: #999093 !important; -// padding: 0 5px !important; -// margin: 0 10px !important; -// } - -// .topmenu-container.el-menu--horizontal>.el-menu-item.is-active, -// .el-menu--horizontal>.el-sub-menu.is-active .el-submenu__title { -// border-bottom: 2px solid #{'var(--theme)'} !important; -// color: #303133; -// } - -// /* sub-menu item */ -// .topmenu-container.el-menu--horizontal>.el-sub-menu .el-sub-menu__title { -// float: left; -// height: 50px !important; -// line-height: 50px !important; -// color: #999093 !important; -// padding: 0 5px !important; -// margin: 0 10px !important; -// } - -// /* 背景色隐藏 */ -// .topmenu-container.el-menu--horizontal>.el-menu-item:not(.is-disabled):focus, -// .topmenu-container.el-menu--horizontal>.el-menu-item:not(.is-disabled):hover, -// .topmenu-container.el-menu--horizontal>.el-submenu .el-submenu__title:hover { -// background-color: #ffffff; -// } - -// /* 图标右间距 */ -// .topmenu-container .svg-icon { -// margin-right: 4px; -// } - -// /* topmenu more arrow */ -// .topmenu-container .el-sub-menu .el-sub-menu__icon-arrow { -// position: static; -// vertical-align: middle; -// margin-left: 8px; -// margin-top: 0px; -// } + diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index f6cf2a9..f98568d 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -54,6 +54,7 @@ const logout = () => { ElMessageBox.confirm('确定注销并退出系统吗?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', + closeOnClickModal: false, // 禁止点击遮罩层关闭 type: 'warning' }).then(() => { userStore.logOut().then(() => { diff --git a/src/layout/index.vue b/src/layout/index.vue index bb9db42..2f1b148 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -1,7 +1,8 @@ + - diff --git a/src/views/supplier/index.vue b/src/views/supplier/index.vue deleted file mode 100644 index e69de29..0000000 diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index c82e24d..84bc53d 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -1,95 +1,74 @@ diff --git a/src/views/system/dict/data.vue b/src/views/system/dict/data.vue index 4869f94..9674894 100644 --- a/src/views/system/dict/data.vue +++ b/src/views/system/dict/data.vue @@ -1,132 +1,96 @@ diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index 3671b74..372dcc1 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -1,147 +1,93 @@ diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue index ed41531..6c7fb43 100644 --- a/src/views/system/menu/index.vue +++ b/src/views/system/menu/index.vue @@ -1,102 +1,84 @@ + \ No newline at end of file diff --git a/src/views/system/role/authUser.vue b/src/views/system/role/authUser.vue index c607f63..1cd421c 100644 --- a/src/views/system/role/authUser.vue +++ b/src/views/system/role/authUser.vue @@ -1,99 +1,79 @@ - diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index 793cba6..e1f4ab2 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -1,249 +1,185 @@ diff --git a/src/views/system/role/selectUser.vue b/src/views/system/role/selectUser.vue index 0796618..ffbc221 100644 --- a/src/views/system/role/selectUser.vue +++ b/src/views/system/role/selectUser.vue @@ -1,32 +1,24 @@ - +