Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety-progress
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
gassafety-progress
Commits
9e4497a4
Commit
9e4497a4
authored
Mar 23, 2022
by
zhangjianqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消息通知
parent
fc73a1cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
15 deletions
+12
-15
Navbar.vue
gassafetyprogress-web/src/layout/components/Navbar.vue
+12
-15
No files found.
gassafetyprogress-web/src/layout/components/Navbar.vue
View file @
9e4497a4
...
...
@@ -7,12 +7,12 @@
<div
class=
"right-menu"
>
<template
v-if=
"device!=='mobile'"
>
<
div
class=
"right-menu-item"
v-if=
"total>0"
@
click=
"$router.push('/emergency/emergency')"
>
<
img
src=
"@/assets/xiaoxi.png"
:hidden=
"xiaohidden"
style=
"height: 40px;width: 40px;margin-top: 5px;cursor: pointer;"
>
<
/div
>
<
!--
<div
class=
"right-menu-item"
v-if=
"total>0"
@
click=
"$router.push('/emergency/emergency')"
>
--
>
<
!--
<img
src=
"@/assets/xiaoxi.png"
:hidden=
"xiaohidden"
style=
"height: 40px;width: 40px;margin-top: 5px;cursor: pointer;"
>
--
>
<
!--
</div>
--
>
<!--
<search
id=
"header-search"
class=
"right-menu-item"
/>
-->
<el-badge
:value=
"
20"
:max=
"99"
class=
"item"
>
<i
class=
"el-icon-chat-dot-round"
style=
"width: 10px;height: 10px;"
></i>
<el-badge
:value=
"
total"
:max=
"99"
class=
"item"
>
<i
class=
"el-icon-chat-dot-round"
style=
"width: 10px;height: 10px;"
@
click=
"$router.push('/emergency/emergency')"
></i>
</el-badge>
...
...
@@ -67,7 +67,7 @@ export default {
data
()
{
return
{
userType
:
-
2
,
total
:
0
,
total
:
null
,
xiaohidden
:
false
,
}
},
...
...
@@ -113,17 +113,14 @@ mounted(){
}
listReceive
(
params
).
then
(
response
=>
{
//console.log("total==",response.total);
this
.
total
=
response
.
total
;
if
(
response
.
total
!=
0
){
this
.
total
=
response
.
total
;
}
else
{
this
.
total
=
""
;
}
});
},
5000
);
setInterval
(()
=>
{
if
(
this
.
xiaohidden
){
this
.
xiaohidden
=
false
}
else
{
this
.
xiaohidden
=
true
}
},
500
);
},
methods
:
{
toggleSideBar
()
{
...
...
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