Commit 15a0a24e by liuwange1

11

parent 1d675900
...@@ -372,9 +372,15 @@ export default { ...@@ -372,9 +372,15 @@ export default {
}, },
// 获取报警信息列表接口 // 获取报警信息列表接口
getAlarmList(menuCode) { getAlarmList(menuCode) {
let date =
new Date().getFullYear() +
"-" +
(new Date().getMonth() + 1) +
"-" +
new Date().getDate();
this.$axios this.$axios
.get("/alarmMsg/msgListWithPage", { .get("/alarmMsg/msgListWithPage", {
date: "2021-12-14", date: date,
pageNum: this.pageNum, pageNum: this.pageNum,
pageSize: 10, pageSize: 10,
menuCode: menuCode, menuCode: menuCode,
......
...@@ -26,6 +26,40 @@ ...@@ -26,6 +26,40 @@
</div> </div>
</div> </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> </div>
</template> </template>
...@@ -37,11 +71,59 @@ export default { ...@@ -37,11 +71,59 @@ export default {
data() { data() {
return { return {
options: ["电力监控", "BA冷机设备", "远程抄表-水表", "远程抄表-电表"], options: ["电力监控", "BA冷机设备", "远程抄表-水表", "远程抄表-电表"],
optionActiveIndex: 0, optionActiveIndex: -1,
osc: 12, osc: 12,
roomList: [],
equipmentRoomIndex: -1,
roomList2: ["N1", "N2", "N3", "N5"],
equipmentRoomIndex2: -1,
}; };
}, },
created() {
this.getSBF();
},
methods: { 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) { changeOption(index) {
this.optionActiveIndex = index; this.optionActiveIndex = index;
this.$axios this.$axios
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment