Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
huarun-binjiang-ipad
/
ipad
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8d379460
authored
Dec 14, 2021
by
liuwange1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
左侧菜单显示
parent
c1f14e78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
src/App.vue
+14
-0
No files found.
src/App.vue
View file @
8d379460
...
@@ -171,8 +171,22 @@ export default {
...
@@ -171,8 +171,22 @@ export default {
// this.getBuildListData();
// this.getBuildListData();
this
.
initSocket
();
this
.
initSocket
();
this
.
getAlarmList
(
""
);
this
.
getAlarmList
(
""
);
this
.
getAlarmMsgByMenu
();
},
},
methods
:
{
methods
:
{
// 左侧列表内的告警数量
getAlarmMsgByMenu
()
{
this
.
$axios
.
get
(
"/alarmMsg/msgCountByMenu"
).
then
((
e
)
=>
{
console
.
log
(
e
);
e
.
data
.
forEach
((
item
)
=>
{
this
.
navList
.
forEach
((
item2
)
=>
{
if
(
item2
.
menuCode
==
item
.
menuCode
)
{
item2
.
number
=
item
.
msgNum
;
}
});
});
});
},
getBuildListData
()
{
getBuildListData
()
{
this
.
$axios
.
get
(
"/building/getBuildingList"
).
then
((
e
)
=>
{
this
.
$axios
.
get
(
"/building/getBuildingList"
).
then
((
e
)
=>
{
this
.
$store
.
commit
(
"setBuildList"
,
e
.
data
);
this
.
$store
.
commit
(
"setBuildList"
,
e
.
data
);
...
...
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