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
15a0a24e
authored
Dec 15, 2021
by
liuwange1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
1d675900
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
90 additions
and
2 deletions
+90
-2
src/App.vue
+7
-1
src/views/nengyuan.vue
+83
-1
No files found.
src/App.vue
View file @
15a0a24e
...
...
@@ -372,9 +372,15 @@ export default {
},
// 获取报警信息列表接口
getAlarmList
(
menuCode
)
{
let
date
=
new
Date
().
getFullYear
()
+
"-"
+
(
new
Date
().
getMonth
()
+
1
)
+
"-"
+
new
Date
().
getDate
();
this
.
$axios
.
get
(
"/alarmMsg/msgListWithPage"
,
{
date
:
"2021-12-14"
,
date
:
date
,
pageNum
:
this
.
pageNum
,
pageSize
:
10
,
menuCode
:
menuCode
,
...
...
src/views/nengyuan.vue
View file @
15a0a24e
...
...
@@ -26,6 +26,40 @@
</div>
</div>
</div>
<div
class=
"bottom"
v-if=
"optionActiveIndex == 0"
>
<div
class=
"title-box"
>
<div
class=
"title"
>
设备列表
</div>
<div
class=
"style-line"
></div>
</div>
<div
class=
"option-box"
>
<div
class=
"btn2 ww"
:class=
"
{ active: equipmentRoomIndex == index }"
v-for="(item, index) in roomList"
@click="equipmentClickHandle(index)"
:key="index"
>
{{
item
.
equipmentRoomName
}}
</div>
</div>
</div>
<div
class=
"bottom"
v-if=
"optionActiveIndex == 1"
>
<div
class=
"title-box"
>
<div
class=
"title"
>
设备列表
</div>
<div
class=
"style-line"
></div>
</div>
<div
class=
"option-box"
>
<div
class=
"btn2 ww"
:class=
"
{ active: equipmentRoomIndex2 == index }"
v-for="(item, index) in roomList2"
@click="equipmentClickHandle2(index)"
:key="index"
>
{{
item
}}
</div>
</div>
</div>
</div>
</
template
>
...
...
@@ -37,11 +71,59 @@ export default {
data
()
{
return
{
options
:
[
"电力监控"
,
"BA冷机设备"
,
"远程抄表-水表"
,
"远程抄表-电表"
],
optionActiveIndex
:
0
,
optionActiveIndex
:
-
1
,
osc
:
12
,
roomList
:
[],
equipmentRoomIndex
:
-
1
,
roomList2
:
[
"N1"
,
"N2"
,
"N3"
,
"N5"
],
equipmentRoomIndex2
:
-
1
,
};
},
created
()
{
this
.
getSBF
();
},
methods
:
{
equipmentClickHandle
(
index
)
{
if
(
this
.
equipmentRoomIndex
==
index
)
{
this
.
equipmentRoomIndex
=
-
1
;
this
.
$axios
.
post
(
"/osc/sendString"
,
{
arg
:
"111"
,
name
:
"/SBFTC_CLOSE_OSC"
,
});
}
else
{
this
.
equipmentRoomIndex
=
index
;
this
.
$axios
.
post
(
"/osc/sendString"
,
{
arg
:
this
.
roomList
[
index
].
equipmentRoomUid
,
name
:
"/SBFTC_OSC"
,
});
}
},
equipmentClickHandle2
(
index
)
{
if
(
this
.
equipmentRoomIndex2
==
index
)
{
this
.
equipmentRoomIndex2
=
-
1
;
// this.$axios.post("/osc/sendString", {
// arg: "111",
// name: "/SBFTC_CLOSE_OSC",
// });
}
else
{
this
.
equipmentRoomIndex2
=
index
;
// this.$axios.post("/osc/sendString", {
// arg: this.roomList[index].equipmentRoomUid,
// name: "/SBFTC_OSC",
// });
}
},
getSBF
()
{
this
.
$axios
.
get
(
"/smartOperation/equipmentRoomMonitor"
).
then
((
e
)
=>
{
let
roomList
=
[];
e
.
data
.
map
((
item
)
=>
{
if
(
item
.
equipmentRoomName
.
indexOf
(
"变电站"
)
>
-
1
)
{
roomList
.
push
(
item
);
}
});
this
.
roomList
=
roomList
;
});
},
changeOption
(
index
)
{
this
.
optionActiveIndex
=
index
;
this
.
$axios
...
...
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