Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a0d96142
authored
Dec 01, 2023
by
李敏
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.22.0' into 'master'
V3.22.0 See merge request
!9
2 parents
ee1e35e9
f03e6265
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
77 additions
and
43 deletions
src/assets/style/animate.css
src/config/index.js
src/layout/components/LeftSide/LeftSideMenuLv1.vue
src/layout/components/LeftSide/LeftSideMenuLv2.vue
src/layout/components/LeftSide/LeftSideMenuLv2Item.vue
src/layout/components/LeftSide/LeftSideMenuLv3.vue
src/layout/components/Logo.vue
src/layout/components/NavMenu.vue
src/views/Login.vue
src/assets/style/animate.css
View file @
a0d9614
...
...
@@ -273,6 +273,24 @@
animation-name
:
fadeInRight
;
}
@keyframes
fadeInRightShort
{
from
{
opacity
:
0
;
-webkit-transform
:
translate3d
(
20%
,
0
,
0
);
transform
:
translate3d
(
20%
,
0
,
0
);
}
to
{
opacity
:
1
;
-webkit-transform
:
translate3d
(
0
,
0
,
0
);
transform
:
translate3d
(
0
,
0
,
0
);
}
}
.animate__fadeInRightShort
{
-webkit-animation-name
:
fadeInRightShort
;
animation-name
:
fadeInRightShort
;
}
@keyframes
pulse
{
from
{
-webkit-transform
:
scale3d
(
1
,
1
,
1
);
...
...
src/config/index.js
View file @
a0d9614
...
...
@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: limin
* @LastEditTime: 2023-11-10 13:4
2:02
* @LastEditTime: 2023-11-10 13:4
3:30
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
let
cfg
=
require
(
'./conf.js'
)
...
...
@@ -25,7 +25,7 @@ export const fetchConfig = (isEnv = sw) => {
if
((
_config
&&
!
_constRoutes
.
includes
(
_pathname
))
||
_pathname
===
_login_path
||
(
_pathname
===
'/'
&&
_login_path
===
'/login'
))
{
return
Promise
.
resolve
(
_config
)
}
return
new
Http
({
headers
:
{
refererurl
:
_pathname
},
request
:
{
timeout
:
30000
}
}).
get
(
'https://
oss-config.test.glsx.com.cn/mock/6136bea6ceeb5a5c2bec6950/base/config
'
)
return
new
Http
({
headers
:
{
refererurl
:
_pathname
},
request
:
{
timeout
:
30000
}
}).
get
(
'https://
config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=base
'
)
}
export
const
config
=
{
install
(
vue
,
cfg
)
{
...
...
src/layout/components/LeftSide/LeftSideMenuLv1.vue
View file @
a0d9614
...
...
@@ -78,13 +78,16 @@ $width: 160px;
.el-popover.el-submenu-popper-base-left-side-menu
{
padding
:
0
!important
;
margin
:
0
!important
;
left
:
calc
(
#{$
menu_width_collapse
}
)
!
important
;
left
:
$
menu_width_collapse
!important
;
border-radius
:
8px
;
box-shadow
:
0
6px
20px
0
#7a7a7a33
;
border
:
none
!important
;
>
.com-left-side-menu-lv2
{
border-radius
:
8px
;
box-shadow
:
0
6px
20px
0
#7a7a7a33
;
}
animation
:
pulse
0
.06s
steps
(
10
)
forwards
;
overflow
:
hidden
;
//
>
.com-left-side-menu-lv2
{
//
border-radius
:
8px
;
//
box-shadow
:
0
6px
20px
0
#7a7a7a33
;
//
}
animation
:
fadeInRightShort
0
.05s
ease-in-out
forwards
;
}
//
}
</
style
>
...
...
src/layout/components/LeftSide/LeftSideMenuLv2.vue
View file @
a0d9614
<
template
>
<div
class=
"com-left-side-menu-lv2"
>
<GLScroll
class=
"com-left-side-menu-lv2-scroll-y"
>
<el-menu
class=
"flex-1 none-border"
background-color=
"#fff"
active-text-color=
"#409EFF"
text-color=
"#999"
:default-openeds=
"cur.openeds"
:default-active=
"cur.active"
:collapse-transition=
"false"
ref=
"menus"
@
close=
"handleClose"
>
<el-menu
class=
"flex-1 none-border"
background-color=
"#fff"
active-text-color=
"#409EFF"
text-color=
"#999"
:default-openeds=
"cur.openeds"
:default-active=
"cur.active"
:collapse-transition=
"false"
ref=
"menus"
>
<LeftSideMenuLv2Item></LeftSideMenuLv2Item>
</el-menu>
</GLScroll>
...
...
@@ -55,9 +55,6 @@ export default {
})
if
(
this
.
cur
.
openeds
.
toString
()
==
_ids
.
toString
())
return
this
.
cur
.
openeds
=
_ids
},
handleClose
(
key
,
keyPath
)
{
this
.
$refs
.
menus
.
open
(
keyPath
)
}
}
}
...
...
src/layout/components/LeftSide/LeftSideMenuLv2Item.vue
View file @
a0d9614
...
...
@@ -9,7 +9,7 @@
</div>
<!-- 有三级菜单的二级菜单 -->
<el-submenu
v-else
:index=
"item.id"
>
<span
slot=
"title"
class=
"weaken"
>
{{
item
.
title
}}
</span>
<span
slot=
"title"
>
{{
item
.
title
}}
</span>
<!-- 渲染三级菜单 -->
<LeftSideMenuLv3
:menuItems=
"item.children"
></LeftSideMenuLv3>
</el-submenu>
...
...
@@ -71,13 +71,11 @@ export default {
},
handleMenuChanged
({
menus
=
[],
isReload
=
false
})
{
// 如果是菜单收起状态 并且不是 popover 或者待更新的数据与当前数据想同 则不更新视图
// if ((this.menu.isCollapse && !this.isPop) || this.menus[0]?.id == menus[0]?.id) return
if
(
this
.
menus
[
0
]?.
id
==
menus
[
0
]?.
id
)
return
if
(
isReload
)
{
this
.
reload
()
return
}
// console.log('待修改:' + menus[0]?.title, '当前,' + this.menus[0]?.title)
this
.
menus
=
menus
this
.
bus
.
$emit
(
'menuOpenedsChanged'
,
{
menus
})
},
...
...
@@ -86,7 +84,6 @@ export default {
const
{
lv1
}
=
this
.
current
const
[
pid
]
=
this
.
menus
[
0
]?.
id
.
split
(
'-'
)
||
[]
if
(
lv1
==
pid
)
return
console
.
log
(
'reload'
)
const
menus
=
this
.
app
.
menuList
.
find
(({
id
})
=>
id
==
lv1
).
children
.
noHidden
()
this
.
handleMenuChanged
({
menus
})
}
...
...
@@ -97,7 +94,7 @@ export default {
<
style
lang=
"scss"
scoped
>
@import
'~@/assets/style/collapse.scss'
;
@import
'~@/assets/style/mixins.scss'
;
$
active-background-color
:
rgba
(
88
,
80
,
255
,
0
.2
)
!
important
;
//
$
active-background-color
:
rgba
(
88
,
80
,
255
,
0
.2
)
!
important
;
.com-left-side-menu-lv2-item
{
height
:
100%
;
padding
:
8px
;
...
...
@@ -107,31 +104,43 @@ $active-background-color: rgba(88, 80, 255, 0.2) !important;
.el-menu
{
width
:
144px
!important
;
}
&
.is-opened
{
.el-icon-arrow-down
{
transform
:
rotate
(
90deg
);
}
}
//
padding
:
0
8px
;
&
__title
{
height
:
36px
;
line-height
:
36px
;
background-color
:
transparent
!important
;
padding
:
0
8
px
!important
;
padding
:
0
0
0
24
px
!important
;
margin-bottom
:
1px
;
span
{
-webkit-text-stroke
:
0.2px
#333
;
//
text-shadow
:
0
0
1px
#666
;
//
filter
:
drop-shadow
(
0
0
0.2px
#ccc
);
@include
menu-title-span-haspage;
}
.el-submenu__icon-arrow
{
//
right
:
0
;
visibility
:
hidden
;
}
&
:not
(
.hasNoChild
)
{
//
has
children
title
cursor
:
default
!important
;
border-bottom
:
1px
solid
#eee
;
span
{
font-size
:
13px
!important
;
color
:
#999
!important
;
font-weight
:
400
!important
;
cursor
:
default
!important
;
.el-icon-arrow-down
{
left
:
2px
;
right
:
unset
;
margin-top
:
-6px
;
&::before
{
content
:
'\e791'
;
}
}
//
&
:not
(
.hasNoChild
)
{
//
//
has
children
title
//
cursor
:
default
!important
;
//
border-bottom
:
1px
solid
#eee
;
//
span
{
//
font-size
:
13px
!important
;
//
color
:
#999
!important
;
//
font-weight
:
400
!important
;
//
cursor
:
default
!important
;
//
}
//
}
&
.hasNoChild
:hover
{
@include
menu-title-hover;
}
...
...
@@ -148,6 +157,7 @@ $active-background-color: rgba(88, 80, 255, 0.2) !important;
&
.active
{
@include
menu-highlight;
span
{
-webkit-text-stroke-color
:
$
main-color
;
color
:
$
main-color
!important
;
}
}
...
...
src/layout/components/LeftSide/LeftSideMenuLv3.vue
View file @
a0d9614
...
...
@@ -53,9 +53,10 @@ $menu-item-width: 144px !important;
align-self
:
center
;
border-radius
:
4px
;
//
padding-left
:
0
!important
;
padding
:
0
8
px
!important
;
padding
:
0
0
0
32
px
!important
;
span
{
@include
menu-title-span-haspage;
font-size
:
14px
;
}
&
.is-active
{
@include
menu-highlight;
...
...
@@ -63,7 +64,7 @@ $menu-item-width: 144px !important;
color
:
$
main-color
!important
;
}
}
&
:
hover:not
(
.is-active
)
{
&
:
not
(
.is-active
)
:hover
{
@include
menu-title-hover;
}
}
...
...
src/layout/components/Logo.vue
View file @
a0d9614
...
...
@@ -2,14 +2,14 @@
* @Author: lizhijie429
* @Date: 2021-08-19 11:16:08
* @LastEditors: limin
* @LastEditTime: 2023-
09-27 18:46:2
3
* @LastEditTime: 2023-
11-17 17:41:5
3
* @Description:
-->
<
template
>
<div
class=
"logo"
:class=
"
{ collapse: menu.isCollapse }">
<!-- 防止切换图片闪烁,折叠和展开分别用标签展示 -->
<el-image
:src=
"src_logo_menu"
></el-image>
<el-image
:src=
"src_logo_collapse"
></el-image>
<el-image
:src=
"src_logo_menu"
style=
"width: 176px"
></el-image>
<el-image
:src=
"src_logo_collapse"
style=
"width: 48px"
></el-image>
<div
class=
"folder"
@
click=
"toggleFolder()"
>
<i
class=
"i i-left"
></i>
</div>
...
...
@@ -71,38 +71,42 @@ export default {
}
}
.el-image
{
padding
:
12px
24px
!important
;
left
:
0
;
top
:
0
;
position
:
absolute
;
top
:
50%
;
left
:
50%
;
&:nth-child(1)
{
opacity
:
1
;
transform
:
translate
(
-50%
,
-50%
);
}
&
:nth-child
(
2
)
{
opacity
:
0
;
transform
:
translate
(
112px
,
-50%
);
}
transition
:
transform
0
.18s
ease
,
opacity
0
.1s
ease
;
}
&
.collapse
{
i
{
transform
:
rotate
(
180deg
);
}
.el-image
{
padding
:
12px
8px
!important
;
&:nth-child(1)
{
opacity
:
0
;
transform
:
translate
(
-208px
,
-50%
);
}
&
:nth-child
(
2
)
{
opacity
:
1
;
transform
:
translate
(
-50%
,
-50%
);
}
}
}
&
::after
{
position
:
absolute
;
content
:
''
;
width
:
1
00%
;
width
:
1
60px
;
border-bottom
:
1px
solid
#f5f7fa
;
height
:
0
;
top
:
70px
;
right
:
0
;
z-index
:
2
;
}
}
...
...
src/layout/components/NavMenu.vue
View file @
a0d9614
...
...
@@ -261,11 +261,12 @@ $tip-color: #666 !important;
margin
:
0
4px
;
}
&
-avatar
{
display
:
inline-block
;
margin-left
:
2px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
max-width
:
1
1
em
;
max-width
:
1
2
em
;
}
}
.nav-left
{
...
...
src/views/Login.vue
View file @
a0d9614
...
...
@@ -214,7 +214,7 @@ export default {
const { defaultPath } = await this.login(menus)
Object.assign(sessionData, { defaultPath, loginpath: location.pathname, track })
this.setSession(sessionData)
t
rack && t
his.setTracker(sessionData)
this.setTracker(sessionData)
this.storeConfig()
const path = helper.locationPath()
const redirect = path?.get('redirect')
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment