Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-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
e639032f
authored
2023-05-25 14:10:19 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:登录
1 parent
0d04d432
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
41 deletions
src/layout/components/Navbar.vue
src/utils/request.js
src/views/qxjr/jsbwcx/index.vue
src/layout/components/Navbar.vue
View file @
e639032
...
...
@@ -19,11 +19,11 @@
</div>
</
template
>
<
script
>
import
sidebarLeft
from
"./Sidebar/sidebarLeft"
;
import
sidebarRight
from
"./Sidebar/sidebarRight"
;
import
{
logout
}
from
"@/api/login.js"
;
import
{
mapGetters
}
from
"vuex"
;
export
default
{
import
sidebarLeft
from
"./Sidebar/sidebarLeft"
;
import
sidebarRight
from
"./Sidebar/sidebarRight"
;
import
{
logout
}
from
"@/api/login.js"
;
import
{
mapGetters
}
from
"vuex"
;
export
default
{
components
:
{
sidebarLeft
,
sidebarRight
,
...
...
@@ -42,91 +42,91 @@ export default {
this
.
$store
.
dispatch
(
"user/resetState"
);
this
.
$store
.
dispatch
(
"permission/resetRoutes"
);
this
.
$router
.
replace
({
path
:
"/jg
"
path
:
"/login
"
})
})
.
catch
((
error
)
=>
{
})
}
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.menubg
{
.menubg
{
height
:
34px
;
width
:
130px
!important
;
text-align
:
center
;
color
:
#ffffff
;
background
:
url("~@/image/navbar.png")
no-repeat
;
background-size
:
100%
100%
;
}
}
/
deep
/
.el-menu-item
{
/
deep
/
.el-menu-item
{
@extend
.menubg;
}
}
/
deep
/
.el-submenu
{
/
deep
/
.el-submenu
{
@extend
.menubg;
}
}
/
deep
/
.el-submenu__title
{
/
deep
/
.el-submenu__title
{
height
:
34px
;
color
:
#ffffff
;
}
}
/
deep
/
.el-submenu__title
span
{
/
deep
/
.el-submenu__title
span
{
font-size
:
14px
;
}
}
.sidebarLeft
{
.sidebarLeft
{
position
:
relative
;
top
:
13px
;
width
:
30%
;
}
}
/
deep
/
.el-menu
{
/
deep
/
.el-menu
{
display
:
flex
;
justify-content
:
space-between
;
width
:
100%
;
background
:
transparent
!important
;
}
}
/
deep
/
.el-menu-item
{
/
deep
/
.el-menu-item
{
flex
:
1
;
width
:
100%
;
}
}
.sidebarRight
{
.sidebarRight
{
position
:
relative
;
top
:
13px
;
width
:
30%
;
}
}
//
导航选中背景色
.xuanzhong
{
//
导航选中背景色
.xuanzhong
{
background
:
url("~@/image/selNavbar.png")
no-repeat
;
background-size
:
100%
100%
;
color
:
#ffffff
!important
;
font-weight
:
700
;
}
}
/
deep
/
.el-menu-item
:hover
{
/
deep
/
.el-menu-item
:hover
{
@extend
.xuanzhong;
}
}
/
deep
/
.el-submenu__title
:hover
{
/
deep
/
.el-submenu__title
:hover
{
@extend
.xuanzhong;
}
}
/
deep
/
.el-menu--horizontal
.el-menu-item
:not
(
.is-disabled
)
:focus
{
/
deep
/
.el-menu--horizontal
.el-menu-item
:not
(
.is-disabled
)
:focus
{
@extend
.xuanzhong;
}
}
/
deep
/
.is-active
{
/
deep
/
.is-active
{
@extend
.xuanzhong;
}
}
.navbar
{
.navbar
{
height
:
$
headerHeight
;
overflow
:
hidden
;
position
:
relative
;
...
...
@@ -245,5 +245,5 @@ export default {
}
}
}
}
}
</
style
>
...
...
src/utils/request.js
View file @
e639032
/*
* @Description: 此文件主要创建 axios 实例,然后添加请求拦截器和响应拦截器
* @Autor: renchao
* @LastEditTime: 2023-0
4-27 17:09:51
* @LastEditTime: 2023-0
5-25 14:07:28
*/
import
Vue
from
'vue'
import
axios
from
"axios"
;
...
...
@@ -72,7 +72,7 @@ function handleErrorData (status) {
let
code
=
Vue
.
prototype
.
BASE_API
.
CODE
if
(
code
==
'BDCSBPT'
)
{
router
.
replace
({
path
:
"/
sb
"
,
path
:
"/
login
"
,
query
:
{
redirect
:
router
.
history
.
current
.
fullPath
,
},
...
...
src/views/qxjr/jsbwcx/index.vue
View file @
e639032
...
...
@@ -234,7 +234,6 @@
},
methods
:
{
uploadRecord
(
file
)
{
console
.
log
(
file
,
'eee11111111111111'
);
this
.
requested
=
true
this
.
files
=
file
;
const
extension
=
file
.
name
.
split
(
'.'
)[
1
]
===
'xml'
...
...
Please
register
or
sign in
to post a comment