jiangyy 3 years ago
parent
commit
9d91ef9d2a
  1. BIN
      src/assets/images/shuju/main/card-title-bg.png
  2. BIN
      src/assets/images/shuju/main/corner-left-bottom.png
  3. BIN
      src/assets/images/shuju/main/corner-left-top.png
  4. BIN
      src/assets/images/shuju/main/corner-right-bottom.png
  5. BIN
      src/assets/images/shuju/main/corner-right-top.png
  6. BIN
      src/assets/images/shuju/main/nav-left-on.png
  7. BIN
      src/assets/images/shuju/main/nav-left.png
  8. BIN
      src/assets/images/shuju/main/nav-right-on.png
  9. BIN
      src/assets/images/shuju/main/nav-right.png
  10. BIN
      src/assets/images/shuju/main/top-bg.png
  11. 723
      src/assets/scss/main-shuju.scss
  12. 684
      src/assets/scss/main-shuju备份.scss
  13. 51
      src/views/main-shuju/main-navbar.vue
  14. 21
      src/views/main-shuju/main.vue

BIN
src/assets/images/shuju/main/card-title-bg.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

BIN
src/assets/images/shuju/main/corner-left-bottom.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
src/assets/images/shuju/main/corner-left-top.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
src/assets/images/shuju/main/corner-right-bottom.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
src/assets/images/shuju/main/corner-right-top.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
src/assets/images/shuju/main/nav-left-on.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

BIN
src/assets/images/shuju/main/nav-left.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
src/assets/images/shuju/main/nav-right-on.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

BIN
src/assets/images/shuju/main/nav-right.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
src/assets/images/shuju/main/top-bg.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 KiB

723
src/assets/scss/main-shuju.scss

@ -1,684 +1,113 @@
@import "~@/element-ui/theme-variables.scss";
@import "./shuju-variables.scss";
@import "./c/config"; @import "./c/config";
@import "./c/function"; @import "./c/function";
@import "./modules/visual/c/common.scss";
.g-main { .g-fx {
padding: 10px 20px 10px; background-color: #00023a;
} }
.m-iframe { .i-corner {
position: relative; position: absolute;
box-sizing: content-box; z-index: 0;
width: calc(100% + 20px); width: 121px;
margin: -10px -20px -10px; &.z-left-top {
z-index: 100; top: 15px;
} left: 15px;
/* Reset element-ui
------------------------------ */
.g-bd {
background-image: url(../img/shuju/bg.jpg);
background-size: cover;
background-position: center 0;
height: 100%;
@include scrollBar;
.el-card + .el-card {
margin-top: 15px;
}
.el-input__prefix .el-input__icon {
display: inline-block;
vertical-align: middle;
}
.el-date-editor .el-range-separator {
width: 8%;
} }
.el-table th { &.z-left-bottom {
color: $--color-text-primary; bottom: 15px;
background-color: $--background-color-base; left: 15px;
} }
.el-pagination { &.z-right-top {
margin-top: 15px; top: 15px;
text-align: right; right: 15px;
} }
.el-table__expand-icon { &.z-right-bottom {
display: inline-block; bottom: 15px;
width: 14px; right: 15px;
vertical-align: middle;
margin-right: 5px;
} }
} }
/* Common .m-topnav {
------------------------------ */
// 图标
.icon-svg {
width: 1em;
height: 1em;
fill: currentColor;
vertical-align: middle;
overflow: hidden;
}
// 卡片
.aui-card--fill .el-card__header {
height: $content--card-header-height;
line-height: $content--card-header-height - 36px;
}
.aui-card__title {
font-size: 16px;
}
// 表单
.aui-form__label-icon {
display: inline-block;
margin: 0 3px;
vertical-align: middle;
font-size: 18px;
color: $--color-text-secondary;
}
// 按钮
.aui-button--dashed {
border-style: dashed;
&:focus,
&:hover {
background-color: transparent;
}
&-add {
> span > *[class*="el-icon-"],
> span > *[class*="icon"] {
vertical-align: middle;
font-size: 18px;
margin-right: 5px;
}
}
}
/* Layout
------------------------------ */
.g-bd {
position: relative; position: relative;
padding-top: $navbar--height; z-index: 1;
width: 100%;
/* Sidebar fold height: 101px;
------------------------------ */ background-image: url(../images/shuju/main/top-bg.png);
&.z-sidebar--fold { background-repeat: no-repeat;
.navbar { background-position: top center;
&__header, background-size: 100%;
&__brand { .title {
width: $sidebar--width-fold; position: absolute;
} left: 0;
&__brand { right: 0;
&-lg { top: 0;
display: none; margin: 0 auto;
} line-height: 70px;
&-mini { text-align: center;
display: inline-block; font-size: 32px;
} font-family: PingFangSC-Medium, PingFang SC;
} font-weight: 500;
&__icon-menu--switch {
transform: rotateZ(180deg);
}
}
.aui-sidebar {
&__inner {
width: $sidebar--width-fold + 20px;
}
&,
&__menu {
width: $sidebar--width-fold;
}
&__menu > li > .el-submenu__title {
text-align: center;
}
&__menu-icon {
margin-right: 0;
font-size: 18px;
}
}
.g-cnt {
&__wrapper {
margin-left: $sidebar--width-fold;
}
&--tabs > .el-tabs > .el-tabs__header {
left: $sidebar--width-fold;
}
}
}
&.z-sidebar--noside {
.aui-sidebar {
display: none !important;
}
.g-cnt {
&__wrapper {
margin-left: 0 !important;
}
&--tabs > .el-tabs > .el-tabs__header {
left: 0 !important;
}
}
}
&.z-iframe {
padding-top: 0;
.aui-content--tabs {
padding-top: 0;
}
}
}
/* Navbar
------------------------------ */
.m-navbar {
position: fixed;
top: 0;
right: 0;
left: 0;
z-index: 1030;
display: flex;
align-items: stretch;
height: $navbar--height;
// background-color: $--color-primary;
// box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.05);
background: linear-gradient(180deg, #00023f, #176dec);
box-shadow: 0px 3px 16px 0px rgba(187, 187, 227, 0.35);
font-size: 19px;
.el-menu-item {
font-size: 19px;
}
.navbar--colorful {
.navbar__body {
background-color: transparent;
}
.navbar__menu {
> .el-menu-item,
> .el-submenu > .el-submenu__title {
color: #fff;
&:focus,
&:hover {
color: #fff;
background-color: mix(#000, $--color-primary, 15%);
}
}
> .el-menu-item.is-active,
> .el-submenu.is-active > .el-submenu__title {
color: #fff;
&:focus,
&:hover {
color: #fff;
}
}
.el-menu-item i,
.el-submenu__title i,
.el-menu-item svg,
.el-submenu__title svg,
.el-menu-item .el-dropdown {
color: #fff !important;
}
.el-button {
color: #fff;
background-color: transparent;
}
}
.navbar__search {
&-txt {
.el-input__inner {
color: #fff;
border-color: #fff;
&::-webkit-input-placeholder {
color: #fff;
}
}
}
}
}
.navbar__header {
position: relative;
width: $sidebar--width;
height: $navbar--height;
transition: width 0.3s;
}
.navbar__brand {
position: relative;
display: flex;
justify-content: center;
align-items: center;
padding: 10px 20px;
margin: 0;
width: 100%;
height: 100%;
font-size: 28px;
font-weight: bold;
text-transform: uppercase;
white-space: nowrap;
// overflow: hidden;
transition: width 0.3s;
font-family: FZZCHJW;
color: #ffffff; color: #ffffff;
background: linear-gradient(0deg, #03c7ff 24.609375%, #ffffff 81.0791015625%);
-webkit-background-clip: text;
-webkit-text-fill-color: rgba(#fff, 0.7);
&::before {
position: absolute;
content: "";
z-index: 100000;
display: block;
bottom: -10px;
left: -920px;
right: -1000px;
margin: 0 auto;
width: 400px;
height: 20px;
// background-color: #fff;
background-image: url(../img/shuju/flash.png);
background-size: cover;
background-position: center center;
}
&-lg,
&-mini {
max-width: 100%;
color: #fff;
cursor: pointer;
&:focus,
&:hover {
color: #fff;
text-decoration: none;
}
}
&-mini {
display: none;
}
} }
.navbar__body {
position: relative;
display: flex;
flex: 1;
// background-color: #fff;
background-color: transparent;
// overflow: hidden;
}
.navbar__menu {
background-color: transparent;
border-bottom: 0 !important;
a:focus, .nav-list {
a:hover { position: absolute;
text-decoration: none; top: 40px;
} left: 40px;
&.z-div { display: flex;
.el-menu-item, width: 500px;
.sub-menu {
position: relative;
&.is-active, &.z-right {
left: auto;
right: 40px;
.nav-item {
background-image: url(../images/shuju/main/nav-right.png);
&.z-on { &.z-on {
&::before { &::before {
position: absolute; background-image: url(../images/shuju/main/nav-right-on.png);
content: "";
display: block;
bottom: -6px;
left: 0;
right: 0;
margin: 0 auto;
width: 50px;
height: 4px;
border: 0;
border-radius: 0 0 2px 2px;
background: #1effff;
}
}
&:last-child {
&::after {
display: none;
} }
} }
&::after {
position: absolute;
content: "";
right: 0;
top: 0;
bottom: 0;
margin: auto 0;
width: 1px;
height: 18px;
background-color: rgba(#ffffff, 0.6);
}
} }
} }
.sub-menu { .nav-item {
position: relative; position: relative;
float: left; width: 120px;
height: 40px;
line-height: 40px;
font-size: 16px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
background-image: url(../images/shuju/main/nav-left.png);
background-size: 100%;
text-align: center;
cursor: pointer; cursor: pointer;
&:hover { color: rgba(#fff, 0.85);
.sub-menu-list {
display: block;
}
}
.sub-menu-list {
position: absolute;
display: none;
padding: 0 10px;
width: 160px;
left: -100px;
right: -100px;
margin: 0 auto;
background-color: rgba(#176dec, 0.9);
text-align: center;
cursor: pointer;
> div {
border-top: 1px dashed rgba(#fff, 0.4);
color: rgba(#fff, 0.7);
transition: all ease 0.5s;
padding: 10px 0;
line-height: $navbar--height * 0.5;
&.z-on { span {
font-weight: bold; position: relative;
} z-index: 1;
&.z-on,
&:hover {
color: #ffd;
}
}
} }
}
.el-menu-item,
.sub-menu {
height: $navbar--height;
padding: 0 15px;
line-height: $navbar--height;
border-color: transparent !important;
color: #fff;
}
.el-menu-item.is-active,
.sub-menu.z-on {
color: #fff;
font-weight: bold;
}
.el-menu-item,
.sub-menu {
i {
color: #fff;
}
&:focus,
&:hover { &:hover {
color: #fff; color: #fff;
background-color: transparent !important;
.navbar__icon-menu {
color: #fff;
}
.el-dropdown {
color: #fff;
.el-icon-arrow-down {
transform: rotateZ(180deg);
}
}
}
* {
vertical-align: initial;
}
.navbar__icon-menu {
vertical-align: middle;
font-size: 20px;
}
.el-dropdown {
color: #fff;
font-size: 16px;
.el-icon-arrow-down {
width: auto;
font-size: 16px;
margin: 0 0 0 5px;
transition: transform 0.3s;
}
}
}
.el-badge {
display: inline;
z-index: 2;
&__content {
line-height: 16px;
}
}
}
.navbar__search {
> *[class*="el-icon-"],
> *[class*="icon"] {
display: inline-block;
vertical-align: middle;
}
&-txt {
width: 0;
transition: width 0.3s, margin-left 0.3s;
&.is-show {
width: 210px;
margin-left: 8px;
}
.el-input__inner {
height: $navbar--height - 20px;
padding: 0;
line-height: $navbar--height - 20px;
border-color: $--color-text-primary;
border-top: 0;
border-right: 0;
border-left: 0;
border-radius: 0;
background: transparent;
}
}
}
.navbar__avatar {
.el-dropdown-link {
> img {
width: 42px;
height: auto;
margin-right: 7px;
border-radius: 100%;
vertical-align: middle;
} }
}
}
}
/* Content &.z-on {
------------------------------ */ background-image: none;
.g-cnt { &::before {
position: relative; position: absolute;
// padding: $content--padding; z-index: -1;
min-height: calc(100vh - #{$navbar--height}); content: "";
background-color: transparent; display: block;
top: -2px;
&__wrapper { left: -5px;
position: relative; width: 132px;
margin-left: $sidebar--width; height: 47px;
min-height: calc(100vh - #{$navbar--height}); background-image: url(../images/shuju/main/nav-left-on.png);
background-color: $content--background-color; background-size: 100%;
transition: margin-left 0.3s;
}
> .aui-card--fill > .el-card__body {
min-height: calc(#{$content--fill-height} - 2px);
}
> .aui-card--fill > .el-card__header + .el-card__body {
min-height: calc(#{$content--fill-height} - #{$content--card-header-height} - 2px);
}
&--tabs {
padding: $content--tabs-header-height 0 0;
}
&--tabs-tools {
position: fixed;
top: $navbar--height;
right: 0;
z-index: 931;
min-width: $content--tabs-header-height;
height: $content--tabs-header-height;
padding: 0 12px;
text-align: center;
font-size: 16px;
line-height: $content--tabs-header-height;
background-color: $--background-color-base;
cursor: pointer;
}
&--tabs-icon-nav {
display: inline-block;
vertical-align: middle;
font-size: 16px;
}
> .el-tabs {
> .el-tabs__header {
position: fixed;
top: $navbar--height;
left: $sidebar--width;
right: 0;
z-index: 930;
padding: 0 55px 0 15px;
margin: 0;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
background-color: #fff;
transition: left 0.3s;
> .el-tabs__nav-wrap {
margin-bottom: 0;
&:after {
display: none;
}
> .el-tabs__nav-next,
> .el-tabs__nav-prev {
line-height: $content--tabs-header-height;
}
> .el-tabs__nav-scroll > .el-tabs__nav {
& > .el-tabs__active-bar {
display: none;
}
& > .el-tabs__item {
height: $content--tabs-header-height;
padding: 0 15px;
line-height: $content--tabs-header-height;
border: 0;
color: $--color-text-regular;
&:focus,
&:hover,
&.is-active {
color: $--color-text-primary;
background-color: $--background-color-base;
&:after {
display: block;
}
> .el-icon-close {
color: $--color-text-primary;
}
}
&:after {
display: none;
position: absolute;
bottom: 0;
left: 0;
content: "";
width: 100%;
height: 2px;
background-color: $--color-primary;
}
+ .el-tabs__item {
margin-left: 1px;
}
> .el-icon-close {
width: 14px;
margin-left: 15px;
color: $--color-text-secondary;
}
> i.icon {
display: inline-block;
vertical-align: middle;
font-size: 18px;
}
}
}
}
}
> .el-tabs__content {
padding: $content--padding;
.el-loading-mask {
z-index: 830;
}
> .el-tab-pane {
min-height: calc(#{$content--fill-height-tabs});
> .aui-card--fill > .el-card__body {
min-height: calc(#{$content--fill-height-tabs} - 2px);
}
> .aui-card--fill > .el-card__header + .el-card__body {
min-height: calc(#{$content--fill-height-tabs} - #{$content--card-header-height} - 2px);
}
&.is-iframe {
height: calc(#{$content--fill-height-tabs} + #{$content--padding * 2});
margin: -$content--padding;
min-height: auto;
> .aui-card--fill {
background-color: transparent;
}
> .aui-card--fill > .el-card__header {
background-color: #fff;
}
> .aui-card--fill > .el-card__body {
height: calc(#{$content--fill-height-tabs} - 2px);
margin: $content--padding;
min-height: auto;
border: $--border-base;
border-color: $--border-color-lighter;
border-radius: $--border-radius-base;
background-color: #fff;
}
> .aui-card--fill > .el-card__header + .el-card__body {
height: calc(#{$content--fill-height-tabs} - #{$content--card-header-height} - 2px);
}
} }
} }
} }
} }
// quill富文本编辑器
.ql-toolbar {
line-height: 20px;
&.ql-snow {
border-color: $--border-color-base;
}
.ql-formats {
margin: 0 5px;
}
}
.ql-container {
height: 150px;
&.ql-snow {
border-color: $--border-color-base;
}
}
}
.el-loading-mask {
z-index: 5001 !important;
}
/* Page
------------------------------ */
*[class*="aui-page__"] {
padding-top: 0;
.aui-content {
min-height: auto;
&__wrapper {
min-height: 100vh;
margin-left: 0;
}
> .aui-card--fill > .el-card__body {
min-height: calc(100vh - #{$content--padding * 2} - 2px);
}
> .aui-card--fill > .el-card__header + .el-card__body {
min-height: calc(100vh - #{$content--padding * 2} - #{$content--card-header-height} - 2px);
}
}
} }

684
src/assets/scss/main-shuju备份.scss

@ -0,0 +1,684 @@
@import "~@/element-ui/theme-variables.scss";
@import "./shuju-variables.scss";
@import "./c/config";
@import "./c/function";
@import "./modules/visual/c/common.scss";
.g-main {
padding: 10px 20px 10px;
}
.m-iframe {
position: relative;
box-sizing: content-box;
width: calc(100% + 20px);
margin: -10px -20px -10px;
z-index: 100;
}
/* Reset element-ui
------------------------------ */
.g-bd {
background-image: url(../img/shuju/bg.jpg);
background-size: cover;
background-position: center 0;
height: 100%;
@include scrollBar;
.el-card + .el-card {
margin-top: 15px;
}
.el-input__prefix .el-input__icon {
display: inline-block;
vertical-align: middle;
}
.el-date-editor .el-range-separator {
width: 8%;
}
.el-table th {
color: $--color-text-primary;
background-color: $--background-color-base;
}
.el-pagination {
margin-top: 15px;
text-align: right;
}
.el-table__expand-icon {
display: inline-block;
width: 14px;
vertical-align: middle;
margin-right: 5px;
}
}
/* Common
------------------------------ */
// 图标
.icon-svg {
width: 1em;
height: 1em;
fill: currentColor;
vertical-align: middle;
overflow: hidden;
}
// 卡片
.aui-card--fill .el-card__header {
height: $content--card-header-height;
line-height: $content--card-header-height - 36px;
}
.aui-card__title {
font-size: 16px;
}
// 表单
.aui-form__label-icon {
display: inline-block;
margin: 0 3px;
vertical-align: middle;
font-size: 18px;
color: $--color-text-secondary;
}
// 按钮
.aui-button--dashed {
border-style: dashed;
&:focus,
&:hover {
background-color: transparent;
}
&-add {
> span > *[class*="el-icon-"],
> span > *[class*="icon"] {
vertical-align: middle;
font-size: 18px;
margin-right: 5px;
}
}
}
/* Layout
------------------------------ */
.g-bd {
position: relative;
padding-top: $navbar--height;
/* Sidebar fold
------------------------------ */
&.z-sidebar--fold {
.navbar {
&__header,
&__brand {
width: $sidebar--width-fold;
}
&__brand {
&-lg {
display: none;
}
&-mini {
display: inline-block;
}
}
&__icon-menu--switch {
transform: rotateZ(180deg);
}
}
.aui-sidebar {
&__inner {
width: $sidebar--width-fold + 20px;
}
&,
&__menu {
width: $sidebar--width-fold;
}
&__menu > li > .el-submenu__title {
text-align: center;
}
&__menu-icon {
margin-right: 0;
font-size: 18px;
}
}
.g-cnt {
&__wrapper {
margin-left: $sidebar--width-fold;
}
&--tabs > .el-tabs > .el-tabs__header {
left: $sidebar--width-fold;
}
}
}
&.z-sidebar--noside {
.aui-sidebar {
display: none !important;
}
.g-cnt {
&__wrapper {
margin-left: 0 !important;
}
&--tabs > .el-tabs > .el-tabs__header {
left: 0 !important;
}
}
}
&.z-iframe {
padding-top: 0;
.aui-content--tabs {
padding-top: 0;
}
}
}
/* Navbar
------------------------------ */
.m-navbar {
position: fixed;
top: 0;
right: 0;
left: 0;
z-index: 1030;
display: flex;
align-items: stretch;
height: $navbar--height;
// background-color: $--color-primary;
// box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.05);
background: linear-gradient(180deg, #00023f, #176dec);
box-shadow: 0px 3px 16px 0px rgba(187, 187, 227, 0.35);
font-size: 19px;
.el-menu-item {
font-size: 19px;
}
.navbar--colorful {
.navbar__body {
background-color: transparent;
}
.navbar__menu {
> .el-menu-item,
> .el-submenu > .el-submenu__title {
color: #fff;
&:focus,
&:hover {
color: #fff;
background-color: mix(#000, $--color-primary, 15%);
}
}
> .el-menu-item.is-active,
> .el-submenu.is-active > .el-submenu__title {
color: #fff;
&:focus,
&:hover {
color: #fff;
}
}
.el-menu-item i,
.el-submenu__title i,
.el-menu-item svg,
.el-submenu__title svg,
.el-menu-item .el-dropdown {
color: #fff !important;
}
.el-button {
color: #fff;
background-color: transparent;
}
}
.navbar__search {
&-txt {
.el-input__inner {
color: #fff;
border-color: #fff;
&::-webkit-input-placeholder {
color: #fff;
}
}
}
}
}
.navbar__header {
position: relative;
width: $sidebar--width;
height: $navbar--height;
transition: width 0.3s;
}
.navbar__brand {
position: relative;
display: flex;
justify-content: center;
align-items: center;
padding: 10px 20px;
margin: 0;
width: 100%;
height: 100%;
font-size: 28px;
font-weight: bold;
text-transform: uppercase;
white-space: nowrap;
// overflow: hidden;
transition: width 0.3s;
font-family: FZZCHJW;
color: #ffffff;
background: linear-gradient(0deg, #03c7ff 24.609375%, #ffffff 81.0791015625%);
-webkit-background-clip: text;
-webkit-text-fill-color: rgba(#fff, 0.7);
&::before {
position: absolute;
content: "";
z-index: 100000;
display: block;
bottom: -10px;
left: -920px;
right: -1000px;
margin: 0 auto;
width: 400px;
height: 20px;
// background-color: #fff;
background-image: url(../img/shuju/flash.png);
background-size: cover;
background-position: center center;
}
&-lg,
&-mini {
max-width: 100%;
color: #fff;
cursor: pointer;
&:focus,
&:hover {
color: #fff;
text-decoration: none;
}
}
&-mini {
display: none;
}
}
.navbar__body {
position: relative;
display: flex;
flex: 1;
// background-color: #fff;
background-color: transparent;
// overflow: hidden;
}
.navbar__menu {
background-color: transparent;
border-bottom: 0 !important;
a:focus,
a:hover {
text-decoration: none;
}
&.z-div {
.el-menu-item,
.sub-menu {
position: relative;
&.is-active,
&.z-on {
&::before {
position: absolute;
content: "";
display: block;
bottom: -6px;
left: 0;
right: 0;
margin: 0 auto;
width: 50px;
height: 4px;
border: 0;
border-radius: 0 0 2px 2px;
background: #1effff;
}
}
&:last-child {
&::after {
display: none;
}
}
&::after {
position: absolute;
content: "";
right: 0;
top: 0;
bottom: 0;
margin: auto 0;
width: 1px;
height: 18px;
background-color: rgba(#ffffff, 0.6);
}
}
}
.sub-menu {
position: relative;
float: left;
cursor: pointer;
&:hover {
.sub-menu-list {
display: block;
}
}
.sub-menu-list {
position: absolute;
display: none;
padding: 0 10px;
width: 160px;
left: -100px;
right: -100px;
margin: 0 auto;
background-color: rgba(#176dec, 0.9);
text-align: center;
cursor: pointer;
> div {
border-top: 1px dashed rgba(#fff, 0.4);
color: rgba(#fff, 0.7);
transition: all ease 0.5s;
padding: 10px 0;
line-height: $navbar--height * 0.5;
&.z-on {
font-weight: bold;
}
&.z-on,
&:hover {
color: #ffd;
}
}
}
}
.el-menu-item,
.sub-menu {
height: $navbar--height;
padding: 0 15px;
line-height: $navbar--height;
border-color: transparent !important;
color: #fff;
}
.el-menu-item.is-active,
.sub-menu.z-on {
color: #fff;
font-weight: bold;
}
.el-menu-item,
.sub-menu {
i {
color: #fff;
}
&:focus,
&:hover {
color: #fff;
background-color: transparent !important;
.navbar__icon-menu {
color: #fff;
}
.el-dropdown {
color: #fff;
.el-icon-arrow-down {
transform: rotateZ(180deg);
}
}
}
* {
vertical-align: initial;
}
.navbar__icon-menu {
vertical-align: middle;
font-size: 20px;
}
.el-dropdown {
color: #fff;
font-size: 16px;
.el-icon-arrow-down {
width: auto;
font-size: 16px;
margin: 0 0 0 5px;
transition: transform 0.3s;
}
}
}
.el-badge {
display: inline;
z-index: 2;
&__content {
line-height: 16px;
}
}
}
.navbar__search {
> *[class*="el-icon-"],
> *[class*="icon"] {
display: inline-block;
vertical-align: middle;
}
&-txt {
width: 0;
transition: width 0.3s, margin-left 0.3s;
&.is-show {
width: 210px;
margin-left: 8px;
}
.el-input__inner {
height: $navbar--height - 20px;
padding: 0;
line-height: $navbar--height - 20px;
border-color: $--color-text-primary;
border-top: 0;
border-right: 0;
border-left: 0;
border-radius: 0;
background: transparent;
}
}
}
.navbar__avatar {
.el-dropdown-link {
> img {
width: 42px;
height: auto;
margin-right: 7px;
border-radius: 100%;
vertical-align: middle;
}
}
}
}
/* Content
------------------------------ */
.g-cnt {
position: relative;
// padding: $content--padding;
min-height: calc(100vh - #{$navbar--height});
background-color: transparent;
&__wrapper {
position: relative;
margin-left: $sidebar--width;
min-height: calc(100vh - #{$navbar--height});
background-color: $content--background-color;
transition: margin-left 0.3s;
}
> .aui-card--fill > .el-card__body {
min-height: calc(#{$content--fill-height} - 2px);
}
> .aui-card--fill > .el-card__header + .el-card__body {
min-height: calc(#{$content--fill-height} - #{$content--card-header-height} - 2px);
}
&--tabs {
padding: $content--tabs-header-height 0 0;
}
&--tabs-tools {
position: fixed;
top: $navbar--height;
right: 0;
z-index: 931;
min-width: $content--tabs-header-height;
height: $content--tabs-header-height;
padding: 0 12px;
text-align: center;
font-size: 16px;
line-height: $content--tabs-header-height;
background-color: $--background-color-base;
cursor: pointer;
}
&--tabs-icon-nav {
display: inline-block;
vertical-align: middle;
font-size: 16px;
}
> .el-tabs {
> .el-tabs__header {
position: fixed;
top: $navbar--height;
left: $sidebar--width;
right: 0;
z-index: 930;
padding: 0 55px 0 15px;
margin: 0;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
background-color: #fff;
transition: left 0.3s;
> .el-tabs__nav-wrap {
margin-bottom: 0;
&:after {
display: none;
}
> .el-tabs__nav-next,
> .el-tabs__nav-prev {
line-height: $content--tabs-header-height;
}
> .el-tabs__nav-scroll > .el-tabs__nav {
& > .el-tabs__active-bar {
display: none;
}
& > .el-tabs__item {
height: $content--tabs-header-height;
padding: 0 15px;
line-height: $content--tabs-header-height;
border: 0;
color: $--color-text-regular;
&:focus,
&:hover,
&.is-active {
color: $--color-text-primary;
background-color: $--background-color-base;
&:after {
display: block;
}
> .el-icon-close {
color: $--color-text-primary;
}
}
&:after {
display: none;
position: absolute;
bottom: 0;
left: 0;
content: "";
width: 100%;
height: 2px;
background-color: $--color-primary;
}
+ .el-tabs__item {
margin-left: 1px;
}
> .el-icon-close {
width: 14px;
margin-left: 15px;
color: $--color-text-secondary;
}
> i.icon {
display: inline-block;
vertical-align: middle;
font-size: 18px;
}
}
}
}
}
> .el-tabs__content {
padding: $content--padding;
.el-loading-mask {
z-index: 830;
}
> .el-tab-pane {
min-height: calc(#{$content--fill-height-tabs});
> .aui-card--fill > .el-card__body {
min-height: calc(#{$content--fill-height-tabs} - 2px);
}
> .aui-card--fill > .el-card__header + .el-card__body {
min-height: calc(#{$content--fill-height-tabs} - #{$content--card-header-height} - 2px);
}
&.is-iframe {
height: calc(#{$content--fill-height-tabs} + #{$content--padding * 2});
margin: -$content--padding;
min-height: auto;
> .aui-card--fill {
background-color: transparent;
}
> .aui-card--fill > .el-card__header {
background-color: #fff;
}
> .aui-card--fill > .el-card__body {
height: calc(#{$content--fill-height-tabs} - 2px);
margin: $content--padding;
min-height: auto;
border: $--border-base;
border-color: $--border-color-lighter;
border-radius: $--border-radius-base;
background-color: #fff;
}
> .aui-card--fill > .el-card__header + .el-card__body {
height: calc(#{$content--fill-height-tabs} - #{$content--card-header-height} - 2px);
}
}
}
}
}
// quill富文本编辑器
.ql-toolbar {
line-height: 20px;
&.ql-snow {
border-color: $--border-color-base;
}
.ql-formats {
margin: 0 5px;
}
}
.ql-container {
height: 150px;
&.ql-snow {
border-color: $--border-color-base;
}
}
}
.el-loading-mask {
z-index: 5001 !important;
}
/* Page
------------------------------ */
*[class*="aui-page__"] {
padding-top: 0;
.aui-content {
min-height: auto;
&__wrapper {
min-height: 100vh;
margin-left: 0;
}
> .aui-card--fill > .el-card__body {
min-height: calc(100vh - #{$content--padding * 2} - 2px);
}
> .aui-card--fill > .el-card__header + .el-card__body {
min-height: calc(100vh - #{$content--padding * 2} - #{$content--card-header-height} - 2px);
}
}
}

51
src/views/main-shuju/main-navbar.vue

@ -1,6 +1,28 @@
<template> <template>
<div> <div class="m-topnav">
<nav v-if="showHeader" class="m-navbar"> <div class="title">{{ customerName }}综合服务平台数据看板</div>
<div class="nav-list z-left">
<div class="nav-item" @click="toPage('/')">
<span>人房总览</span>
</div>
<div class="nav-item z-on" @click="toPage('/')">
<span>人房总览</span>
</div>
<div class="nav-item" @click="toPage('/')">
<span>人房总览</span>
</div>
<div class="nav-item" @click="toPage('/')">
<span>人房总览</span>
</div>
</div>
<div class="nav-list z-right">
<div class="nav-item z-on" @click="toPage('/')">
<span>人房总览</span>
</div>
</div>
<nav v-if="false" class="m-navbar">
<div class="navbar__header"> <div class="navbar__header">
<h1 class="navbar__brand" @click="$router.push({ name: 'home' })"> <h1 class="navbar__brand" @click="$router.push({ name: 'home' })">
<a class="navbar__brand-lg" href="javascript:;">{{ customerName }}</a> <a class="navbar__brand-lg" href="javascript:;">{{ customerName }}</a>
@ -131,7 +153,6 @@
ref="updatePassowrd" ref="updatePassowrd"
></update-password-work> ></update-password-work>
</nav> </nav>
<nav v-else class="navbar main-line"></nav>
</div> </div>
</template> </template>
@ -167,10 +188,15 @@ export default {
const customerId = localStorage.getItem("customerId"); const customerId = localStorage.getItem("customerId");
let siteconfigElement = window.SITE_CONFIG["menuShujuList"]; let siteconfigElement = window.SITE_CONFIG["menuShujuList"];
// 亿 - // 亿 -
if ("04c0d396e298f13e57aa5904a657eaa6" != customerId && "3fdd0380deff5b30f45376cdf995d1c1" != customerId){ if (
for (let index in siteconfigElement){ "04c0d396e298f13e57aa5904a657eaa6" != customerId &&
if (siteconfigElement[index].id == '6'){ "3fdd0380deff5b30f45376cdf995d1c1" != customerId
let newMenuArr = siteconfigElement[index].children.filter(item =>item.id !== 'duoyuanfuwufenxi'); ) {
for (let index in siteconfigElement) {
if (siteconfigElement[index].id == "6") {
let newMenuArr = siteconfigElement[index].children.filter(
(item) => item.id !== "duoyuanfuwufenxi"
);
siteconfigElement[index].children = newMenuArr; siteconfigElement[index].children = newMenuArr;
} }
} }
@ -179,6 +205,10 @@ export default {
}, },
computed: {}, computed: {},
methods: { methods: {
toPage(path) {
this.$router.push({ path });
},
toIndexPage() { toIndexPage() {
this.$router.replace("/"); this.$router.replace("/");
}, },
@ -254,11 +284,4 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped>
.main-line {
height: 50px;
background: #eeeeee;
}
</style>
<style lang="scss" src="@/assets/scss/main-shuju.scss" scoped></style> <style lang="scss" src="@/assets/scss/main-shuju.scss" scoped></style>

21
src/views/main-shuju/main.vue

@ -1,10 +1,27 @@
<template> <template>
<fixed1920> <fixed1920 class="g-fx">
<img
class="i-corner z-left-top"
src="~@/assets/images/shuju/main/corner-left-top.png"
/>
<img
class="i-corner z-right-top"
src="~@/assets/images/shuju/main/corner-right-top.png"
/>
<img
class="i-corner z-right-bottom"
src="~@/assets/images/shuju/main/corner-right-bottom.png"
/>
<img
class="i-corner z-left-bottom"
src="~@/assets/images/shuju/main/corner-left-bottom.png"
/>
<div <div
v-loading.fullscreen.lock="loading" v-loading.fullscreen.lock="loading"
:element-loading-text="$t('loading')" :element-loading-text="$t('loading')"
:class="[ :class="[
'g-bd', 'g-pg',
{ 'z-sidebar--fold': $store.state.sidebarFold }, { 'z-sidebar--fold': $store.state.sidebarFold },
{ {
'z-sidebar--noside': true, 'z-sidebar--noside': true,

Loading…
Cancel
Save