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