20230516
This commit is contained in:
parent
8da0a7aeb4
commit
c69ebdc05b
15
src/App.vue
15
src/App.vue
|
@ -142,10 +142,6 @@ export default {
|
|||
// alert("goPage:"+b);
|
||||
console.log("b")
|
||||
};
|
||||
// window['goIndex'] = (a) => {
|
||||
// console.log(a)
|
||||
// };
|
||||
// window.goPage = this.goPage();
|
||||
this.menuChange(0, this.menuBtn[0].name);
|
||||
let week = new Date(this.$moment().format("YYYY-MM-DD")).getDay();
|
||||
this.week = this.weekList[week];
|
||||
|
@ -163,7 +159,7 @@ export default {
|
|||
document.documentElement.clientWidth ||
|
||||
document.body.clientWidth),
|
||||
(that.screenWidth = window.screenWidth);
|
||||
that.fun();
|
||||
// that.fun();
|
||||
};
|
||||
};
|
||||
},
|
||||
|
@ -176,7 +172,7 @@ export default {
|
|||
// },
|
||||
//菜单选中
|
||||
menuChange(index, name) {
|
||||
this.menuBtn.forEach((item, index) => {
|
||||
/* this.menuBtn.forEach((item, index) => {
|
||||
if (index == 0) {
|
||||
item.icon = require("./assets/images/shouYe.png");
|
||||
} else if (index == 1) {
|
||||
|
@ -190,7 +186,7 @@ export default {
|
|||
} else if (index == 5) {
|
||||
item.icon = require("./assets/images/gaoJing.png");
|
||||
}
|
||||
});
|
||||
}); */
|
||||
if (index == 0) {
|
||||
this.menuBtn[index].icon = require("./assets/images/shouYeAc.png");
|
||||
this.$router.push("/");
|
||||
|
@ -208,14 +204,11 @@ export default {
|
|||
} else if (index == 3) {
|
||||
this.menuBtn[index].icon = require("./assets/images/anFangAc.png");
|
||||
this.$router.push("security");
|
||||
|
||||
|
||||
} else if (index == 4) {
|
||||
this.menuBtn[index].icon = require("./assets/images/yunWeiAc.png");
|
||||
this.$router.push("operationMaintenance");
|
||||
|
||||
} else if (index == 5) {
|
||||
this.menuBtn[index].icon = require("./assets/images/gaoJingAc.png");
|
||||
this.menuBtn[index].icon = require("./assets/images/gaoJingAc.png");
|
||||
this.$router.push("alarm");
|
||||
|
||||
|
@ -277,7 +270,7 @@ export default {
|
|||
#app {
|
||||
// width: 6144px;
|
||||
// height: 1920px;
|
||||
background: rgba(1, 1, 7, 0);
|
||||
background: rgba(1, 1, 7, 1);
|
||||
// overflow: hidden;
|
||||
.header {
|
||||
height: 11%;
|
||||
|
|
|
@ -141,6 +141,7 @@ export default {
|
|||
window.alarmFirstLevel = this.alarmFirstLevel
|
||||
window.alarmSecondLevel= this.alarmSecondLevel
|
||||
window.alarmThirdLevel= this.alarmThirdLevel
|
||||
|
||||
// window.createMqtt = this.createMqtt();
|
||||
// console.log(this.$moment('2023-04-03T10:05:31').format("YYYY-MM-DD HH:mm:ss"),'ssssss222222');
|
||||
//一级告警
|
||||
|
@ -175,7 +176,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
|
||||
|
||||
|
||||
|
||||
//获取一级告警
|
||||
getFirstAlarm() {
|
||||
|
|
|
@ -34,7 +34,7 @@ export default {
|
|||
};
|
||||
},
|
||||
mounted(){
|
||||
this.clickSurveillance(this.cameraBig)
|
||||
//this.clickSurveillance(this.cameraBig)
|
||||
},
|
||||
watch: {
|
||||
// cameraBig: {
|
||||
|
|
|
@ -338,6 +338,7 @@ export default {
|
|||
};
|
||||
},
|
||||
mounted() {
|
||||
this.getcourt()
|
||||
this.caseEcharts();
|
||||
this.caseTypeLeft();
|
||||
this.caseTypeRight();
|
||||
|
|
|
@ -516,13 +516,13 @@ export default {
|
|||
watch: {
|
||||
alarmAllLevel(val) {
|
||||
// 为了避免频繁触发resize函数导致页面卡顿,使用定时器
|
||||
//console.log("alarmAllLevel", val);
|
||||
console.log("alarmAllLevel", val);
|
||||
this.upmqttData(val);
|
||||
},
|
||||
|
||||
alarmFirstLevel(val) {
|
||||
// 为了避免频繁触发resize函数导致页面卡顿,使用定时器
|
||||
//console.log("alarmFirstLevel", val);
|
||||
console.log("alarmFirstLevel", val);
|
||||
if (val.length != 0) {
|
||||
this.upmqttData(val);
|
||||
}
|
||||
|
@ -541,7 +541,7 @@ export default {
|
|||
watch: {
|
||||
alarmAllLevel(val) {
|
||||
// 为了避免频繁触发resize函数导致页面卡顿,使用定时器
|
||||
//console.log("alarmAllLevel",val)
|
||||
console.log("alarmAllLevel",val)
|
||||
this.upmqttData(val)
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue