Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
bee32534
Commit
bee32534
authored
Sep 21, 2022
by
季圣华
Browse files
解决bug:页面搜索菜单,切换的时候标题不变
parent
cb8b955e
Changes
3
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/components/page/GlobalHeader.vue
View file @
bee32534
...
...
@@ -20,7 +20,7 @@
<span
v-if=
"device === 'desktop'"
></span>
<span
v-else
>
{{
systemTitle
}}
</span>
<user-menu
:theme=
"theme"
/>
<user-menu
:theme=
"theme"
@
searchGlobalHeader=
"searchGlobalHeader"
/>
</div>
<!-- 顶部导航栏模式 -->
<div
v-else
:class=
"['top-nav-header-index', theme]"
>
...
...
@@ -156,6 +156,9 @@
this
.
topMenuStyle
.
headerIndexLeft
=
{
'
width
'
:
`calc(100% -
${
rightWidth
}
)`
}
}
}
},
searchGlobalHeader
(
key
,
id
,
title
,
component
){
this
.
$emit
(
"
searchGlobalLayout
"
,
key
,
id
,
title
,
component
)
}
//update-begin--author:sunjianlei---date:20190508------for: 顶部导航栏过长时显示更多按钮-----
}
...
...
jshERP-web/src/components/page/GlobalLayout.vue
View file @
bee32534
...
...
@@ -61,6 +61,7 @@
:collapsed=
"collapsed"
:device=
"device"
@
toggle=
"toggle"
@
searchGlobalLayout=
"searchGlobalLayout"
/>
<!-- layout content -->
...
...
@@ -165,6 +166,9 @@
this
.
findMenuBykey
(
i
.
children
,
key
)
}
}
},
searchGlobalLayout
(
key
,
id
,
title
,
component
){
this
.
$emit
(
"
dynamicRouterShow
"
,
key
,
id
,
title
,
component
)
}
//update-end-author:taoyan date:20190430 for:动态路由title显示配置的菜单title而不是其对应路由的title
}
...
...
jshERP-web/src/components/tools/UserMenu.vue
View file @
bee32534
...
...
@@ -191,7 +191,7 @@
// update_begin author:sunjianlei date:20191230 for: 解决外部链接打开失败的问题
searchMethods
(
value
)
{
let
route
=
this
.
searchMenuOptions
.
filter
(
item
=>
item
.
id
===
value
)[
0
]
this
.
$
router
.
push
({
path
:
route
.
url
}
)
this
.
$
emit
(
"
searchGlobalHeader
"
,
route
.
url
,
route
.
id
,
route
.
text
,
route
.
component
)
this
.
searchMenuVisible
=
false
},
// update_end author:sunjianlei date:20191230 for: 解决外部链接打开失败的问题
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment