Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcsjsb-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
4279e5fc
authored
2023-05-11 16:38:52 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:数据上报
1 parent
8a640b55
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
59 deletions
src/layout1/components/Sidebar/index.vue
src/utils/theme.js
src/views/loginsb/index.vue
src/layout1/components/Sidebar/index.vue
View file @
4279e5f
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-0
3-27 14:09:57
* @LastEditTime: 2023-0
5-11 16:38:29
-->
<
template
>
<div>
...
...
@@ -9,7 +9,7 @@
<el-menu
router
:default-active=
"activeMenu"
:background-color=
"variables.menuBg"
:text-color=
"variables.menuText"
:unique-opened=
"true"
:active-text-color=
"variables.menuActiveText"
:collapse-transition=
"false"
mode=
"vertical"
>
<!-- 权限菜单 -->
<sidebar-item
v-for=
"route in permission_routes.slice(
5
)"
:key=
"route.path"
:item=
"route"
<sidebar-item
v-for=
"route in permission_routes.slice(
4
)"
:key=
"route.path"
:item=
"route"
:base-path=
"route.path"
/>
<!-- 菜单全部展示 -->
<!--
<sidebar-item
v-for=
"route in asyncRoutes"
:key=
"route.path"
:item=
"route"
:base-path=
"route.path"
/>
-->
...
...
src/utils/theme.js
View file @
4279e5f
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-05-11 16:
25:43
* @LastEditTime: 2023-05-11 16:
33:18
*/
import
Vue
from
'vue'
export
default
function
getTheme
(
theme
=
Vue
.
prototype
.
BASE_API
.
THEME
)
{
const
resultMap
=
{
'sb'
:
function
()
{
return
import
(
"@/styles/sbPublic.scss"
);
},
'default'
:
function
()
{
throw
new
Error
(
`Unsupported theme:
${
theme
}
`
);
},
};
const
result
=
resultMap
[
theme
]();
if
(
result
instanceof
Promise
)
{
return
result
;
}
else
{
return
resultMap
.
default
();
}
export
default
function
getTheme
()
{
import
(
"@/styles/sbPublic.scss"
);
}
\ No newline at end of file
...
...
src/views/loginsb/index.vue
View file @
4279e5f
...
...
@@ -37,9 +37,9 @@
</
template
>
<
script
>
import
{
getMenuInfo
}
from
"@/api/user"
;
import
{
loginIn
}
from
"@/api/login.js"
;
export
default
{
import
{
getMenuInfo
}
from
"@/api/user"
;
import
{
loginIn
}
from
"@/api/login.js"
;
export
default
{
name
:
"sbLogin"
,
data
()
{
return
{
...
...
@@ -112,6 +112,8 @@ export default {
localStorage
.
setItem
(
"token"
,
`Bearer
${
res
.
content
}
`
);
const
{
result
:
getMenuData
}
=
(
await
getMenuInfo
(
code
))
||
[];
let
path1
=
JSON
.
parse
(
getMenuData
[
0
].
metadata
)?.
path
+
'/'
+
JSON
.
parse
(
getMenuData
[
0
].
children
[
0
].
metadata
)?.
path
console
.
log
(
getMenuData
,
path1
,
'path1path1path1path1path1'
);
//登录成功后需判断有无重定向,没有重定向则跳转首页
const
accessRoutes
=
await
this
.
$store
.
dispatch
(
"permission/generateRoutes"
,
...
...
@@ -129,12 +131,12 @@ export default {
})
}
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.username
,
.password
,
.yz
{
.username
,
.password
,
.yz
{
position
:
relative
;
&:before
{
...
...
@@ -152,59 +154,59 @@ export default {
color
:
#000
!important
;
text-indent
:
24px
;
}
}
}
.flex-container
{
.flex-container
{
position
:
relative
;
display
:
-webkit-flex
;
display
:
flex
;
}
}
.flex-input
{
.flex-input
{
width
:
100%
;
}
}
.flex-line
{
.flex-line
{
position
:
absolute
;
width
:
1px
;
height
:
64%
;
margin
:
5px
;
right
:
36%
;
background-color
:
#CCCCCC
;
}
background-color
:
#cccccc
;
}
.flex-img
{
.flex-img
{
position
:
absolute
;
margin
:
2px
;
right
:
16%
;
}
}
.flex-renovate
{
.flex-renovate
{
position
:
absolute
;
margin
:
1px
;
right
:
3%
;
}
}
#renovate
{
color
:
#3F8FEA
;
#renovate
{
color
:
#3f8fea
;
font-size
:
16px
;
font-weight
:
700
;
cursor
:
pointer
;
}
}
.username
::before
{
.username
::before
{
background-image
:
url(../../image/userlogo.png)
;
}
}
.password
::before
{
.password
::before
{
background-image
:
url(../../image/passlogo.png)
;
}
}
.yz
::before
{
.yz
::before
{
background-image
:
url(../../image/yzlogo.png)
;
}
}
.bg
{
.bg
{
width
:
100%
;
height
:
100%
;
min-width
:
1440px
;
...
...
@@ -213,9 +215,9 @@ export default {
background-size
:
100%
100%
;
overflow
:
hidden
;
position
:
relative
;
}
}
.title
{
.title
{
width
:
24%
;
height
:
6%
;
top
:
20%
;
...
...
@@ -241,9 +243,9 @@ export default {
color
:
#ffffff
;
text-shadow
:
0px
4px
4px
#002c95
;
}
}
}
.login-inner-bg
{
.login-inner-bg
{
background
:
white
;
width
:
24.6%
;
min-width
:
360px
;
...
...
@@ -253,9 +255,9 @@ export default {
background-size
:
100%
100%
;
box-sizing
:
border-box
;
padding
:
56px
;
}
}
.login
{
.login
{
.user_style
{
h3
{
font-weight
:
normal
;
...
...
@@ -284,9 +286,9 @@ export default {
cursor
:
pointer
;
background-color
:
#2d8cf0
;
}
}
}
.login
#loginform
{
.login
#loginform
{
.el-form-item
{
margin-bottom
:
24px
!important
;
}
...
...
@@ -310,10 +312,10 @@ export default {
.el-checkbox__label
{
color
:
#fff
;
}
}
}
.inputUser
.ivu-input
{
.inputUser
.ivu-input
{
padding
:
6px
24px
!important
;
border
:
1px
solid
#9f9f9f
!important
;
}
}
</
style
>
...
...
Please
register
or
sign in
to post a comment