Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
08445621
Commit
08445621
authored
Apr 09, 2025
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 优化菜单栏消息提示
parent
5787a50e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
2 deletions
+26
-2
portal-manager-ui/admin/src/views/home/home.vue
portal-manager-ui/admin/src/views/home/home.vue
+26
-2
No files found.
portal-manager-ui/admin/src/views/home/home.vue
View file @
08445621
...
@@ -74,8 +74,9 @@
...
@@ -74,8 +74,9 @@
</a-menu>
</a-menu>
</a-dropdown>
</a-dropdown>
</div>
</div>
<div
class=
"line"
></div>
<div
class=
"line"
v-if=
"hasMessagePage"
></div>
<a-popover
<a-popover
v-if=
"hasMessagePage"
arrowPointAtCenter
arrowPointAtCenter
trigger=
"click"
trigger=
"click"
:overlayStyle=
"
{ width: '300px' }"
:overlayStyle=
"
{ width: '300px' }"
...
@@ -123,7 +124,14 @@
...
@@ -123,7 +124,14 @@
></MessageInfo>
></MessageInfo>
</div>
</div>
<div
class=
"message-footer"
>
查看更多 >
</div>
<div
class=
"message-footer"
@
click=
"
$router.push('/home/thePlatformIsSet/messageManage/messageList')
"
>
查看更多 >
</div>
</div>
</div>
<a-badge
:count=
"10"
:overflow-count=
"999"
>
<a-badge
:count=
"10"
:overflow-count=
"999"
>
<i
class=
"iconfont icon-notice cursor-pointer"
></i>
<i
class=
"iconfont icon-notice cursor-pointer"
></i>
...
@@ -213,6 +221,22 @@ export default {
...
@@ -213,6 +221,22 @@ export default {
let
curParent
=
this
.
$route
.
matched
[
1
]?.
path
;
let
curParent
=
this
.
$route
.
matched
[
1
]?.
path
;
return
this
.
homePage
.
includes
(
cur
)
||
this
.
homePage
.
includes
(
curParent
);
return
this
.
homePage
.
includes
(
cur
)
||
this
.
homePage
.
includes
(
curParent
);
},
},
hasMessagePage
()
{
let
{
menuList
}
=
this
.
userData
;
let
platform
=
menuList
.
find
(
(
v
)
=>
v
.
name
===
"
平台设置
"
||
v
.
url
===
"
/home/thePlatformIsSet/setPlatformes
"
);
if
(
platform
&&
platform
.
childList
.
length
)
{
let
bol
=
platform
.
childList
.
some
(
(
v
)
=>
v
.
url
===
"
/home/thePlatformIsSet/messageManage
"
);
return
bol
;
}
else
{
return
false
;
}
},
},
},
created
()
{
created
()
{
this
.
setMoment
();
this
.
setMoment
();
...
...
Write
Preview
Markdown
is supported
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