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); // 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%;

View File

@ -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');
// //

View File

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

View File

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

View File

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