Commit a8ea65da by liimin

主题调整 登录页面调整 新增注册页面 其他样式调整

1 parent e6b2bb70
Showing 65 changed files with 626 additions and 440 deletions
...@@ -14,3 +14,5 @@ VUE_APP_I18N_LOCALE=zh-chs ...@@ -14,3 +14,5 @@ VUE_APP_I18N_LOCALE=zh-chs
VUE_APP_I18N_FALLBACK_LOCALE=en VUE_APP_I18N_FALLBACK_LOCALE=en
VUE_APP_ELEMENT_COLOR=#409EFF VUE_APP_ELEMENT_COLOR=#409EFF
VUE_APP_MAIN_COLOR=#3D6FE4
\ No newline at end of file \ No newline at end of file
No preview for this file type
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
width: 100%; width: 100%;
} }
.d2-home { .d2-home {
background-color: #000; background-color: #2A343D;
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
...@@ -97,8 +97,8 @@ ...@@ -97,8 +97,8 @@
</div> </div>
</div> </div>
<div class="d2-home__footer"> <div class="d2-home__footer">
<a href="https://github.com/d2-projects/d2-admin" target="_blank"> <a href="http://www.glsx.com.cn" target="_blank">
https://github.com/d2-projects/d2-admin 版权所有&copy-2019 GLSX粤ICP备12020087号
</a> </a>
</div> </div>
</div> </div>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
html, body { html, body {
margin: 0px; margin: 0px;
height: 100%; height: 100%;
font-family: "微软雅黑","Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; font-family: 12px/150% Tahoma,Helvetica,Arial,Verdana,"Microsoft YaHei","SimSun","宋体";
#app { #app {
@extend %full; @extend %full;
a { a {
......
...@@ -17,3 +17,6 @@ ...@@ -17,3 +17,6 @@
.el-tabs__item:focus.is-active.is-focus:not(:active) { .el-tabs__item:focus.is-active.is-focus:not(:active) {
box-shadow: none !important; box-shadow: none !important;
} }
.el-tabs__nav-scroll{
padding-left: 20px;
}
\ No newline at end of file \ No newline at end of file
// 主题名称
$theme-name: 'blue';
// diff
$private-left-side-color:#652DED;
// diff
$private-menu-active-background-color:#521ADA;
$private-item-hover:rgba(#000,.2);
// 主题背景颜色
$theme-bg-color: $private-left-side-color;
// 主题背景图片遮罩
$theme-bg-mask: rgba(#000, 0);
// 主区域背景色 --- limin diff
$theme-container-main-background-color:#F5F5F5;
// container组件
$theme-container-background-color: rgba(#FFF, 1);
$theme-container-header-footer-background-color: rgb(255, 255, 255);
$theme-container-border-inner: 1px solid $color-border-1;
$theme-container-border-outer: 1px solid #E7EAEC;
$theme-multiple-page-control-color: #888;
$theme-multiple-page-control-color-active: $color-text-normal;
$theme-multiple-page-control-nav-prev-color: #FFF;
$theme-multiple-page-control-nav-next-color: #FFF;
$theme-multiple-page-control-border-color: #E7EAEC;
$theme-multiple-page-control-border-color-active: #FFF;
$theme-multiple-page-control-background-color: rgba(#FFF, .2);
$theme-multiple-page-control-background-color-active: #FFF;
// hamberg --limin diff
$theme-header-hamberg-color:#FFF;
$theme-header-hamberg-color-hover:#ccc;
// 顶栏和侧边栏中展开的菜单 hover 状态下
$theme-menu-item-color-hover: #293849;
$theme-menu-item-background-color-hover: #ecf5ff;
// 头部背景色 --- limin
$theme-header-background-color:$private-left-side-color;
//logo 背景色 --- limin
$theme-header-logo-background-color:$private-left-side-color;
// 顶栏上的文字颜色 diff
$theme-header-item-color: #FFF;
$theme-header-item-background-color: transparent;
// 顶栏上的项目在 hover 时
$theme-header-item-color-hover: #FFF;
$theme-header-item-background-color-hover: $private-item-hover;
// 顶栏上的项目在 focus 时
$theme-header-item-color-focus: #FFF;
$theme-header-item-background-color-focus: rgba($private-menu-active-background-color, 1);
// 顶栏上的项目在 active 时
$theme-header-item-color-active: #FFF;
$theme-header-item-background-color-active: rgba($private-menu-active-background-color, 1);
// 侧边栏上的文字颜色
$theme-aside-item-color: #C4D0DF;
$theme-aside-item-background-color: transparent;
// 侧边栏上的项目在 hover 时
$theme-aside-item-color-hover: #FFF;
$theme-aside-item-background-color-hover: $private-item-hover;
// 侧边栏上的项目在 focus 时
$theme-aside-item-color-focus: #FFF;
$theme-aside-item-background-color-focus: rgba($private-menu-active-background-color, 1);
// 侧边栏上的项目在 active 时
$theme-aside-item-color-active: #FFF;
$theme-aside-item-background-color-active: rgba($private-menu-active-background-color, 1);
// 侧边栏菜单为空的时候显示的元素
$theme-aside-menu-empty-icon-color: #1F3147;
$theme-aside-menu-empty-text-color: #1F3147;
$theme-aside-menu-empty-background-color: rgba(#FFF, .1);
$theme-aside-menu-empty-icon-color-hover: #FFEBA4;
$theme-aside-menu-empty-text-color-hover: #FFEBA4;
$theme-aside-menu-empty-background-color-hover: rgba(#FFF, .2);
\ No newline at end of file \ No newline at end of file
// 主题名称
$theme-name: 'classic';
$private-left-side-color:#2A58AD;
$private-menu-active-background-color:#154190;
$private-item-hover:rgba(#000,.2);
// 主题背景颜色
$theme-bg-color: $private-left-side-color;
// 主题背景图片遮罩
$theme-bg-mask: rgba(#000, 0);
// 主区域背景色 --- limin
$theme-container-main-background-color:#FFF;
// container组件
$theme-container-background-color: rgba(#FFF, 1);
$theme-container-header-footer-background-color: rgb(255, 255, 255);
$theme-container-border-inner: 1px solid $color-border-1;
$theme-container-border-outer: 1px solid #E7EAEC;
$theme-multiple-page-control-color: #888;
$theme-multiple-page-control-color-active: $color-text-normal;
$theme-multiple-page-control-nav-prev-color: #FFF;
$theme-multiple-page-control-nav-next-color: #FFF;
$theme-multiple-page-control-border-color: #E7EAEC;
$theme-multiple-page-control-border-color-active: #FFF;
$theme-multiple-page-control-background-color: rgba(#FFF, .2);
$theme-multiple-page-control-background-color-active: #FFF;
// hamberg --limin
$theme-header-hamberg-color:$private-left-side-color;
$theme-header-hamberg-color-hover:#ccc;
// 顶栏和侧边栏中展开的菜单 hover 状态下
$theme-menu-item-color-hover: #293849;
$theme-menu-item-background-color-hover: #ecf5ff;
// 头部背景色 --- limin
$theme-header-background-color:#F3F3F4;
//logo 背景色 --- limin
$theme-header-logo-background-color:$private-left-side-color;
// 顶栏上的文字颜色
$theme-header-item-color: #666;
$theme-header-item-background-color: transparent;
// 顶栏上的项目在 hover 时
$theme-header-item-color-hover: #FFF;
$theme-header-item-background-color-hover: $private-item-hover;
// 顶栏上的项目在 focus 时
$theme-header-item-color-focus: #FFF;
$theme-header-item-background-color-focus: rgba($private-menu-active-background-color, 1);
// 顶栏上的项目在 active 时
$theme-header-item-color-active: #FFF;
$theme-header-item-background-color-active: rgba($private-menu-active-background-color, 1);
// 侧边栏上的文字颜色
$theme-aside-item-color: #C4D0DF;
$theme-aside-item-background-color: transparent;
// 侧边栏上的项目在 hover 时
$theme-aside-item-color-hover: #FFF;
$theme-aside-item-background-color-hover: $private-item-hover;
// 侧边栏上的项目在 focus 时
$theme-aside-item-color-focus: #FFF;
$theme-aside-item-background-color-focus: rgba($private-menu-active-background-color, 1);
// 侧边栏上的项目在 active 时
$theme-aside-item-color-active: #FFF;
$theme-aside-item-background-color-active: rgba($private-menu-active-background-color, 1);
// 侧边栏菜单为空的时候显示的元素
$theme-aside-menu-empty-icon-color: #1F3147;
$theme-aside-menu-empty-text-color: #1F3147;
$theme-aside-menu-empty-background-color: rgba(#FFF, .1);
$theme-aside-menu-empty-icon-color-hover: #FFEBA4;
$theme-aside-menu-empty-text-color-hover: #FFEBA4;
$theme-aside-menu-empty-background-color-hover: rgba(#FFF, .2);
\ No newline at end of file \ No newline at end of file
// 主题名称
$theme-name: 'd2';
// 主题背景颜色
$theme-bg-color: #ebf1f6;
// 主题背景图片遮罩
$theme-bg-mask: rgba(#000, 0);
// container组件
$theme-container-background-color: rgba(#FFF, 1);
$theme-container-header-footer-background-color: #FFF;
$theme-container-border-inner: 1px solid #cfd7e5;
$theme-container-border-outer: 1px solid #cfd7e5;
$theme-multiple-page-control-color: $color-text-normal;
$theme-multiple-page-control-color-active: #2f74ff;
$theme-multiple-page-control-nav-prev-color: #cfd7e5;
$theme-multiple-page-control-nav-next-color: #cfd7e5;
$theme-multiple-page-control-border-color: #cfd7e5;
$theme-multiple-page-control-border-color-active: #FFF;
$theme-multiple-page-control-background-color: rgba(#000, .03);
$theme-multiple-page-control-background-color-active: #FFF;
// 顶栏和侧边栏中展开的菜单 hover 状态下
$theme-menu-item-color-hover: #293849;
$theme-menu-item-background-color-hover: #ecf5ff;
// 顶栏上的文字颜色
$theme-header-item-color: $color-text-normal;
$theme-header-item-background-color: transparent;
// 顶栏上的项目在 hover 时
$theme-header-item-color-hover: #2f74ff;
$theme-header-item-background-color-hover: rgba(#FFF, .5);
// 顶栏上的项目在 focus 时
$theme-header-item-color-focus: #2f74ff;
$theme-header-item-background-color-focus: rgba(#FFF, .5);
// 顶栏上的项目在 active 时
$theme-header-item-color-active: #2f74ff;
$theme-header-item-background-color-active: rgba(#FFF, .5);
// 侧边栏上的文字颜色
$theme-aside-item-color: $color-text-normal;
$theme-aside-item-background-color: transparent;
// 侧边栏上的项目在 hover 时
$theme-aside-item-color-hover: #2f74ff;
$theme-aside-item-background-color-hover: rgba(#FFF, .5);
// 侧边栏上的项目在 focus 时
$theme-aside-item-color-focus: #2f74ff;
$theme-aside-item-background-color-focus: rgba(#FFF, .5);
// 侧边栏上的项目在 active 时
$theme-aside-item-color-active: #2f74ff;
$theme-aside-item-background-color-active: rgba(#FFF, .5);
// 侧边栏菜单为空的时候显示的元素
$theme-aside-menu-empty-icon-color: $color-text-normal;
$theme-aside-menu-empty-text-color: $color-text-normal;
$theme-aside-menu-empty-background-color: rgba(#000, .03);
$theme-aside-menu-empty-icon-color-hover: $color-text-main;
$theme-aside-menu-empty-text-color-hover: $color-text-main;
$theme-aside-menu-empty-background-color-hover: rgba(#000, .05);
\ No newline at end of file \ No newline at end of file
// 主题名称 // 主题名称
$theme-name: 'tomorrow-night-blue'; $theme-name: 'dark';
$private-left-side-color:#314256;
$private-menu-active-background-color:#1F3147;
$private-item-hover:rgba(#000,.2);
// 主题背景颜色 // 主题背景颜色
$theme-bg-color: #002253; $theme-bg-color: $private-left-side-color;
// 主题背景图片遮罩 // 主题背景图片遮罩
$theme-bg-mask: rgba(#000, 0); $theme-bg-mask: rgba(#000, 0);
// 主区域背景色 --- limin
$theme-container-main-background-color:#F5F5F5;
// container组件 // container组件
$theme-container-background-color: rgba(#FFF, 1); $theme-container-background-color: rgba(#FFF, 1);
$theme-container-header-footer-background-color: #FFF; $theme-container-header-footer-background-color: #FFF;
$theme-container-border-inner: 1px solid $color-border-1; $theme-container-border-inner: 1px solid $color-border-1;
$theme-container-border-outer: 1px solid #002253; $theme-container-border-outer: 1px solid #E7EAEC;
$theme-multiple-page-control-color: #FFF; $theme-multiple-page-control-color: #888;
$theme-multiple-page-control-color-active: $color-text-normal; $theme-multiple-page-control-color-active: $color-text-normal;
$theme-multiple-page-control-nav-prev-color: #FFF; $theme-multiple-page-control-nav-prev-color: #FFF;
$theme-multiple-page-control-nav-next-color: #FFF; $theme-multiple-page-control-nav-next-color: #FFF;
$theme-multiple-page-control-border-color: #002253; $theme-multiple-page-control-border-color: #E7EAEC;
$theme-multiple-page-control-border-color-active: #FFF; $theme-multiple-page-control-border-color-active: #FFF;
$theme-multiple-page-control-background-color: rgba(#FFF, .2); $theme-multiple-page-control-background-color: rgba(#FFF, .2);
$theme-multiple-page-control-background-color-active: #FFF; $theme-multiple-page-control-background-color-active: #FFF;
// hamberg --limin
$theme-header-hamberg-color:#FFF;
$theme-header-hamberg-color-hover:#ccc;
// 顶栏和侧边栏中展开的菜单 hover 状态下 // 顶栏和侧边栏中展开的菜单 hover 状态下
$theme-menu-item-color-hover: #293849; $theme-menu-item-color-hover: #293849;
$theme-menu-item-background-color-hover: #ecf5ff; $theme-menu-item-background-color-hover: #ecf5ff;
// 头部背景色 --- limin
$theme-header-background-color:#3B4F67;
//logo 背景色 --- limin
$theme-header-logo-background-color:$private-left-side-color;
// 顶栏上的文字颜色 // 顶栏上的文字颜色
$theme-header-item-color: #FF929A; $theme-header-item-color: #C4D0DF;
$theme-header-item-background-color: transparent; $theme-header-item-background-color: transparent;
// 顶栏上的项目在 hover 时 // 顶栏上的项目在 hover 时
$theme-header-item-color-hover: #FFEBA4; $theme-header-item-color-hover: #FFF;
$theme-header-item-background-color-hover: rgba(#FFF, .05); $theme-header-item-background-color-hover: $private-item-hover;
// 顶栏上的项目在 focus 时 // 顶栏上的项目在 focus 时
$theme-header-item-color-focus: #FFB870; $theme-header-item-color-focus: #FFF;
$theme-header-item-background-color-focus: rgba(#FFF, .05); $theme-header-item-background-color-focus: rgba($private-menu-active-background-color, 1);
// 顶栏上的项目在 active 时 // 顶栏上的项目在 active 时
$theme-header-item-color-active: #FFB870; $theme-header-item-color-active: #FFF;
$theme-header-item-background-color-active: rgba(#FFF, .05); $theme-header-item-background-color-active: rgba($private-menu-active-background-color, 1);
// 侧边栏上的文字颜色 // 侧边栏上的文字颜色
$theme-aside-item-color: #FF929A; $theme-aside-item-color: #C4D0DF;
$theme-aside-item-background-color: transparent; $theme-aside-item-background-color: transparent;
// 侧边栏上的项目在 hover 时 // 侧边栏上的项目在 hover 时
$theme-aside-item-color-hover: #FFEBA4; $theme-aside-item-color-hover: #FFF;
$theme-aside-item-background-color-hover: rgba(#FFF, .05); $theme-aside-item-background-color-hover: $private-item-hover;
// 侧边栏上的项目在 focus 时 // 侧边栏上的项目在 focus 时
$theme-aside-item-color-focus: #FFB870; $theme-aside-item-color-focus: #FFF;
$theme-aside-item-background-color-focus: rgba(#FFF, .05); $theme-aside-item-background-color-focus: rgba($private-menu-active-background-color, 1);
// 侧边栏上的项目在 active 时 // 侧边栏上的项目在 active 时
$theme-aside-item-color-active: #FFB870; $theme-aside-item-color-active: #FFF;
$theme-aside-item-background-color-active: rgba(#FFF, .05); $theme-aside-item-background-color-active: rgba($private-menu-active-background-color, 1);
// 侧边栏菜单为空的时候显示的元素 // 侧边栏菜单为空的时候显示的元素
$theme-aside-menu-empty-icon-color: #FFB870; $theme-aside-menu-empty-icon-color: #1F3147;
$theme-aside-menu-empty-text-color: #FFB870; $theme-aside-menu-empty-text-color: #1F3147;
$theme-aside-menu-empty-background-color: rgba(#FFF, .1); $theme-aside-menu-empty-background-color: rgba(#FFF, .1);
$theme-aside-menu-empty-icon-color-hover: #FFEBA4; $theme-aside-menu-empty-icon-color-hover: #FFEBA4;
$theme-aside-menu-empty-text-color-hover: #FFEBA4; $theme-aside-menu-empty-text-color-hover: #FFEBA4;
......
// 主题名称
$theme-name: 'line';
// 主题背景颜色
$theme-bg-color: #f8f8f9;
// 主题背景图片遮罩
$theme-bg-mask: rgba(#000, 0);
// container组件
$theme-container-background-color: rgba(#FFF, .8);
$theme-container-header-footer-background-color: #FFF;
$theme-container-border-inner: 1px solid $color-border-2;
$theme-container-border-outer: 1px solid #cfd7e5;
$theme-multiple-page-control-color: #FFF;
$theme-multiple-page-control-color-active: $color-text-normal;
$theme-multiple-page-control-nav-prev-color: #cfd7e5;
$theme-multiple-page-control-nav-next-color: #cfd7e5;
$theme-multiple-page-control-border-color: #cfd7e5;
$theme-multiple-page-control-border-color-active: #FFF;
$theme-multiple-page-control-background-color: #cfd7e5;
$theme-multiple-page-control-background-color-active: #FFF;
// 顶栏和侧边栏中展开的菜单 hover 状态下
$theme-menu-item-color-hover: #293849;
$theme-menu-item-background-color-hover: #EFEFEF;
// 顶栏上的文字颜色
$theme-header-item-color: $color-text-normal;
$theme-header-item-background-color: transparent;
// 顶栏上的项目在 hover 时
$theme-header-item-color-hover: $color-text-main;
$theme-header-item-background-color-hover: rgba(#000, .02);
// 顶栏上的项目在 focus 时
$theme-header-item-color-focus: $color-text-main;
$theme-header-item-background-color-focus: rgba(#000, .02);
// 顶栏上的项目在 active 时
$theme-header-item-color-active: $color-text-main;
$theme-header-item-background-color-active: rgba(#000, .03);
// 侧边栏上的文字颜色
$theme-aside-item-color: $color-text-normal;
$theme-aside-item-background-color: transparent;
// 侧边栏上的项目在 hover 时
$theme-aside-item-color-hover: $color-text-main;
$theme-aside-item-background-color-hover: rgba(#000, .02);
// 侧边栏上的项目在 focus 时
$theme-aside-item-color-focus: $color-text-main;
$theme-aside-item-background-color-focus: rgba(#000, .02);
// 侧边栏上的项目在 active 时
$theme-aside-item-color-active: $color-text-main;
$theme-aside-item-background-color-active: rgba(#000, .03);
// 侧边栏菜单为空的时候显示的元素
$theme-aside-menu-empty-icon-color: $color-text-normal;
$theme-aside-menu-empty-text-color: $color-text-normal;
$theme-aside-menu-empty-background-color: rgba(#000, .03);
$theme-aside-menu-empty-icon-color-hover: $color-text-main;
$theme-aside-menu-empty-text-color-hover: $color-text-main;
$theme-aside-menu-empty-background-color-hover: rgba(#000, .05);
\ No newline at end of file \ No newline at end of file
// 主题名称
$theme-name: 'plane';
// diff
$private-left-side-color:transparent;
// diff
$private-menu-active-background-color:#002253;
$private-item-hover:rgba(#000,.2);
// 主题背景颜色
$theme-bg-color: $private-left-side-color;
// 主题背景图片遮罩
$theme-bg-mask: rgba(#000, 0);
// 主区域背景色 --- limin diff
$theme-container-main-background-color:transparent;
// container组件
$theme-container-background-color: rgba(#FFF, 1);
$theme-container-header-footer-background-color: rgb(255, 255, 255);
$theme-container-border-inner: 1px solid $color-border-1;
$theme-container-border-outer: 1px solid #E7EAEC;
$theme-multiple-page-control-color: #888;
$theme-multiple-page-control-color-active: $color-text-normal;
$theme-multiple-page-control-nav-prev-color: #FFF;
$theme-multiple-page-control-nav-next-color: #FFF;
$theme-multiple-page-control-border-color: #E7EAEC;
$theme-multiple-page-control-border-color-active: #FFF;
$theme-multiple-page-control-background-color: rgba(#FFF, .8);
$theme-multiple-page-control-background-color-active: #FFF;
// hamberg --limin diff
$theme-header-hamberg-color:#FFF;
$theme-header-hamberg-color-hover:#ccc;
// 顶栏和侧边栏中展开的菜单 hover 状态下
$theme-menu-item-color-hover: #293849;
$theme-menu-item-background-color-hover: #ecf5ff;
// 头部背景色 --- limin
$theme-header-background-color:$private-left-side-color;
//logo 背景色 --- limin
$theme-header-logo-background-color:$private-left-side-color;
// 顶栏上的文字颜色 diff
$theme-header-item-color: #FFF;
$theme-header-item-background-color: transparent;
// 顶栏上的项目在 hover 时
$theme-header-item-color-hover: #FFF;
$theme-header-item-background-color-hover: $private-item-hover;
// 顶栏上的项目在 focus 时
$theme-header-item-color-focus: #FFF;
$theme-header-item-background-color-focus: rgba($private-menu-active-background-color, 1);
// 顶栏上的项目在 active 时
$theme-header-item-color-active: #FFF;
$theme-header-item-background-color-active: rgba($private-menu-active-background-color, 1);
// 侧边栏上的文字颜色
$theme-aside-item-color: #C4D0DF;
$theme-aside-item-background-color: transparent;
// 侧边栏上的项目在 hover 时
$theme-aside-item-color-hover: #FFF;
$theme-aside-item-background-color-hover: $private-item-hover;
// 侧边栏上的项目在 focus 时
$theme-aside-item-color-focus: #FFF;
$theme-aside-item-background-color-focus: rgba($private-menu-active-background-color, 1);
// 侧边栏上的项目在 active 时
$theme-aside-item-color-active: #FFF;
$theme-aside-item-background-color-active: rgba($private-menu-active-background-color, 1);
// 侧边栏菜单为空的时候显示的元素
$theme-aside-menu-empty-icon-color: #1F3147;
$theme-aside-menu-empty-text-color: #1F3147;
$theme-aside-menu-empty-background-color: rgba(#FFF, .1);
$theme-aside-menu-empty-icon-color-hover: #FFEBA4;
$theme-aside-menu-empty-text-color-hover: #FFEBA4;
$theme-aside-menu-empty-background-color-hover: rgba(#FFF, .2);
\ No newline at end of file \ No newline at end of file
@import '~@/assets/style/theme/theme-base.scss'; @import '~@/assets/style/theme/theme-base.scss';
@import '~@/assets/style/theme/d2/index.scss';
@import '~@/assets/style/theme/line/index.scss';
@import '~@/assets/style/theme/star/index.scss';
@import '~@/assets/style/theme/tomorrow-night-blue/index.scss';
@import '~@/assets/style/theme/violet/index.scss';
\ No newline at end of file \ No newline at end of file
// @import '~@/assets/style/theme/d2/index.scss';
// @import '~@/assets/style/theme/line/index.scss';
// @import '~@/assets/style/theme/star/index.scss';
// @import '~@/assets/style/theme/tomorrow-night-blue/index.scss';
// @import '~@/assets/style/theme/violet/index.scss';
@import '~@/assets/style/theme/classic/index.scss';
@import '~@/assets/style/theme/dark/index.scss';
@import '~@/assets/style/theme/blue/index.scss';
@import '~@/assets/style/theme/plane/index.scss';
\ No newline at end of file \ No newline at end of file
// 主题名称
$theme-name: 'star';
// 主题背景颜色
$theme-bg-color: #EFF4F8;
// 主题背景图片遮罩
$theme-bg-mask: rgba(#000, .3);
// container组件
$theme-container-background-color: rgba(#FFF, .9);
$theme-container-header-footer-background-color: #FFF;
$theme-container-border-inner: 1px solid $color-border-1;
$theme-container-border-outer: 1px solid #114450;
$theme-multiple-page-control-color: #FFF;
$theme-multiple-page-control-color-active: $color-text-normal;
$theme-multiple-page-control-nav-prev-color: #FFF;
$theme-multiple-page-control-nav-next-color: #FFF;
$theme-multiple-page-control-border-color: #114450;
$theme-multiple-page-control-border-color-active: #FFF;
$theme-multiple-page-control-background-color: rgba(#FFF, .5);
$theme-multiple-page-control-background-color-active: #FFF;
// 顶栏和侧边栏中展开的菜单 hover 状态下
$theme-menu-item-color-hover: #293849;
$theme-menu-item-background-color-hover: #ecf5ff;
// 顶栏上的文字颜色
$theme-header-item-color: #FFF;
$theme-header-item-background-color: transparent;
// 顶栏上的项目在 hover 时
$theme-header-item-color-hover: #FFF;
$theme-header-item-background-color-hover: rgba(#000, .2);
// 顶栏上的项目在 focus 时
$theme-header-item-color-focus: #FFF;
$theme-header-item-background-color-focus: rgba(#000, .2);
// 顶栏上的项目在 active 时
$theme-header-item-color-active: #FFF;
$theme-header-item-background-color-active: rgba(#000, .3);
// 侧边栏上的文字颜色
$theme-aside-item-color: #FFF;
$theme-aside-item-background-color: transparent;
// 侧边栏上的项目在 hover 时
$theme-aside-item-color-hover: #FFF;
$theme-aside-item-background-color-hover: rgba(#000, .2);
// 侧边栏上的项目在 focus 时
$theme-aside-item-color-focus: #FFF;
$theme-aside-item-background-color-focus: rgba(#000, .2);
// 侧边栏上的项目在 active 时
$theme-aside-item-color-active: #FFF;
$theme-aside-item-background-color-active: rgba(#000, .3);
// 侧边栏菜单为空的时候显示的元素
$theme-aside-menu-empty-icon-color: #FFF;
$theme-aside-menu-empty-text-color: #FFF;
$theme-aside-menu-empty-background-color: rgba(#FFF, .2);
$theme-aside-menu-empty-icon-color-hover: #FFF;
$theme-aside-menu-empty-text-color-hover: #FFF;
$theme-aside-menu-empty-background-color-hover: rgba(#FFF, .3);
\ No newline at end of file \ No newline at end of file
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
.d2-layout-header-aside-content { .d2-layout-header-aside-content {
@extend %full; @extend %full;
.d2-theme-header { .d2-theme-header {
height: 60px; height: 58px;
.d2-theme-header-menu { .d2-theme-header-menu {
overflow: hidden; overflow: hidden;
&.is-scrollable { &.is-scrollable {
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
overflow: hidden; overflow: hidden;
.d2-theme-container-main-layer { .d2-theme-container-main-layer {
position: absolute; position: absolute;
top: 0px; top: 2px;
bottom: 0px; bottom: 0px;
left: 0px; left: 0px;
right: 0px; right: 0px;
...@@ -120,23 +120,14 @@ ...@@ -120,23 +120,14 @@
float: left; float: left;
text-align: center; text-align: center;
img { img {
height: 60px; height: 65px;
transform: translateX(-16px);
} }
} }
// 折叠侧边栏切换按钮 // 折叠侧边栏切换按钮
// .toggle-aside-btn { .toggle-aside-btn {
// float: left; margin-left: 26px;
// height: 60px; }
// width: 60px;
// display: flex;
// justify-content: center;
// align-items: center;
// @extend %unable-select;
// i {
// font-size: 20px;
// margin-top: 4px;
// }
// }
// [菜单] 顶栏 // [菜单] 顶栏
.el-menu { .el-menu {
float: left; float: left;
......
...@@ -63,6 +63,10 @@ ...@@ -63,6 +63,10 @@
// 顶栏 // 顶栏
.d2-theme-header { .d2-theme-header {
background-color: $theme-header-background-color;
.d2-theme-header-logo{
background-color: $theme-header-logo-background-color
}
// 顶栏菜单空间不足时显示的滚动控件 // 顶栏菜单空间不足时显示的滚动控件
.d2-theme-header-menu { .d2-theme-header-menu {
.d2-theme-header-menu__prev, .d2-theme-header-menu__next { .d2-theme-header-menu__prev, .d2-theme-header-menu__next {
...@@ -77,10 +81,10 @@ ...@@ -77,10 +81,10 @@
// 切换按钮 // 切换按钮
.toggle-aside-btn { .toggle-aside-btn {
// i { // i {
fill: $theme-header-item-color; fill: $theme-header-hamberg-color;
background: $theme-header-item-background-color; background: $theme-header-item-background-color;
&:hover { &:hover {
fill: $theme-header-item-color-hover; fill: $theme-header-hamberg-color-hover;
} }
// } // }
} }
...@@ -236,6 +240,7 @@ ...@@ -236,6 +240,7 @@
} }
} }
.d2-theme-container-main { .d2-theme-container-main {
background-color: $theme-container-main-background-color;
// 主体部分分为多页面控制器 和主体 // 主体部分分为多页面控制器 和主体
.d2-theme-container-main-header { .d2-theme-container-main-header {
// 多页面控制器 // 多页面控制器
......
@import './setting.scss';
@import '../theme.scss';
.theme-#{$theme-name} {
.d2-layout-header-aside-group {
background: #bc00e3;
background: linear-gradient(120deg, #bc00e3 0%, #4EFFFB 100%);
}
}
\ No newline at end of file \ No newline at end of file
// 主题名称
$theme-name: 'violet';
// 主题背景颜色
$theme-bg-color: #000;
// 主题背景图片遮罩
$theme-bg-mask: rgba(#000, 0);
// container组件
$theme-container-background-color: #FFF;
$theme-container-header-footer-background-color: #FFF;
$theme-container-border-inner: 1px solid $color-border-2;
$theme-container-border-outer: 1px solid #8C40E2;
$theme-multiple-page-control-color: #FFF;
$theme-multiple-page-control-color-active: $color-text-normal;
$theme-multiple-page-control-nav-prev-color: #FFF;
$theme-multiple-page-control-nav-next-color: #FFF;
$theme-multiple-page-control-border-color: #8C40E2;
$theme-multiple-page-control-border-color-active: #FFF;
$theme-multiple-page-control-background-color: rgba(#FFF, .3);
$theme-multiple-page-control-background-color-active: #FFF;
// 顶栏和侧边栏中展开的菜单 hover 状态下
$theme-menu-item-color-hover: #293849;
$theme-menu-item-background-color-hover: #ecf5ff;
// 顶栏上的文字颜色
$theme-header-item-color: #FFF;
$theme-header-item-background-color: transparent;
// 顶栏上的项目在 hover 时
$theme-header-item-color-hover: #FFF;
$theme-header-item-background-color-hover: linear-gradient(-180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.12) 100%);
// 顶栏上的项目在 focus 时
$theme-header-item-color-focus: #FFF;
$theme-header-item-background-color-focus: linear-gradient(-180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.12) 100%);
// 顶栏上的项目在 active 时
$theme-header-item-color-active: #FFF;
$theme-header-item-background-color-active: linear-gradient(-180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.12) 100%);
// 侧边栏上的文字颜色
$theme-aside-item-color: #FFF;
$theme-aside-item-background-color: transparent;
// 侧边栏上的项目在 hover 时
$theme-aside-item-color-hover: #FFF;
$theme-aside-item-background-color-hover: linear-gradient(90deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.00) 100%);
// 侧边栏上的项目在 focus 时
$theme-aside-item-color-focus: #FFF;
$theme-aside-item-background-color-focus: linear-gradient(90deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.00) 100%);
// 侧边栏上的项目在 active 时
$theme-aside-item-color-active: #FFF;
$theme-aside-item-background-color-active: linear-gradient(90deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.00) 100%);
// 侧边栏菜单为空的时候显示的元素
$theme-aside-menu-empty-icon-color: #FFF;
$theme-aside-menu-empty-text-color: #FFF;
$theme-aside-menu-empty-background-color: rgba(#000, .1);
$theme-aside-menu-empty-icon-color-hover: #FFF;
$theme-aside-menu-empty-text-color-hover: #FFF;
$theme-aside-menu-empty-background-color-hover: rgba(#000, .15);
\ No newline at end of file \ No newline at end of file
...@@ -25,13 +25,14 @@ ...@@ -25,13 +25,14 @@
v-if="activeName === scope.row.name" v-if="activeName === scope.row.name"
type="success" type="success"
icon="el-icon-check" icon="el-icon-check"
class="btn-active-success"
round> round>
已激活 已激活
</el-button> </el-button>
<el-button <el-button
v-else v-else
round round
@click="handleSelectTheme(scope.row.name)"> @click="handleSelectTheme(scope.row)">
使用 使用
</el-button> </el-button>
</template> </template>
...@@ -61,8 +62,11 @@ export default { ...@@ -61,8 +62,11 @@ export default {
...mapActions('d2admin/theme', [ ...mapActions('d2admin/theme', [
'set' 'set'
]), ]),
handleSelectTheme (name) { ...mapActions('d2admin/color',{ setColor:'set'}),
handleSelectTheme (row) {
const {name,color} = row
this.set(name) this.set(name)
this.setColor(color)
} }
} }
} }
...@@ -77,3 +81,10 @@ export default { ...@@ -77,3 +81,10 @@ export default {
border: 1px solid $color-border-1; border: 1px solid $color-border-1;
} }
</style> </style>
<style lang="scss">
.btn-active-success{
&:hover{
background-color: "#67C23A" !important;
}
}
</style>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
}" }"
flex-box="0" flex-box="0"
flex> flex>
<div class="logo-group" :style="{width: asideCollapse ? asideWidthCollapse : asideWidth}" flex-box="0"> <div class="logo-group d2-theme-header-logo" :style="{width: asideCollapse ? asideWidthCollapse : asideWidth}" flex-box="0">
<img v-if="asideCollapse" :src="`${$baseUrl}image/theme/${themeActiveSetting.name}/logo/icon-only.png`"> <img v-if="asideCollapse" :src="`${$baseUrl}image/theme/${themeActiveSetting.name}/logo/icon-only.png`">
<img v-else :src="`${$baseUrl}image/theme/${themeActiveSetting.name}/logo/all.png`"> <img v-else :src="`${$baseUrl}image/theme/${themeActiveSetting.name}/logo/all.png`">
</div> </div>
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
</div> </div>
<!-- 页面 --> <!-- 页面 -->
<div class="d2-theme-container-main-body" flex-box="1"> <div class="d2-theme-container-main-body" flex-box="1">
<transition :name="transitionActive ? 'fade-transverse' : ''" mode="in-out"> <transition :name="transitionActive ? 'fade-transverse' : ''" mode="out-in">
<keep-alive :include="keepAlive"> <keep-alive :include="keepAlive">
<router-view/> <router-view/>
</keep-alive> </keep-alive>
...@@ -125,6 +125,9 @@ export default { ...@@ -125,6 +125,9 @@ export default {
asideWidthCollapse: '65px' asideWidthCollapse: '65px'
} }
}, },
mounted () {
console.log(this.keepAlive);
},
computed: { computed: {
...mapState('d2admin', { ...mapState('d2admin', {
keepAlive: state => state.page.keepAlive, keepAlive: state => state.page.keepAlive,
......
...@@ -67,28 +67,31 @@ export const resources = { ...@@ -67,28 +67,31 @@ export const resources = {
auth: true, auth: true,
title: '页面', title: '页面',
id: '102', id: '102',
pid: '0' pid: '0',
cache:true
} }
}, },
'10201': { '10201': {
path: '/page1', path: '/page1',
name: '页面 1', name: 'page1',
meta: { meta: {
auth: true, auth: true,
title: '页面 1', title: '页面 1',
id: '10201', id: '10201',
pid: '102' pid: '102',
cache:true
}, },
component: _import('demo/page1') component: _import('demo/page1')
}, },
'10202': { '10202': {
path: '/page2', path: '/page2',
name: '页面 2', name: 'page2',
meta: { meta: {
auth: true, auth: true,
title: '页面 2', title: '页面 2',
id: '10202', id: '10202',
pid: '102' pid: '102',
cache:true
}, },
component: _import('demo/page2'), component: _import('demo/page2'),
auth: { auth: {
...@@ -141,7 +144,7 @@ export const resources = { ...@@ -141,7 +144,7 @@ export const resources = {
// }, // },
'103': { '103': {
path: 'subSysManagement', path: 'subSysManagement',
icon: 'folder-o', icon: 'th-list',
name: '子系统管理', name: '子系统管理',
meta: { meta: {
auth: true, auth: true,
...@@ -153,7 +156,7 @@ export const resources = { ...@@ -153,7 +156,7 @@ export const resources = {
}, },
'104': { '104': {
path: 'trafficManagement', path: 'trafficManagement',
icon: 'folder-o', icon: 'train',
name: '车辆管理', name: '车辆管理',
meta: { meta: {
auth: true, auth: true,
...@@ -165,7 +168,7 @@ export const resources = { ...@@ -165,7 +168,7 @@ export const resources = {
}, },
'105': { '105': {
path: 'bb', path: 'bb',
icon: 'folder-o', icon: 'file-text-o',
name: '单据管理', name: '单据管理',
meta: { meta: {
auth: true, auth: true,
...@@ -176,7 +179,7 @@ export const resources = { ...@@ -176,7 +179,7 @@ export const resources = {
}, },
'10501': { '10501': {
path: '/cc', path: '/cc',
icon: 'folder-o', icon: 'archive',
name: '物料订单管理', name: '物料订单管理',
meta: { meta: {
auth: true, auth: true,
...@@ -188,7 +191,7 @@ export const resources = { ...@@ -188,7 +191,7 @@ export const resources = {
}, },
'10502': { '10502': {
path: '/dd', path: '/dd',
icon: 'folder-o', icon: 'list-ol',
name: '作业单管理', name: '作业单管理',
meta: { meta: {
auth: true, auth: true,
...@@ -200,7 +203,7 @@ export const resources = { ...@@ -200,7 +203,7 @@ export const resources = {
}, },
'107': { '107': {
path: 'user', path: 'user',
icon: 'folder-o', icon: 'users',
name: '用户管理', name: '用户管理',
meta: { meta: {
auth: true, auth: true,
...@@ -212,6 +215,7 @@ export const resources = { ...@@ -212,6 +215,7 @@ export const resources = {
'10701': { '10701': {
path: '/userManage', path: '/userManage',
name: '用户管理', name: '用户管理',
icon:'user',
meta: { meta: {
auth: true, auth: true,
title: '用户管理', title: '用户管理',
...@@ -223,6 +227,7 @@ export const resources = { ...@@ -223,6 +227,7 @@ export const resources = {
'10702': { '10702': {
path: '/jurisdictionManage', path: '/jurisdictionManage',
name: '权限管理', name: '权限管理',
icon:'sitemap',
meta: { meta: {
auth: true, auth: true,
title: '权限管理', title: '权限管理',
...@@ -234,6 +239,7 @@ export const resources = { ...@@ -234,6 +239,7 @@ export const resources = {
'10703': { '10703': {
path: '/loginLogs', path: '/loginLogs',
name: '登录日志', name: '登录日志',
icon:'file-text',
meta: { meta: {
auth: true, auth: true,
title: '登录日志', title: '登录日志',
...@@ -244,7 +250,7 @@ export const resources = { ...@@ -244,7 +250,7 @@ export const resources = {
}, },
'108': { '108': {
path: 'reportingLogs', path: 'reportingLogs',
icon: 'folder-o', icon: 'upload',
name: '上报日志', name: '上报日志',
meta: { meta: {
auth: true, auth: true,
......
...@@ -32,32 +32,57 @@ export default { ...@@ -32,32 +32,57 @@ export default {
theme: { theme: {
list: [ list: [
{ {
title: 'd2admin 经典', title: 'classic',
name: 'd2', name: 'classic',
preview: 'image/theme/d2/preview@2x.png' color:'#E28B0C',
preview: 'image/theme/classic/preview@2x.png'
}, },
{ {
title: '紫罗兰', title: 'dark',
name: 'violet', name: 'dark',
preview: 'image/theme/violet/preview@2x.png' color:'#377DE7',
preview: 'image/theme/dark/preview@2x.png'
}, },
{ {
title: '简约线条', title: 'blue',
name: 'line', name: 'blue',
backgroundImage: 'image/theme/line/bg.jpg', color:'#E28B0C',
preview: 'image/theme/line/preview@2x.png' preview: 'image/theme/blue/preview@2x.png'
}, },
{ {
title: '流星', title: 'plane',
name: 'star', name: 'plane',
backgroundImage: 'image/theme/star/bg.jpg', color:'#377DE7',
preview: 'image/theme/star/preview@2x.png' backgroundImage: 'image/theme/plane/bg.jpg',
}, preview: 'image/theme/plane/preview@2x.png'
{
title: 'Tomorrow Night Blue (vsCode)',
name: 'tomorrow-night-blue',
preview: 'image/theme/tomorrow-night-blue/preview@2x.png'
} }
// {
// title: 'd2admin 经典',
// name: 'd2',
// preview: 'image/theme/d2/preview@2x.png'
// },
// {
// title: '紫罗兰',
// name: 'violet',
// preview: 'image/theme/violet/preview@2x.png'
// },
// {
// title: '简约线条',
// name: 'line',
// backgroundImage: 'image/theme/line/bg.jpg',
// preview: 'image/theme/line/preview@2x.png'
// },
// {
// title: '流星',
// name: 'star',
// backgroundImage: 'image/theme/star/bg.jpg',
// preview: 'image/theme/star/preview@2x.png'
// },
// {
// title: 'Tomorrow Night Blue (vsCode)',
// name: 'tomorrow-night-blue',
// preview: 'image/theme/tomorrow-night-blue/preview@2x.png'
// }
] ]
}, },
// 是否默认开启页面切换动画 // 是否默认开启页面切换动画
......
...@@ -108,6 +108,8 @@ export default { ...@@ -108,6 +108,8 @@ export default {
await dispatch('d2admin/menu/asideCollapseLoad', null, { root: true }) await dispatch('d2admin/menu/asideCollapseLoad', null, { root: true })
// DB -> store 持久化数据加载全局尺寸 // DB -> store 持久化数据加载全局尺寸
await dispatch('d2admin/size/load', null, { root: true }) await dispatch('d2admin/size/load', null, { root: true })
// // store 设置系统主色
// await dispatch('d2admin/color/set', process.env.VUE_APP_MAIN_COLOR)
// 后台接口 -> store // 后台接口 -> store
// await dispatch('d2admin/auth/init', null, { root: true }) // await dispatch('d2admin/auth/init', null, { root: true })
// end // end
......
...@@ -134,6 +134,7 @@ export default { ...@@ -134,6 +134,7 @@ export default {
state.opened.push(newTag) state.opened.push(newTag)
// 如果这个页面需要缓存 将其添加到缓存设置 // 如果这个页面需要缓存 将其添加到缓存设置
if (isKeepAlive(newTag)) { if (isKeepAlive(newTag)) {
console.log(newTag);
commit('keepAlivePush', tag.name) commit('keepAlivePush', tag.name)
} }
// 持久化 // 持久化
......
...@@ -53,10 +53,12 @@ export default { ...@@ -53,10 +53,12 @@ export default {
user: true user: true
}, { root: true }) }, { root: true })
// 检查这个主题在主题列表里是否存在 // 检查这个主题在主题列表里是否存在
if (state.list.find(e => e.name === activeName)) { let __theme= state.list.find(e => e.name === activeName)
if (__theme) {
state.activeName = activeName state.activeName = activeName
} else { } else {
state.activeName = state.list[0].name __theme = state.list[0]
state.activeName = __theme.name
// 持久化 // 持久化
await dispatch('d2admin/db/set', { await dispatch('d2admin/db/set', {
dbName: 'sys', dbName: 'sys',
...@@ -65,6 +67,8 @@ export default { ...@@ -65,6 +67,8 @@ export default {
user: true user: true
}, { root: true }) }, { root: true })
} }
// 设置ui 颜色
await dispatch('d2admin/color/set',__theme.color,{root:true})
// 将 vuex 中的主题应用到 dom // 将 vuex 中的主题应用到 dom
commit('dom') commit('dom')
// end // end
......
...@@ -46,12 +46,13 @@ ...@@ -46,12 +46,13 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-input v-model="testCache" type="text"></el-input>
</d2-container> </d2-container>
</template> </template>
<script> <script>
export default { export default {
name:'page2',
methods: { methods: {
handleClick (row) { handleClick (row) {
alert(JSON.stringify(row)) alert(JSON.stringify(row))
...@@ -59,6 +60,7 @@ export default { ...@@ -59,6 +60,7 @@ export default {
}, },
data () { data () {
return { return {
testCache:'',
btn: { btn: {
lable: '测试', lable: '测试',
action: 'test' action: 'test'
......
<template>
<el-dialog
center
title="用户注册"
:visible.sync="dialogVisible"
:before-close="handleClose"
width="720px"
custom-class="reg-dialog"
>
<el-form ref="regForm" :model="regForm" label-width="80px" class="reg-dialog-form">
<el-form-item label="用户名:" :rules="rules.loginName">
<el-input v-model="regForm.loginName" requred></el-input>
</el-form-item>
<el-form-item label="密码:">
<el-input type="password" v-model="regForm.password"></el-input>
</el-form-item>
<el-form-item label="确认密码:">
<el-input type="password" v-model="regForm.comfirm"></el-input>
</el-form-item>
<el-row>
<el-col :span="12">
<el-form-item label="姓名:">
<el-input v-model="regForm.userName"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="联系方式:">
<el-input v-model="regForm.mobile"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-form-item label="所属公司:">
<el-select v-model="regForm.companyCode" placeholder="请选择" class="sigle-select">
<el-option label="区域一" value="shanghai"></el-option>
<el-option label="区域二" value="beijing"></el-option>
</el-select>
</el-form-item>
<el-row>
<el-col :span="12">
<el-form-item label="部门:">
<el-select v-model="regForm.departCode" placeholder="请选择">
<el-option label="区域一" value="shanghai"></el-option>
<el-option label="区域二" value="beijing"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="职务:">
<el-select v-model="regForm.postCode" placeholder="请选择">
<el-option label="区域一" value="shanghai"></el-option>
<el-option label="区域二" value="beijing"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-form-item label="所属站点:">
<el-select v-model="regForm.stationCode" placeholder="请选择" class="sigle-select">
<el-option label="区域一" value="shanghai"></el-option>
<el-option label="区域二" value="beijing"></el-option>
</el-select>
</el-form-item>
<el-form-item class="form-action" flex="main:left cross:center">
<el-button size="default" @click="submit" type="primary" class="button-submit">提交</el-button>
</el-form-item>
</el-form>
</el-dialog>
</template>
<script>
export default {
name: "DialogReg",
props: {
isVisible: {
type: Boolean,
default: false
}
},
computed: {
dialogVisible() {
return this.isVisible;
}
},
data() {
return {
company: [],
regForm: {
loginName: "",
password: "",
comfirm: "",
userName: "",
mobile: "",
companyCode: [],
departName: "",
postCode: "",
stationCode: ""
},
rules: Object.freeze({
loginName: [{ required: true, message: "用户名不能为空" }],
password: [{ required: true, message: "密码不能为空" }],
userName: [{ required: true, message: "姓名不能为空" }],
companyCode: [{ required: true, message: "用户名不能为空" }],
loginName: [{ required: true, message: "用户名不能为空" }]
})
};
},
methods: {
handleClose(done) {
this.$event.$emit("e-reg-dialog", false);
}
}
};
</script>
<style lang="scss">
$login-dialog-lable-width: 70px;
$login-dialog-font: 13px;
.reg-dialog {
background: #fff;
box-shadow: 0 8px 20px 0 rgba(0, 0, 0, 0.06);
border-radius: 9px;
.reg-dialog-form {
width: 370px;
.el-form-item {
margin-bottom: 20px;
.el-input__inner {
height: 35px;
line-height: 35px;
border-radius: 2px;
}
}
.form-action {
.button-submit {
width: 145px;
height: 35px;
border-radius: 2px;
letter-spacing: 2px;
font-size: 14px;
line-height: 35px;
display: flex;
justify-content: center;
box-sizing: border-box;
span {
transform: translateY(-12px);
}
}
}
}
.el-dialog__title {
font-size: 20px;
color: #333;
}
.el-dialog__body {
display: flex;
justify-content: center;
.el-form-item__label {
width: $login-dialog-lable-width;
text-align: right;
font-size: $login-dialog-font;
}
.el-form-item__content {
margin-left: $login-dialog-lable-width;
font-size: $login-dialog-font;
}
}
.sigle-select {
width: 290px;
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template> <template>
<div class="page-login"> <div class="page-login">
<!-- <bg opacity="1" :oBg.sync="bing" :refresh="true" :withAnimation="true"></bg> --> <dialog-reg :isVisible="registerDialogVisible"/>
<div class="page-login--layer page-login--layer-area"> <div class="page-login--layer page-login--layer-area">
<ul class="circles"> <ul class="circles">
<li v-for="n in 10" :key="n"></li> <li v-for="n in 10" :key="n"></li>
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
</el-button> </el-button>
<el-button <el-button
size="default" size="default"
@click="submit" @click.prevent="openRegisterDialog"
type="primary" type="primary"
class="button-reg"> class="button-reg">
注册 注册
...@@ -73,7 +73,6 @@ ...@@ -73,7 +73,6 @@
</div> </div>
<div class="form-right"> <div class="form-right">
<div class="img-top"> <div class="img-top">
</div> </div>
<div class="img-bg"></div> <div class="img-bg"></div>
</div> </div>
...@@ -88,19 +87,6 @@ ...@@ -88,19 +87,6 @@
</div> </div>
</div> </div>
</div> </div>
<el-dialog
title="快速选择用户"
:visible.sync="dialogVisible"
width="400px">
<el-row :gutter="10" style="margin: -20px 0px -10px 0px;">
<el-col v-for="(user, index) in users" :key="index" :span="8">
<div class="page-login--quick-user" @click="handleUserBtnClick(user)">
<d2-icon name="user-circle-o"/>
<span>{{user.name}}</span>
</div>
</el-col>
</el-row>
</el-dialog>
</div> </div>
</template> </template>
...@@ -109,35 +95,13 @@ import dayjs from 'dayjs' ...@@ -109,35 +95,13 @@ import dayjs from 'dayjs'
import { mapActions } from 'vuex' import { mapActions } from 'vuex'
export default { export default {
components: { components: {
'Bg': () => import('./Bg') 'DialogReg':()=>import('./dialogReg')
}, },
data () { data () {
return { return {
bing: { registerDialogVisible:false,
copyright: '',
copyrightlink: ''
},
timeInterval: null, timeInterval: null,
time: dayjs().format('HH:mm:ss'), time: dayjs().format('HH:mm:ss'),
// 快速选择用户
dialogVisible: false,
users: [
{
name: 'Admin',
username: 'admin',
password: 'admin'
},
{
name: 'Editor',
username: 'editor',
password: 'editor'
},
{
name: 'User1',
username: 'user1',
password: 'user1'
}
],
// 表单 // 表单
formLogin: { formLogin: {
username: 'admin', username: 'admin',
...@@ -145,7 +109,7 @@ export default { ...@@ -145,7 +109,7 @@ export default {
code: 'v9am' code: 'v9am'
}, },
// 表单校验 // 表单校验
rules: { rules: Object.freeze({
username: [ username: [
{ {
required: true, required: true,
...@@ -159,21 +123,13 @@ export default { ...@@ -159,21 +123,13 @@ export default {
message: '请输入密码', message: '请输入密码',
trigger: 'blur' trigger: 'blur'
} }
],
code: [
{
required: true,
message: '请输入验证码',
trigger: 'blur'
}
] ]
} })
} }
}, },
mounted () { mounted () {
this.timeInterval = setInterval(() => { this.timeInterval = setInterval(() =>this.refreshTime(),1000)
this.refreshTime() this.$event.$on('e-reg-dialog',res => this.registerDialogVisible = res)
}, 1000)
}, },
beforeDestroy () { beforeDestroy () {
clearInterval(this.timeInterval) clearInterval(this.timeInterval)
...@@ -194,6 +150,9 @@ export default { ...@@ -194,6 +150,9 @@ export default {
this.formLogin.password = user.password this.formLogin.password = user.password
this.submit() this.submit()
}, },
openRegisterDialog(){
this.registerDialogVisible=!this.registerDialogVisible
},
/** /**
* @description 提交表单 * @description 提交表单
*/ */
...@@ -233,29 +192,28 @@ export default { ...@@ -233,29 +192,28 @@ export default {
height: 100%; height: 100%;
position: relative; position: relative;
// 层 // 层
.page-login--layer { &--layer {
@extend %full; @extend %full;
overflow: auto; overflow: auto;
} &-area {
.page-login--layer-area {
overflow: hidden; overflow: hidden;
} }
// 时间 // 时间
.page-login--layer-time { &-time {
font-size: 24em; font-size: 24em;
font-weight: bold; font-weight: bold;
color: rgba(0, 0, 0, 0.05); color: rgba(0, 0, 0, 0.05);
overflow: hidden; overflow: hidden;
} }
}
// 登陆页面控件的容器 // 登陆页面控件的容器
.page-login--content { &--content {
height: 100%; height: 100%;
min-height: 500px; min-height: 500px;
}
// header // header
.page-login--content-header { &-header {
padding: 1em 0; padding: 1em 0;
.page-login--content-header-motto { &-motto {
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
color: $color-text-normal; color: $color-text-normal;
...@@ -263,8 +221,52 @@ export default { ...@@ -263,8 +221,52 @@ export default {
font-size: 12px; font-size: 12px;
} }
} }
// footer
&-footer {
padding: 1em 0;
&-locales {
padding: 0px;
margin: 0px;
margin-bottom: 15px;
font-size: 12px;
line-height: 12px;
text-align: center;
color: $color-text-normal;
a {
color: $color-text-normal;
margin: 0 .5em;
&:hover {
color: $color-text-main;
}
}
}
&-copyright {
padding: 0px;
margin: 0px;
margin-bottom: 10px;
font-size: 16px;
line-height: 12px;
text-align: center;
color: $color-text-normal;
a {
color: $color-text-normal;
}
}
&-options {
padding: 0px;
margin: 0px;
font-size: 12px;
line-height: 12px;
text-align: center;
a {
color: $color-text-normal;
margin: 0 1em;
}
}
}
}
// 登录表单 // 登录表单
.page-login--form { &--form {
width: 720px; width: 720px;
height:400px; height:400px;
background: #FFFFFF; background: #FFFFFF;
...@@ -282,7 +284,7 @@ export default { ...@@ -282,7 +284,7 @@ export default {
margin-bottom: 62px; margin-bottom: 62px;
.form-title{ .form-title{
font-size: 20px; font-size: 20px;
color: #333333; color: #333;
line-height: 28px; line-height: 28px;
} }
.form-sub{ .form-sub{
...@@ -298,7 +300,7 @@ export default { ...@@ -298,7 +300,7 @@ export default {
height: 35px; height: 35px;
margin-bottom: 24px; margin-bottom: 24px;
background: #FFFFFF; background: #FFFFFF;
border: 1px solid #DDDDDD; border: 1px solid #DDD;
border-radius: 2px; border-radius: 2px;
} }
} }
...@@ -318,8 +320,8 @@ export default { ...@@ -318,8 +320,8 @@ export default {
} }
} }
.button-login{ .button-login{
background-color: #3D6FE4; // background-color: #3D6FE4 !important;
color: #FFF; // color: #FFF;
letter-spacing: 2px; letter-spacing: 2px;
float: left; float: left;
} }
...@@ -349,50 +351,14 @@ export default { ...@@ -349,50 +351,14 @@ export default {
// border:6px solid #F4F9FF; // border:6px solid #F4F9FF;
} }
} }
@keyframes login-form-animate {
0%{transform:scale(1)}
50%{transform:scale(1.1)}
100%{transform:scale(1)}
} }
// footer animation: login-form-animate .5s ease;
.page-login--content-footer {
padding: 1em 0;
.page-login--content-footer-locales {
padding: 0px;
margin: 0px;
margin-bottom: 15px;
font-size: 12px;
line-height: 12px;
text-align: center;
color: $color-text-normal;
a {
color: $color-text-normal;
margin: 0 .5em;
&:hover {
color: $color-text-main;
}
}
}
.page-login--content-footer-copyright {
padding: 0px;
margin: 0px;
margin-bottom: 10px;
font-size: 16px;
line-height: 12px;
text-align: center;
color: $color-text-normal;
a {
color: $color-text-normal;
}
}
.page-login--content-footer-options {
padding: 0px;
margin: 0px;
font-size: 12px;
line-height: 12px;
text-align: center;
a {
color: $color-text-normal;
margin: 0 1em;
}
}
} }
// 背景 // 背景
.circles { .circles {
position: absolute; position: absolute;
...@@ -415,7 +381,7 @@ export default { ...@@ -415,7 +381,7 @@ export default {
@keyframes animate { @keyframes animate {
0%{ 0%{
transform: translateY(0) rotate(0deg); transform: translateY(0) rotate(0deg);
opacity: 1; opacity: .1;
border-radius: 0; border-radius: 0;
} }
100%{ 100%{
......
...@@ -88,6 +88,9 @@ module.exports = { ...@@ -88,6 +88,9 @@ module.exports = {
.plugin('theme-color-replacer') .plugin('theme-color-replacer')
.use(ThemeColorReplacer, [{ .use(ThemeColorReplacer, [{
fileName: 'css/theme-colors.[contenthash:8].css', fileName: 'css/theme-colors.[contenthash:8].css',
resolveCss(resultCss) { // optional. Resolve result css code as you wish.
return resultCss.replace(/process.env.VUE_APP_ELEMENT_COLOR/g, process.env.VUE_APP_ELEMENT_COLOR)
},
matchColors: [ matchColors: [
...forElementUI.getElementUISeries(process.env.VUE_APP_ELEMENT_COLOR) // Element-ui主色系列 ...forElementUI.getElementUISeries(process.env.VUE_APP_ELEMENT_COLOR) // Element-ui主色系列
], ],
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!