This commit is contained in:
chengdandan 2023-05-17 18:18:26 +08:00
parent 8da0a7aeb4
commit c69ebdc05b
5 changed files with 11 additions and 16 deletions

View File

@ -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%;

View File

@ -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() {

View File

@ -34,7 +34,7 @@ export default {
};
},
mounted(){
this.clickSurveillance(this.cameraBig)
//this.clickSurveillance(this.cameraBig)
},
watch: {
// cameraBig: {

View File

@ -338,6 +338,7 @@ export default {
};
},
mounted() {
this.getcourt()
this.caseEcharts();
this.caseTypeLeft();
this.caseTypeRight();

View File

@ -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)
},